mpeterson2 / save-session

An Atom package to restore your session.
https://atom.io/packages/save-session
MIT License
72 stars 15 forks source link

[Umbrella bug] Session save/restoration brokenness with Atom 1.2.0 and save-session 0.15.7 #146

Open cbowns opened 8 years ago

cbowns commented 8 years ago

I'm seeing several issues with Atom 1.2.0 and save-session 0.15.7:

  1. When n windows are open, each containing one unsaved file with unique content, save-session restores n windows, all of which contain the last-created window's unsaved file content. Tracked as #147.
  2. When any number of windows are open with unsaved content, and you open a new window, save-session adds a new file to the new window, and pre-populates that file with the contents of whatever unsaved file was most recently modified. Tracked as #148.
  3. When one window is open with n tabs of unsaved content and Atom is quit, only the first tab of that window is restored upon relaunch. Tracked as #149.
  4. Closing the last unsaved window doesn't clear out "content to restore": when you create content in an unsaved file, then close that window, that content is restored to the next-opened window. (Even if you quit and relaunch Atom: Atom relaunches with no window sessions, but the next "New Window" yields the content from the last closed unsaved window.) Tracked as #150.
cbowns commented 8 years ago

140 is a mix of 3, and some other issue. (I am seeing some content restoration, but not a complete set of content.)

hoffmannliu-ayla commented 8 years ago

All I know is it doesn't restore my work anymore. The state is saved in projects/ but it doesn't seem to read it back.

I have tried several old versions of atom and at least save-session still works with 1.0.x. However at least on my Mac OS X, Atom would mandatory upgrade to 1.2.x, so I have no way to keep the old version even save-session still works with old ones.