Skip to content

Bug: environment being used differs from the one being displayed #836

@FIGIO55

Description

@FIGIO55

When using multiple enviroments that are in the same project, maybe as sub-modules or similar, the environment being actually used by vscode is not the one being displayed in the bottom right selector and the environment selected for the whole project ends up being used.
I hope this video can help explain myself

Image
2025-09-13.11-31-55.mp4

As you can see, i have 2 different venvs, one with httpx and one with semver (no particular reason for such choices, i just use them regularly) and, when switching from the main of one module to the other, the venv appears to be changed but in reality it is not (or, at least, vscode does not realize that it changed) and defaults to the project-wide env.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugtriage-needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions