Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Data loss scenarios with opening project with atom in empty state  #13873

Closed

Description

@ungb

Prerequisites

Description

This is to capture a few data loss scenarios with opening your project.

There are 3 bugs that we can see so far that will cause data loss

Opening a Empty Document and try to Open the folder from context menu.

Repro:

  1. Open Atom, go to settings, check Open Empty Editor On Start and uncheck Restore Previous Windows on Start
  2. Open a folder, add a few untitled documents or make changes to file and don't save anything.
  3. Close Atom
  4. Open Atom, you should get a blank editor
  5. Go to context menu and click Open (or cmd+o on mac) and open the folder from step 2.

Expected: Restores Session
Actual: Unsaved session is lost.

Opening a Empty Document and trying to Add a Project Folder from context menu

Repro:

  1. Open Atom, go to settings, check Open Empty Editor On Start and uncheck Restore Previous Windows on Start
  2. Open a folder, add a few untitled documents or make changes to file and don't save anything.
  3. Close Atom
  4. Open Atom, you should get a blank editor
  5. Go to context menu and click Add a Project Folder... (or cmd+shift+o on mac) and open the folder from step 2.

Expected: Since there isn't any folder added yet, Atom should restore the session of that folder.
Actual: Unsaved session is lost.

Open atom . when there is a empty atom editor open.

Repro:

  1. Open Atom, go to settings, check Open Empty Editor On Start and uncheck Restore Previous Windows on Start
  2. Open a folder, add a few untitled documents or make changes to file and don't save anything.
  3. Close Atom
  4. Open Atom, you should get a blank editor
  5. Go to terminal/powershell and go to the folder in step 2 and run atom .

Expected: Restores Session
Actual: Unsaved session is lost. If no atom instance is running this works.

Reproduces how often: [What percentage of the time does it reproduce?] 100% of the time.

Versions

Atom 1.14.3

Additional Information

This is causing a lot of various reports, but I think this is the underlying cause for most of them.

/cc @lee-dohm @iolsen @Ben3eeE

Activity

  1. ungb commented on Feb 23, 2017

    @ungb
    ContributorAuthor

    Related issues so far:

    #13861
    #11293
    #10044

  2. winstliu commented on Feb 23, 2017

    @winstliu
    Contributor

    Does checking the Restore Previous Windows on Start option mean that no state should ever be restored, or that you should be able to recover project state by explicitly opening the previous project you had open?

  3. Ben3eeE commented on Feb 23, 2017

    @Ben3eeE
    Contributor

    I believe the setting only affects restoring state when launching Atom without any arguments.

  4. lock commented on Apr 2, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  5. locked and limited conversation to collaborators on Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions