microsoft / microsoft/vscode-python-debugger

"Debug and Run" Button doesn't recognize predefined interpreter in settings.json and selects a different one

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

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

Từ ngày 8/8/2024.

triage-needed
Ngôn ngữ chính
TypeScript
Star
181
Fork
126
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
3

Mô tả

Description

"Debug and Run" Button doesn't recognize predefined interpreter in settings.json and selects a different one, in contrary the Run icon on top left on the screen works as expected.

OS/Web Information
  • Web Browser: Chrome/firefox
  • Local OS: fedora
  • Remote OS: fedora
  • Remote Architecture: amd64
  • code-server --version: 4.22.0
  • ms python: v2024.2.1
Steps to Reproduce
  1. Launch code server
  2. Install ms-python extension
  3. Set on settings.json your preferred interpreter "python.defaultInterpreterPath": "/path/to/different/interpreter"
  4. Reload Window
  5. Create a test python file
  6. Press Run > icon on the top right. It will run your file without issue using the predefined interpreter.
  7. Now press on Run and Debug and see on the bottom right banner the in the python section use a different interpreter from the one that we pre defined.
Expected

The "Run and Debug" button to use the python interpreter that is been defined on the settings.json file by the user.

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.