-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
[Windows] Fix handling of paths in console wrapper #99429
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's exactly no working? Paths with spaces seems to be already handled fine without any changes, I can't reproduce any issues.
I'll send the error message later today, it fails to run if the path to the main executable contains spaces |
I have tried path with spaces, and executable name with spaces in various combinations and all work with issues. |
The error is No error with this fix |
891ab56
to
9a8eeea
Compare
Wrapper does not handle paths with spaces
Tried it again and still can't reproduce the issue, but it seems to work the same with this change, so I guess it's OK. |
With a user name with a space in it? |
With multiple spaces in the folder names and the executable names in different combinations, not username specifically, but there's nothing special about user folder so it should not matter. |
There is, see the issue, it fails specifically with that case |
Will check it with username in a moment.
The error is also strange, it's |
No, it's still not reproducible. |
That is very strange, no clue why it's happening to me specifically |
Is it a local account or Microsoft account with "Documents" stored in OneDrive? I have tried both fully local and Microsoft accounts with local "Documents", but if it's not in a normal folder, it might have different behavior. Or it's some sort of external interference (like antivirus tempering with disk access, this might also explain strange error 193). |
Will check when I'm at my laptop, I don't think it's on OneDrive, it should be a local account |
Wrapper does not handle paths with spaces
There might be an alternative way to add this or format this, but this solves the problem, I'm surprised this hasn't popped up before (it only did for me now because my new laptop was configured in the store and had "First-name Last-name" as my account, triggering this)
Additionally we might want to make the error message a bit more descriptive (I had to hack in printing the command line string to discover what was even wrong for this), but not touching that right now
Edit: It seems to be in very specific paths, see the report