atom / settings-view

🔧 Edit Atom settings
MIT License
272 stars 276 forks source link

Installed Packages View Does Not Reflect Manually Installed Packages Unless Atom is Restarted #103

Open curtjen opened 10 years ago

curtjen commented 10 years ago

If the Install Packages section of Settings is open and you manually install a package, it will not reflect that the package is installed even after reloading the Install Packages section.

Steps to duplicate:

  1. Go to Settings > Packages.
  2. From terminal run the following command: apm install Zen (or any other package).
  3. Navigate to the another section (e.g. Settings > Themes) then back to Settings > Packages. Closing the Settings tab will also duplicate this behavior.
  4. Lookup up the package you install, in this case, Zen (which is one of the feature packages at the time of writing this).

Note: Closing down Atom completely and reopening it will update the Install Packages section swimmingly. The problem only seems to exist when you have not yet closed down the program.

Possible solution:

Check to see if a package is installed each time the Install Packages section is loaded or possible each time the Settings tab is opened.

bastilian commented 8 years ago

How about a notification that says "Hej, a new package was installed", either in both cases, installed from within or outside Atom, or just the latter, and a "Active" button that initiates the package or just silently activate it.

This can be triggered by apm notifying Atom or Atom watching out for changes. I do feel though that this is more the responsibility of Atom's global package manager.

bastilian commented 8 years ago

Maybe the work of atom-settings package manager should be moved to the global manager or be replaced by using that global package manager.

The package manager in atom settings then should only trigger install/update/uninstall on the global one and listen for events, when the panels are active to reflect the changes.