Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code settings: Turned off automatic venv activation #18

Merged

Conversation

ClaasRostock
Copy link
Collaborator

VS Code offers to automatically activate a virtual environment found in the workspace root folder. However, this feature is still buggy. It seems to only set the VIRTUAL_ENV environment variable, but does not call the activate script inside .venv/Scripts . This leads to inconsistent behaviour. pip, for instance, would install packages in the system python, although VS Code considers the venv activated.
Until the automatic venv activation properly works in VS Code, I propose to explicitely turn it off in VS Code settings in each project.

@ClaasRostock ClaasRostock self-assigned this Mar 1, 2024
@ClaasRostock ClaasRostock merged commit ced5197 into main Mar 1, 2024
22 checks passed
@ClaasRostock ClaasRostock deleted the turn-off-automatic-venv-activation-in-vs-code-settings branch March 1, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant