settings-view
settings-view copied to clipboard
Keep Settings-View Updated with Installed Packages
The Packages section of Atom's settings view gets out of sync with the installed packages when they are upgraded or downgraded via other means than the gui. This is misleading and may cause unneccesarily duplicate installs. The settings view should monitor file changes in ~/.atom/packages and update its packages section accordingly.
Steps to reproduce
When I downgrade an installed package using apm like this:
$ apm install [email protected]
Atom's settings view states falsely that there are no packages to be upgraded:

When I restart Atom using Ctrl + Alt + R, the settings view gets updated accordingly:

When I now upgrade the previously downgraded package via apm:
$ apm install autocomplete
Atom's settings view states falsely that there are packages to be upgraded:

When I restart Atom using Ctrl + Alt + R, the settings view gets updated accordingly:

Versions
$ atom --version
0.119.0-d1a610d
$ apm --version
apm 0.83.0
npm 1.4.4
node 0.10.26
python 2.7.5
git 1.9.3
This also happens with the current release of atom (and apm):
$ atom --version
0.120.0-b3c2417
$ apm --version
apm 0.83.0
npm 1.4.4
node 0.10.26
python 2.7.5
git 1.9.3
I don't think there's currently any way for the apm command to send notifications to a running atom instance - is it?
The alternative is for atom to use something to watch the $ATOM_HOME directory to check for changes - and then fire notifications.
I don't think that would be easy, but I do think it's needed - I think the package management deserves a package itself, and settings-view (and others) should depend on it to get notified.
Until then, a simple Refresh list link could make it, he.
+1
+1 to this. Although Window: Reload is already pretty quick ;)
This seems like a pretty big deal to me.