KittyCAD / modeling-app

The KittyCAD modeling app.
https://kittycad.io/modeling-app/download
MIT License
395 stars 33 forks source link

Opening the modeling app from the CLI with a path that does not exist shows a blank page #4060

Open nadr0 opened 2 weeks ago

nadr0 commented 2 weeks ago

When testing the the manual check list for the latest cut release I found an edge case we are missing when opening files and folders.

Preexisting working workflows

This opens the folder default and works.

/home/kevin-nadro/Downloads/Zoo\ Modeling\ App-0.25.5-x86_64-linux.AppImage /home/kevin-nadro/Documents/zoo-modeling-app-projects/default

This opens an empty folder and creates a blank main.kcl

rm /home/kevin-nadro/Documents/zoo-modeling-app-projects/empty/main.kcl

/home/kevin-nadro/Downloads/Zoo\ Modeling\ App-0.25.5-x86_64-linux.AppImage /home/kevin-nadro/Documents/zoo-modeling-app-projects/empty

Bug

$ ./Zoo\ Modeling\ App-0.255.255-x86_64-linux.AppImage /home/dog/cat/mouse

don't worry about the version updater number there, I've tested this on the local package, a real v0.25 and this app updater one

error messages in the terminal

Loading project at startup: /home/dog/cat/mouse
Checking for update
Error: ENOENT: no such file or directory, stat '/home/dog/cat/mouse'
[25939:1001/095127.135049:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
Update for version 0.255.255 is not available (latest version: 0.25.5, downgrade is disallowed).
checkForUpdatesAndNotify called, downloadPromise is **null**

What the application looks like, it will hang forever on this blank page. Screenshot from 2024-10-01 09-51-48

Possible solutions

lf94 commented 3 days ago

guptaarnav took care of this one :)