| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
A less verbose comment would be nice. Something like: When running the headless CLI version no dialog is possible so: Also, please get the attribution changed to yourself. We've had a few PRs attributed to Claude and I want that to stop happening. |
Sorry, something went wrong.
LocateImportedFile() asks the user whether to look for a linked image or sketch that has moved, but the headless backend has no dialogs to run: CreateMessageDialog() returns an empty handle, which was then dereferenced. Decline to locate the file instead, and name it on the console. Of 171 sketches here, 17 died on load this way, each because of a PNG that had been traced over and has since moved. The GUI is unaffected, since its window exists before the file is loaded.
|
Both done - comment trimmed to two lines, and the attribution is gone. Sorry |
Sorry, something went wrong.
|
@dodox1 Thank you for this contribution. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Loading a sketch whose linked image or sketch has moved kills any headless
build. LocateImportedFile() asks the user whether to look for the file, and
guinone.cpp has no dialogs to run: CreateMessageDialog() returns an empty
handle, which is then dereferenced. The GUI is unaffected — its window exists
before the file is loaded, so the dialog is real.
So it is solvespace-cli that dies: export-mesh, regenerate, thumbnail,
anything batch.
Answer as declining to locate it, which is the only thing a batch run can
sensibly do, and name the file on the console.
Of 171 of my own sketches, 17 died on load this way, every one because of a PNG
that had been traced over and has since moved. With this they all load, and all
17 turn out to be geometrically fine.
Repro: save a sketch with a linked image, move the image, then run
solvespace-cli export-mesh --output out.stl sketch.slvs.