Vscode: Hot exit: Lost editor contents on upgrade

Created on 6 Apr 2017  Â·  10Comments  Â·  Source: microsoft/vscode

  • VSCode Version: 1.11.0 and the one before that
  • OS Version: 10.12.4

Steps to Reproduce:

  1. open new window, paste text in new editor, don't save it
  2. quit and start vscode => text remains
  3. upgrade => text is gone :(
bug important verified

Most helpful comment

We released 1.11.1 with a fix. Again very sorry for this serious regression, I added steps to our smoke test to verify updates better in the future so that this does not happen again.

All 10 comments

I can reproduce.

@Tyriar fyi

This is a regression from https://github.com/Microsoft/vscode/commit/36731c60e277509b55e5f2eeaf44003e31663ad6 where we stopped to store backups in lowercase paths (macOS, Windows).

The good news is that I was able to find back my contents by grepping for a string I knew under Library/Application Support/Code :)

@wmertens that was lucky, when I tested it the backups are gone after a restart. So as long as you are not restarting, the backups are probably untouched.

We are about to release 1.11.1 with a fix...

We released 1.11.1 with a fix. Again very sorry for this serious regression, I added steps to our smoke test to verify updates better in the future so that this does not happen again.

And thank you for such a quick turnaround!

On Thu, Apr 6, 2017, 5:58 PM Benjamin Pasero notifications@github.com
wrote:

We released 1.11.1 with a fix. Again very sorry for this serious
regression, I added steps to our smoke test
https://github.com/Microsoft/vscode/wiki/Smoke-Test to verify updates
better in the future so that this does not happen again.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/23999#issuecomment-292220584,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADWlu3APkwl5dYHAeN3MKRJS-i5jFlmks5rtQujgaJpZM4M1MPt
.

Thanks for the quick fix!

A tip for anyone using macOS that lost data and it's already gone. If you have Time Machine backups, restore ~/Library/Application Support/Code/Backups from before you updated and use ripgrep to find it 😄 (thanks @wmertens for the idea).

Good work

Thank you!

Was this page helpful?
0 / 5 - 0 ratings