Closed ericwinger closed 2 years ago
@ericwinger so far I only see a stack that appears to be from an attempt to unload a project ... did you get an error while loading?
The problem wasn't on load, it was when Jadeite tried to access the project. That's done after login, when it opens the console's project browser. It fails in the same way - on the #asDefinition call.
Looks like the project spec ... is invalid so we either need to validate the project spec on load (yes) or wait until the last minute to put the project into loaded projects (also yes) ...
Using Jadeite, 3.2.9, I got an error during project load which prevented future logins. Can anything be done to make a nicer failure case or user error message or should this be filed under "don't do that?"
Reproduction case:
At this point, when I closed the debugger, the project had been loaded and was in a bad state. In retrospect, I should have aborted immediately, but instead I committed.
The realization of big trouble came later when I logged out and couldn't log back in. That's because Jadeite error'ed trying to access the bad project when it tried to open the console.
I could see a user having problems like this.
It might be possible to have Jadeite do something on login if there's a project in a bad state but continue to login. That has risks too because the bad project is still lurking in the image.