Atom doesn't remember added projects on start up #12495
Comments
That is not a bug but intended behaviour. Atom opens new instance each time you launch it hence why it "doesn't remember" last opened project. You need to supply filename/project folder to it each time you launch it. |
Hey, according to this conversation this is a bug. Please read the last 6 comments https://discuss.atom.io/t/remember-open-projects-when-reopening-atom/7053/24 Also, why on earth you wouldn't provide the functionality to remember the projects that you have added? |
@tomasx I've been reading comments on github (not atom discussion forum :) ) by Atom project members and this is not a bug according to them but the way electron/atom work (not too sure on details here). You basically launch a new browser instance each time. I agree with you, that would be convenient to remember last project opened, it is a feature request afaik but I don't know when/if it will be implemented. P.S. just quoting atom guys here :D I am with you on this one, this should be a feature included by default :) |
@Nikki1993 Atom is supposed to remember the very last set of root paths you had open. It uses |
@DamnedScholar that's odd cause it never opened previously opened projects for me on Windows, Mac and Ubuntu/Solus. I remember like couple of month ago someone said that's an intended behaviour for Atom because it's the way it functions. Pardon for the false info then :P |
@Nikki1993 You probably remember me saying that it's intended behavior that Atom forgets old projects when you open new ones (because |
@tomasx I can't replicate this using Atom v1.9.9 on Mac OS X 10.11.6. Is it possible that you don't have the correct permissions on the |
@DamnedScholar "Open Empty Editor on Start" has no effect on whether Atom remembers your last open project. It only affects the behavior when Atom starts with no project. When it starts with no project ... "Open Empty Editor on Start" being checked means that there is an |
Do you have check Chrome dev tools ? CTRL + SHIFT + I and open console tab, is any display error there ? |
@lee-dohm I'm admin on my laptop so I should have the premissions. I installed it simply by downloading the app and dragging it into applications folder @fiando the only errors I get in console are "depricated" such as: /deep/ combinator is deprecated. I was testing the app further and noticed that when I keep the project added for a longer time (~10min) then Atom remembers next time I open it. Moreover, if open Atom, remove the project from the tree view and quit Atom straight away - next time I open the project still is in the tree view. Is there any timer before the project is saved/removed permanently? |
I'm having the same exact issue, driving me nuts. @lee-dohm $ atom --version The Mac (Apple) is version 10.11.6. @fiando When I do that, I get |
Now I can't reproduce the issue. Everything seems to be working fine now and nothing has changed, other than this Mac crashing (seems to be fairly typical of it) and coming back up. If it happens again I'll post here. |
Ok, so this sounds like it is more the real problem. Other project state like unsaved file status and open files gets stored on exit, but it appears that the list of open project folders does not. I was able to verify this using Atom v1.9.9 on Mac OS X 10.11.6. |
I've updated the original bug to include the steps to reproduce the problem. |
@maxbrunsfeld
I use 'watch cat ~/.atom/storage/application.json' command to watch 'application.json', and find that the sate will not be saved if you don't leave the current window, that means saveState() will be called just after blur event |
Yup, this is a known limitation of the window state system; it only saves when changing focus, adding and removing windows. We should save when adding and removing project folders in addition. |
Since this is still open and I'm facing similar issues on my Mac with atom 1.10.2.- If I add project folders and then run 'cat ~/.atom/storage/application.json' my project will be listed in an array named initialPaths. Unfortunately though when I close the app using the X (which should be a safe action), the contents of that application.json is wiped and replaced with "[]". Perhaps a fix (if this is not the intended operation) is in the window.on('closed', function(){...}) or whatever the equivalent is in the sytem? |
I'm seeing exact same behavior as @Utilityman. Latest version of Atom (1.10.2) on latest version of macOS (10.12). |
@Utilityman @sclarkso That behavior is intended; it is the convention on macOS. If you want a window to stay around the next time you open Atom, do not close it. Instead, quit the app with it open. |
I see this problem on Darwin nfml-szhangDUF 16.0.0 Darwin Kernel Version 16.0.0: Mon Aug 29 17:56:20 PDT 2016; root:xnu-3789.1.32~3/RELEASE_X86_64 x86_64 (mac version 10.12 macOS Sierra) Repro steps: |
+1 here. Atom: 1.11.2 If I quit using CMD + Q, Atom reopens my project. However, if I quit using the red 'x' Atom opens with an empty view as ~/.atom/storage/application.json was wiped out. |
@maxbrunsfeld Despite it being a macOS convention, there are many apps that reopen your last working project no matter how you close them (most if not all IDEs for example). It would be nice if this behaviour was a preference (switched off by default to avoid breaking the convention). |
@dav-garcia So Sublime Text doesn't do what you're describing, and neither does vim. I'm pretty sure XCode doesn't either. Could you post a GIF of this happening with some other IDE on Mac? Specifically:
|
@holewheat The red |
@maxbrunsfeld I've seen this in IntelliJ, Netbeans and Eclipse. |
@dav-garcia I see what you're saying, but just so we're super clear about this alternative behavior, could you post a GIF of exactly what you're seeing in those IDEs, when using the red x button? |
@maxbrunsfeld Sorry, I don't have time to do it now but I see where you are going... Anyway, this (opt-in) feature would be very useful and time saving. |
Using the "Atom->Init Script" may solve this issue in some degree. We can use the atom.open API to open some project every time the atom is opened. For example
|
For those who came here looking for a way to persist added projects. Atom has the ability to open multiple folders on a single command.
Source: http://blog.atom.io/2015/04/15/multi-folder-projects.html |
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! |
This is a known limitation of the window state system; it only saves when changing focus, adding and removing windows. We should save when adding and removing project folders in addition.
Repro Steps
Expected: Both project folders to be listed in the Tree View
Actual: Only the first project folder is listed in the Tree View
Info:
The text was updated successfully, but these errors were encountered: