VS Code not selecting environment in .venv/ on open with Environments extension installed

Aperta
#1,468 7 commenti 2 reazioni 1 assegnatario Vedi su GitHub

@eleanorjboyd ci sta già lavorando.

Dal 23/4/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

triage-needed

On Mac OS with the Python & Python Environments extensions installed, VS Code is failing to automatically activate a virtual environment in the .venv/ folder of the project when opened via code . in the terminal, or via opening the folder via the UI.

Despite being present in the Select Python Environment List.

Image

.venv is present in the Python-envs: Workspace Search Paths setting.

Image

To reproduce:

➜  projects uv init pyenvtest
Initialized project `pyenvtest` at `/Users/nina/projects/pyenvtest`
➜  projects cd pyenvtest
➜  pyenvtest git:(main) ✗ uv venv
Using CPython 3.14.4 interpreter at: /opt/homebrew/opt/python@3.14/bin/python3.14
Creating virtual environment at: .venv
Activate with: source .venv/bin/activate
➜  pyenvtest git:(main) ✗ code .

Uninstalling the Python Environments extension fixes the issue, and the environment in .venv/ is automatically selected when VS Code opens.

Lingua principale
TypeScript
Stelle
140
Fork
63
Merge medio
1g 4h
PR unite (30g)
35

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/vscode-python-environments

Tutte le issue di microsoft/vscode-python-environments

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.