microsoft / microsoft/vscode-python-environments

"python.defaultInterpreterPath" ignored and overwritten by automated user setting

Aperta
#1,796 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@DonJayamanne ci sta già lavorando.

Dal 17/9/2026.

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

Descrizione

I use Python Environments inside Cursor. In my workspace setting in `.vscode/settings.json` I set `"python.defaultInterpreterPath": "/....pyenv/versions/3.14.2/envs/venvname/bin/python"`.

This however seems to be ignored by Python Environments extension with a user setting in `/.../Cursor/User/settings.json` that automatically sets `"python.defaultInterpreterPath": "/.../.pyenv/versions/3.14.2/envs/venvname/"`, which is only the path to the folder, but we need to add `bin/python` in the end for the executable.

This results in this error when I start a debug session:
`Failed to spawn launcher: [Errno 13] Permission denied: '/.../.pyenv/versions/3.14.2/envs/venvname'`.

Correcting or deleting the path in `/.../Cursor/User/settings.json` results in it being overwritten the next time I start debugpy.

The same environment is also picked automatically.

I didn't find a solution, except for not using Python Environments any more.

Python Environments 1.36.0
ms-python.debugpy 2026.6.0
ms-python.python 2025.6.1
Cursor 3.20.17

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.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.