tareqimbasher / NetPad

A cross-platform C# editor and playground.
MIT License
1.09k stars 56 forks source link

NetPad does not handle Windows usernames that contains spaces #221

Closed michaelrogers0 closed 1 week ago

michaelrogers0 commented 1 week ago

My username on Windows contains a space, like "John Doe" (space in between first and last name). When running a simple single line script such as: "Hello World from NetPad!".Dump();

I get the following error: "Could not execute because the specified command or file was not found.

Possible reasons for this include:"

No "possible reasons" are actually listed, the error appears to be truncated.

I have already tried manually setting the following paths to be non-default paths that do not contain spaces:

I could not find any additional path's being defined elsewhere in the Settings screen nor in config files so I am assuming the path that is causing a problem is being derived in the code.

Changing the above paths did not fix the issue, I received the same error message after fully exiting NetPad, then restarting NetPad and retrying the script. The problem happens both with the installed version of NetPad and the .zip version of NetPad.

I am running NetPad on a Windows 10 Pro x64 machine with all Windows updates applied.

tareqimbasher commented 1 week ago

Thanks for the report. Will include fix in the next version to be released in the next couple days

michaelrogers0 commented 1 week ago

@tareqimbasher Thank you!

michaelrogers0 commented 1 week ago

@tareqimbasher I can confirm that this issue has been resolved in the new 0.7.2 release. Thank you for the quick fix!

tareqimbasher commented 1 week ago

@michaelrogers0 thank you for confirming!