microsoft / microsoft/vscode-python-environments

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

Đang mở
#1,796 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@DonJayamanne đang làm issue này rồi.

Từ ngày 17/9/2026.

Ngôn ngữ chính
TypeScript
Star
138
Fork
62
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
35

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.