Skip to content

Venv for first workspace is overwritten by default #1145

@anthonykim1

Description

@anthonykim1

Coming from: #1063 (comment)
Steps to repro:

  1. Set up multi-root workspace with two folders.
  2. Create venv for each of the folders
  3. Notice terminal activates fine, regardless of command, shellStartup,
  4. watch value of default interpreter path after resetting to -> python
  5. reload few times.
  6. 🐛 Value of default interpreter path changed and this switches interpreter selection on the first venv to some default interpreter path.
  7. 🐛 Interpreter selected seems like python3.8 not the 3.14 shown in UI?
    https://github.com/user-attachments/assets/4b165d40-52f7-4eb5-a3e5-1c23436a06e8

Running

anthonykim@Anthonys-MacBook-Pro-2 folder1 %  python3 -c "import sys; print(sys.executable)"
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3
Image

Metadata

Metadata

Labels

area-environmentEnvironment, interpreter related issues.bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions