Skip to content
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

Can't start for a double quote? #50

Open
GiuseppeChillemi opened this issue Dec 18, 2020 · 2 comments
Open

Can't start for a double quote? #50

GiuseppeChillemi opened this issue Dec 18, 2020 · 2 comments

Comments

@GiuseppeChillemi
Copy link

I have tried red 0.4.3 extension for VSCode. This is the error I have:

PS E:_Drives_DropBox My BoxName\Dropbox\Svi\fordata> cmd --% /c ""E:/_Drives/_DropBox%20My%20BoxName/Dropbox/Svi/Red.exe" --cli "e:/_Drives/_DropBox My BoxName/Dropbox/Svi/Try2.Red"
Impossibile trovare il percorso specification. (I can't find the specified path)

Please, take a look at the double quotes after /C, I think they could be the source of the error

Regards

@qtxie
Copy link
Collaborator

qtxie commented Dec 18, 2020

That's weird. It works fine on my system. If I remove one double quote, it doesn't work anymore. My VSCode version:

Version: 1.52.1 (user setup)
Commit: ea3859d4ba2f3e577a159bc91e3074c5d85c0523
Date: 2020-12-16T16:34:46.910Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19042

@GiuseppeChillemi
Copy link
Author

GiuseppeChillemi commented Dec 18, 2020

I think I have found the problem: I have opened the consolle (not powershell, the DOS one) and the problem is the space encoding %20. The command line does not like it. It wants the regular space:

This does not work:
"E:/_Drives/_DropBox%20My%20BoxName/Dropbox/Svi/Red.exe"

This works:
"E:/_Drives/_DropBox My BoxName/Dropbox/Svi/Red.exe"

Maybe because after this...:
cmd --% /c
...You are already in a DOS environment

EDIT: Do you know what sets the powershell current dir of the red plugin? This "E:_Drives_DropBox My BoxName\Dropbox\Svi\fordata" is the current dir of another script I have previously opened in VSCode. It should not be the current one and it is nowhere in the JSON config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants