mpeterson2 / save-session

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

with two unsaved windows, save-session restores the contents of the first window twice #120

Open cbowns opened 9 years ago

cbowns commented 9 years ago

A video of reproducing this: https://cloudup.com/cMFoIgGjqEZ

Basically:

  1. Open two windows with one file in each.
  2. Enter text into each file.
  3. Quit Atom.
  4. Relaunch Atom.

Expected: Two windows are created, with file 1 in one window, and file 2 in the other window.

Actual: Two windows are created, with file 1 in both windows.

Versions:

% ○ apm list --installed       
/Users/cbowns/.atom/packages (3
├── bug-report@0.7.1
├── language-haskell@1.1.4
└── save-session@0.15.5

Config:

"*":
  editor:
    invisibles: {}
  core:
    themes: [
      "atom-light-ui"
      "solarized-light-syntax"
    ]
  "exception-reporting":
    userId: "–––––––––elided–––––––––––"
  welcome:
    showOnStartup: false
  "ide-haskell": {}
  "autocomplete-haskell": {}
  "autocomplete-plus": {}
  "save-session":
    dataSaveFolder: "/Users/cbowns/.atom/packages/save-session/projects"
  "bug-report": {}
ghs commented 9 years ago

Same with me and just lost important notes... Really bad feeling

set-killer commented 9 years ago

I had 2 untitled windows and I got restored only the first window once

UltCombo commented 9 years ago

Also, if you have two (or more) untitled tabs in the same window, and focus the second tab then close the window, the restored session will always focus on the first untitled tab. Should this be reported as a separate bug?

mpeterson2 commented 9 years ago

@UltCombo #135. Thanks for reporting that.

cbowns commented 8 years ago

This worked briefly for me a couple weeks ago! But now it's even worse than before, mostly because now none of my open windows are correctly restored. #140