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.

Unsaved modification will be lost when I close multiple windows  #11293

Closed

Description

@chestnutprog

Prerequisites

For more information on how to write a good bug report or enhancement request, see the CONTRIBUTING guide.

Description

Open multiple windows will lost unsaved modification.

Steps to Reproduce

1.Open several Atom Windows.
2.Open a Folder.
3.Write Something and don't save in that window.
4.Close the window that you wrote something.
5.Close the rest of Windows.
6.Open Atom and you will found that the everything has gone.
I found that If you open that folder in the new window, the code will be lost.

Normally,if you open one window,they won't be lost.

and if you open another folder first,then open that folder,everything will come back.

Expected behavior: [What you expected to happen]
They should come back.
Actual behavior: [What actually happened]
They has gone.

Versions

1.6.0
You can get this information from executing atom --version and apm --version at the command line.

Activity

  1. changed the title [-]Open more than one Windows then close them,Some of data that not be saved will be lost[/-] [+]Open more than one Windows then close them,Some of unsaved modification will be lost[/+] on Mar 29, 2016
  2. changed the title [-]Open more than one Windows then close them,Some of unsaved modification will be lost[/-] [+]Open mutiple Windows then close them,unsaved modification will be lost[/+] on Mar 29, 2016
  3. changed the title [-]Open mutiple Windows then close them,unsaved modification will be lost[/-] [+]Unsaved modification will be lost when you close multiple windows [/+] on Mar 29, 2016
  4. changed the title [-]Unsaved modification will be lost when you close multiple windows [/-] [+]Unsaved modification will be lost when I close multiple windows [/+] on Mar 29, 2016
  5. chestnutprog commented on Apr 3, 2016

    @chestnutprog
    Author

    @jeancroy I have tried 1.7 beta4.This problem persists

  6. Ben3eeE commented on Apr 14, 2016

    @Ben3eeE
    Contributor

    Have no problems reproducing this with the provided steps, what I did:

    1. Atom open with an added project folder.
    2. ctrl-shift-o to open another project folder in a new window.
    3. Add an untitled tab to new window and write some text.
    4. Close that window.

    Now two different steps one working one non working.

    • ctrl-shift-o and open same project folder, untitled tab is restored. 👍
    • ctrl-shift-n before ctrl-shift-o and open the same project folder, untitled tab is lost 🐛

    Conclusion: Saved state for a project folder is only restored when opening a new window and the project folder at the same time.

    Windows 7
    Atom 1.7.0

  7. Ben3eeE commented on Jun 3, 2016

    @Ben3eeE
    Contributor

    I just realized that this is the sole reason I am consistently losing project state (Well in combination with another thing). Heres why:

    1. Do a fast restart of Atom, close Atom and then reopen right away.
    2. Atom opens an empty window because of step 1, maybe not always I don't know, I always thought this was when I lost state and tried to reproduce why it would get lost sometimes when closing.
    3. I accepted lost state and reopened project with ctrl-shift-o from the empty Atom window and this is when I actually lost my project state.

    I recently randomly thought about this particular issue when I encountered the above opens empty error and did the working steps and my project state was never actually lost.

  8. SnoringFrog commented on Aug 11, 2016

    @SnoringFrog

    I can reproduce this as well on Windows 10 with Atom 1.9.8. Sadly lost a significant pile of notes I now can't reproduce to it.

    Where is the information from unsaved windows saved when Atom is closed? At the very least I'd like to try and restore the files somehow (restoring deleted temp files, finding an old cache of the temp file, etc)

  9. Ben3eeE commented on Aug 12, 2016

    @Ben3eeE
    Contributor

    My workaround for this issue is to use the project-plus package by @mehcode. Opening projects with project-plus instead of Open Project Folder correctly restores project state.

  10. ungb commented on Mar 13, 2017

    @ungb
    Contributor

    Thanks for reporting this issue! I was able to repro the issue and saw that there's multiple issues file from similar scenario. I'm going to mark this as dup for #13873 since that captures the underlying issue. We take data-loss scenarios very seriously and are actively working on fixing this issue ASAP. Please subscribe to #13873 for more updates.

  11. 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!

  12. 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