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 buffers aren't restored if there is no project folder added to the window #10474

Closed

Description

@NeKJ

According to this release notes for 1.4.0beta and this issue report Atom is supposed to automatically save any unsaved/untitled buffer upon closing.

Steps to reproduce:

  1. Open Atom.
  2. Open a new tab
  3. write something without saving it
  4. close atom (click X or file->exit)
  5. reopen atom
  6. the unsaved new untitled tab is missing. It should be there with all the content that you wrote.

This is important feature for me, please fix it. Thanks.

Activity

  1. changed the title [-]Unsaved buffers are now automatically saved are NOT saved[/-] [+]Unsaved buffers that supposedly are automatically saved are in fact NOT[/+] on Jan 18, 2016
  2. changed the title [-]Unsaved buffers that supposedly are automatically saved are in fact NOT[/-] [+]Unsaved buffers that should automatically be saved are in fact NOT[/+] on Jan 18, 2016
  3. winstliu commented on Jan 18, 2016

    @winstliu
    Contributor

    I can't reproduce this. Can you please try atom --safe, and exactly what Atom version are you using? Thanks.

  4. mvisat commented on Jan 18, 2016

    @mvisat

    I have the same issue. I'm using Atom 1.4.0. Atom doesn't save untitled buffer if there is no project folder opened. But if I add any project folder, the untitled buffer is saved. Thanks.

  5. mnquintana commented on Jan 18, 2016

    @mnquintana
    Contributor

    Thanks @mvisat! I can reproduce this now with these steps:

    1. Open a new window. Make sure it doesn't have a project folder added.
    2. Type some stuff in an untitled buffer
    3. Quit Atom
    4. Reopen Atom
    5. Atom won't restore what you wrote in that untitled buffer
  6. changed the title [-]Unsaved buffers that should automatically be saved are in fact NOT[/-] [+]Unsaved buffers aren't restored if there is no project folder added to the window[/+] on Jan 18, 2016
  7. GuacheSuede commented on Jan 18, 2016

    @GuacheSuede

    Is this related ? #10480

  8. mattpker commented on Jan 19, 2016

    @mattpker

    It appears that they were aware of this issue in the pull request:

    #9968 (comment)

    So this does not appear to be a bug, but more like an attended effect. I posted on that pull request why I think that this is an oversight and needs to be changed to something better. Ill repost that here as this is probably a better place for that.

    This is a great new feature and I really love it, but I think more work needs to be done when you have not opened a project. A lot of the time when I need to jot down some notes I will open a new atom window (not apart of a project). When I go to close that window or restart my computer, the pop up to save the untitled notes was really great, because a lot of the time I would forget to save a note that I actually needed to keep. Because this was not a part of a project, I just lost all my notes. I think having a feature that only works on projects is a bit of an oversight, it gets you in the mindset that "It's okay if I close this without saving, it will be back when I re-open it." and then when it was not opened as a project it is gone with no prompt warning you of this.

    I suggest adding the prompt back for untitled tabs that are not apart of a project, or making all non project tabs all be apart of some "no project" project or something. I hope that makes sense, let me know if you have any questions.

  9. 44 remaining items

  10. added a commit that references this issue on Oct 26, 2016
  11. iolsen commented on Oct 26, 2016

    @iolsen
    Contributor

    Big thanks to @stereobooster for fixing this! It'll be in 1.13.

  12. ArniPL commented on Oct 27, 2016

    @ArniPL

    Great that it's finally resolved in some way!

    But as I see it, it's still not perfect. Now Atom will prompt to save the unsaved buffers, but won't maintain editor state transparently. So it's still impossible to restore editor state without project folder. Is this intended behavior? Thanks!

  13. winstliu commented on Oct 27, 2016

    @winstliu
    Contributor

    Yes, I agree that it would be nice to have the behavior that @ArniPL is asking for.

  14. smaier commented on Nov 9, 2016

    @smaier

    god, please fix this behaviour - such a great Editor

  15. Ben3eeE commented on Nov 9, 2016

    @Ben3eeE
    Contributor

    This issue is not open. The fix for this issue has been merged and will be available starting with Atom 1.13.

  16. kstenerud commented on Nov 23, 2016

    @kstenerud

    Is it in 1.13 beta 5? I just tried and it doesn't preserve open buffers.

  17. Ben3eeE commented on Nov 23, 2016

    @Ben3eeE
    Contributor

    The change that closed this issue is to ask for confirmation to save unsaved buffers when closing a window without a project folder, not to preserve them.

  18. amavlyanov commented on Nov 23, 2016

    @amavlyanov

    @Ben3eeE it's not a fix, it's a workaround to not loose the data. When will the real fix will be available for this problem?!

  19. ctwise commented on Nov 23, 2016

    @ctwise

    Please reopen this issue. The issue isn't about a warning, it's about saving buffers.

  20. iolsen commented on Nov 23, 2016

    @iolsen
    Contributor

    My apologies for cavalierly closing this issue without realizing the signal that sent. Fixing the potential data loss was a priority and I'm happy that has been fixed, but I agree that preserving the buffer state in this scenario is the more elegant solution and should still be done. I've created #13318 to that effect.

  21. winstliu commented on Dec 11, 2016

    @winstliu
    Contributor

    I'm locking this issue as it's gotten out of hand. The new issue is at #13318: please subscribe to that one instead. Thanks!

  22. locked and limited conversation to collaborators on Dec 11, 2016
  23. lee-dohm commented on Dec 11, 2016

    @lee-dohm
    Contributor

    I've deleted a number of off-topic and solely negative comments here. Those that have had their comments deleted should refer to the Atom Code of Conduct and consider themselves officially warned. Let's keep everything professional and constructive here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions