-
Notifications
You must be signed in to change notification settings - Fork 26
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
Python Debugger fails to load Python3 if installed on a path with spaces #351
Comments
Thanks for your bug report, could you send me the value of config in the |
Sure, there you go. It's just the automatically-generated
|
I think the issue is related to the fact that the interpreter's path string is taken and is left unquoted, and thus it is not parsed after encountering the first space character. That explains why "C:\Program Files\Python312" is truncated to C:\Program. |
You don’t need any launch.json file to reproduce this, just open a python file, press F5, select "Python File With Arguments", and you'll produce that error. If you select "Python File" you'll see that the invocation on the PowerShell console has quotes:
If you select "Python File with Arguments" you'll see that none of the paths have quotes:
(incidentally, to switch between those two, you'll need to do a "Python debugger: clear cache and reload window") |
So this definitively confirms we have a bug here, right ? |
@paulacamargo25 hello, |
Thanks @fgiancane8 for the bug report, yes, could you confirm that this is a duplicate of #233. |
Hello @paulacamargo25 , If needed we can discuss further there. Thanks! |
Thanks, closed as duplicated of: #233. |
Behaviour
It is expected to be able to debug a python script or module using the globally installed Python runtime from their website. It turns out that if installed via their setup, it gets deployed in C:\Program Files\Python312. The path contains a space which should be escaped when loading it, but it is not, resulting in misleading errors and not being able of debugging.
Steps to reproduce:
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output for
Python Debugger
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython Debugger
)The text was updated successfully, but these errors were encountered: