coder / code-server

VS Code in the browser
https://coder.com
MIT License
66.47k stars 5.45k forks source link

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

Open atheo89 opened 3 weeks ago

atheo89 commented 3 weeks ago

Is there an existing issue for this?

OS/Web Information

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.

Actual

"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.

Logs

No response

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

I did not test native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

Notes

No response

code-asher commented 3 weeks ago

I would guess this needs to be filed with the extension, but we should test VS Code and Codespaces to make sure it is not somehow a problem in code-server.

atheo89 commented 2 weeks ago

Thank you for your reply @code-asher! I thought the same later on and i opened a question on python extension repo. https://github.com/microsoft/vscode-python-debugger/issues/363