-
Notifications
You must be signed in to change notification settings - Fork 44
No-config debug uses default system Python on MacOS, not the active Python in terminal #605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
re-open because OS type is different. Thanks for pointing it out @taldcroft ! |
@taldcroft Can you share the python binary names in the env you have? does it have |
@karthiknadig - here you go:
|
what is your shell type for your terminal? |
zsh. |
Hi! Sorry for the delay, I am bit stuck and not sure what is going wrong here. Does updating the extension help? This is the shell script we are trying to run, what happens if you run this?
|
Can you confirm by sending the version for the python-debugger extension? This is a similar error message to the one I fixed with version 2025.0.1. Secondly are you running any other debuggers in the other windows? No config debugging doesn't work with parallel or multiple runs so I wanted to check |
Identifier ms-python.debugpy If I type
No. |
@taldcroft Do you have the following in your user settings.json?
Can you share what you have for PATH env variable in the terminal where it does not work?
|
No. I have these terminal settings:
I tried using
|
so to clarify in your shell
|
Since I opened this issue the behavior has changed. The path reported in my script is now correct:
HOWEVER, there is a new problem which I described a few days ago: #605 (comment) To reiterate, when I run
|
thank you for clarifying, sorry about that. In relation to your new problem, are all the vscode windows open on the same folder / workspace or on different ones? |
All different. |
will try and repro myself- thanks |
Running VS code on MacOS, for a script
go.py
:I get the following in a VS code integrated terminal where I have activated a Python 3.12 conda environment:
If I use the traditional configured debug in VS code, then I get the expected results (Python 3.12.8 from my conda env). I had thought that no-config debug should just work and pick up the current environment in the terminal window.
The text was updated successfully, but these errors were encountered: