-
Notifications
You must be signed in to change notification settings - Fork 44
command:pickArgs
behaves differently as value vs array
#635
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
I think I need to look at this problem more comprehensively- I saw another complaint about the behavior as it stands and I am not sure if the change made in a recent PR helped or hurt the problem |
Thanks @eleanorjboyd for your message. I opened a similar issue a year ago and it was marked as completed and duplicate of #233 but sounds like it's still there. Maybe is the same issue you're referring to? |
Hi @fgiancane8, yes that thread is connected. The issue I fixed recently was this. Have you tried no config debugging for your use case? Here is the wiki page about it. If I understand correctly, you are attempting to provide args like |
Hello @eleanorjboyd thanks for coming back at me! So this is the issue i came across.
That is,
As you can see, my interpreter path is not quoted, since this is installed from python.org and not as a Windows App, it will be installed in C:\Program Files. That single space is messing with powershell. On the contrary, if you use this configuration
which has
As you can see, this time, the interpreter path is (correctly) quoted so that the single space in Program Files does not interfere. I saw your fix mentioned in the previous issue but i'd say the interpreter choice and quoting should be more robust irregardless of whether |
Hi, I also had a problem with my python exe path having a space character and not being enclosed in quotes when running a script on my PC. My project didn't have a launch file a couple weeks ago and was running the script fine. I would just have to occasionally specify how I wanted to run it when the command palette appeared: debug configuration, Python with arguments. But now, without any apparent change (auto update is on for the python extensions and VS code updates on restarts), it started to fail to run the script due to the Python file path having that space character. Adding a launch file and surrounding the args value in a list did fix it for me. I have a laptop with the project on it as well that I hadn't used since before this issue occurred. When I opened the project on it and ran the script, the terminal input appeared to have quotes around the python exe path. After I restarted the laptop and up to now, the exe path is no longer surrounded in quotes. So the same as my PC. But, I didn't copy or screenshot the terminal that first time I started the laptop, so I might be misremembering the input. PC VS Code Version: 1.97.2 (user setup) / Commit: e54c774e0add60467559eb0d1e229c6452cf8447 They both have the same versions for extensions: |
Hello @MichaelCourter64 ,
I think this is exactly connected to the same issue I am reporting, thanks for your contribution. Indeed I think that python interpreter path should be consistently quoted even if args are not surrounded in a list.
|
Originally posted by @fgiancane8 in #351
The text was updated successfully, but these errors were encountered: