Open atheo89 opened 2 weeks ago
Thanks for the bug report, I'll try to reproduce it. Could you confirm that you don't have a launch config in launch.json
or in settings.json
. And could you also send me the value of your interpreter path in the Python Extension? (you can find it in the right bottom corner)
Hi, thank you for your patience on the reply!
I only use settings.json
file to set up the desired interpreter, I don't have launch.json
Here’s the configuration:
{
"python.defaultInterpreterPath": "/opt/app-root/bin/python3"
}
I have the same interpreter path in the Python Extension.
Thanks for your reply, i'll try to repro the issue :)
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
code-server --version
: 4.22.0ms python
: v2024.2.1Steps to Reproduce
ms-python
extension"python.defaultInterpreterPath": "/path/to/different/interpreter"
Run >
icon on the top right. It will run your file without issue using the predefined interpreter.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.