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
Invalid file path when starting Solvespace with argument (Windows, cmd and drag-and-drop) #622
Comments
Same behavior when running |
Argument handling appears to start in InitCli() at https://github.com/solvespace/solvespace/blob/master/src/platform/platform.cpp#L598 which only returns a vector, so skip to https://github.com/solvespace/solvespace/blob/master/src/platform/entrygui.cpp#L24 |
The problem is caused by this code: solvespace/src/platform/platform.cpp Line 309 in d72eba8
When a file is passed in as a command line argument the parsing on Windows adds the raw handling prefix When a file is opened with the "File | Open..." or "Open Recent" dialog boxes on the other hand the The easiest way would be to comment out solvespace/src/platform/platform.cpp Line 309 in d72eba8
saveFile a plain path.
|
…rgument is used. `GetSaveFileNameA` `OPENFILENAMEA` does not like UNC ( "\\\\?\\C:\\..." ) file prefixes in `lpstrFile`. Work around it by not `Expand`-ing parameters passed on the command line too early. The only user visible change is that "File|Open Recent" will show items as they were passed instead of expanded to full path for example: "..\..\NURBSTests\Intersection2.slvs" Fixes: solvespace#622
…rgument is used. `GetSaveFileNameA` `OPENFILENAMEA` does not like UNC ( "\\\\?\\C:\\..." ) file prefixes in `lpstrFile`. Work around it by not `Expand`-ing parameters passed on the command line too early. The only user visible change is that "File|Open Recent" will show items as they were passed instead of expanded to full path for example: "..\..\NURBSTests\Intersection2.slvs" Fixes: #622
This is SolveSpace version 3.0~225f82a2
onWindows 10
(from https://ci.appveyor.com/api/buildjobs/g2waan8v16gv22jc/artifacts/build%2Fbin%2FDebug%2Fsolvespace.exe)\\?\<path>
The text was updated successfully, but these errors were encountered: