You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
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
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
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
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.
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
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.
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!
Reacted by Ryan, JuDelCo, Asbjørn Ulsberg, Augustin Luna, Stefan Maier, Eduardo Sztokbant, Z and Tommi Kivelä
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.
Reacted by Andrey Mavlyanov, Charles (Ted) Wise, Arkadiusz Seidel and Alex Staravoitau
Reacted by JuDelCo, Charles (Ted) Wise and Alex Staravoitau
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.
Reacted by Will, Ryan, Alex Staravoitau, smk291 and Kentaro Kaji
Reacted by Karl Stenerud, Linus Eriksson, JuDelCo, Arkadiusz Seidel, Alex Staravoitau, Andrey Mavlyanov and equinox
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.
Activity
[-]Unsaved buffers are now automatically saved are NOT saved[/-][+]Unsaved buffers that supposedly are automatically saved are in fact NOT[/+][-]Unsaved buffers that supposedly are automatically saved are in fact NOT[/-][+]Unsaved buffers that should automatically be saved are in fact NOT[/+]winstliu commentedon Jan 18, 2016
I can't reproduce this. Can you please try
atom --safe, and exactly what Atom version are you using? Thanks.mvisat commentedon Jan 18, 2016
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.
mnquintana commentedon Jan 18, 2016
Thanks @mvisat! I can reproduce this now with these steps:
[-]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[/+]GuacheSuede commentedon Jan 18, 2016
Is this related ? #10480
mattpker commentedon Jan 19, 2016
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.
44 remaining items
Merge pull request #12922 from stereobooster/10474-prompt-to-save-uns…
iolsen commentedon Oct 26, 2016
Big thanks to @stereobooster for fixing this! It'll be in 1.13.
ArniPL commentedon Oct 27, 2016
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!
winstliu commentedon Oct 27, 2016
Yes, I agree that it would be nice to have the behavior that @ArniPL is asking for.
smaier commentedon Nov 9, 2016
god, please fix this behaviour - such a great Editor
Ben3eeE commentedon Nov 9, 2016
This issue is not open. The fix for this issue has been merged and will be available starting with Atom 1.13.
kstenerud commentedon Nov 23, 2016
Is it in 1.13 beta 5? I just tried and it doesn't preserve open buffers.
Ben3eeE commentedon Nov 23, 2016
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.
amavlyanov commentedon Nov 23, 2016
@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?!
ctwise commentedon Nov 23, 2016
Please reopen this issue. The issue isn't about a warning, it's about saving buffers.
iolsen commentedon Nov 23, 2016
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.
winstliu commentedon Dec 11, 2016
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!
lee-dohm commentedon Dec 11, 2016
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.