Open WalterGR opened 7 years ago
Potential data loss:
If there are unsaved changes to one or more files when Atom is exited in step 9, starting Atom using --clear-window-state
will result in those unsaved changes being lost.
(Based on my brief testing, starting Atom with --safe
does not seem to result in data loss.)
Using:
This may be related to #254 - "Restarting Atom in a Lein project dir when a REPL tab is open causes strange behavior".
Repro steps:
The initial repro steps are the same as in #254.
atom .
Proto REPL: Toggle
command.Expected:
Atom starts properly.
Actual:
Atom starts. The title of the Atom window is fine. The body of the Atom window is the proper dark grey color. (The color may depend on the theme...) But nothing else happens. No panes are restored. The body of the window is never populated.
Exit Atom.
Start Atom again as in step 1. Same failed launch behavior. Exit Atom.
Start it again using Spotlight. Same failed launch behavior. Exit Atom.
Start it again in a different directory using
atom .
. Atom launches properly. Exit Atom.Return to the directory from which Atom was started in step 1. Start it again as in step 1. Same failed launch behavior as above.
So it would seem that the repro steps corrupt the Atom project for that directory in some way.
Once that corruption happens, one of the following are required to successfully start Atom in that project directory:
--safe
--clear-window-state
Based on my testing, the corruption happens only when both the "Console" tab and "Proto-REPL" tab are open when Atom was closed. Exiting Atom and starting it again with only one of those tabs open does not lead to corruption.