You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In order to have a python venv that is managed through uv, one has to set both languages.python.uv.sync.enable and languages.python.venv.enable to true. Since the tasks update, both define PATH as exports - however, the initUvScript does not activate the virtual environment and therefore its path does not include the venv at the front. This randomly leads to a .devenv/load-exports file in which PATH from "devenv:python:virtualenv" gets overwritten by the value from "devenv:python:uv" and therefore not correctly activating the venv.
Describe the bug
In order to have a python venv that is managed through uv, one has to set both
languages.python.uv.sync.enable
andlanguages.python.venv.enable
to true. Since the tasks update, both define PATH as exports - however, the initUvScript does not activate the virtual environment and therefore its path does not include the venv at the front. This randomly leads to a.devenv/load-exports
file in which PATH from "devenv:python:virtualenv" gets overwritten by the value from "devenv:python:uv" and therefore not correctly activating the venv.I tried to fix it by setting:
But the order of the tasks does not seem to reflect the order of variable exports in
.devenv/load-exports
.Removing "PATH" from the task exports of "devenv:python:uv" seems to work and I have not noticed any problems:
To reproduce
Minimal devenv.nix to reproduce:
Version
devenv 1.3.0 (x86_64-linux)
The text was updated successfully, but these errors were encountered: