settings-view icon indicating copy to clipboard operation
settings-view copied to clipboard

Keep Settings-View Updated with Installed Packages

Open Bengt opened this issue 11 years ago • 5 comments
trafficstars

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:

image

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

image


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:

image

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

image

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

Bengt avatar Aug 08 '14 13:08 Bengt

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

Bengt avatar Aug 08 '14 13:08 Bengt

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.

mgarciaisaia avatar Jun 12 '15 03:06 mgarciaisaia

+1

fogarasyroland avatar Jun 26 '15 09:06 fogarasyroland

+1 to this. Although Window: Reload is already pretty quick ;)

thiagodebastos avatar Jul 01 '16 02:07 thiagodebastos

This seems like a pretty big deal to me.

nixpulvis avatar Nov 03 '17 05:11 nixpulvis