microsoft / microsoft/vscode-python-debugger

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

Ouverte
#363 3 commentaires 0 réactions 1 personne assignée Voir sur GitHub

@karthiknadig y travaille déjà.

Depuis le 8/8/2024.

triage-needed
Langage dominant
TypeScript
Étoiles
181
Forks
126
Merge moyen
2 j 3 h
PR mergées (30 j)
3

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.