-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Assertion failing in DocumentManager #1543
Comments
We could just remove the assertion, or move it into a done() handler on the Although if it takes a while, it's ugly no matter what -- you can still type in the editor for a second and then your changes will be lost without warning (even if you said "Save" to an unsaved changes prompt a moment earlier). That seems like yet another separate async bug, though -- we'd need some intermediate UI in between killing the closed file's editor and being able to show the newly-opened file. |
Turns out the fail() case is already fairly broken -- see #1544 |
Reviewed and assigned to Randy. |
FBNC back to @peterflynn |
Confirmed fixed |
Result: Log contains message about an assertion failing in DocumentManager.closeFullEditor()
This is a result of migrating to brackets-shell: the FILE_OPEN command no longer completes synchronously in cases where it has to load the file off disk for the first time, so _currentDocument has not actually changed at all by the time we get to the assertion.
The text was updated successfully, but these errors were encountered: