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

Installed Packages don't load once an error is encountered

Open mnquintana opened this issue 8 years ago • 18 comments

From @DiThi on July 16, 2015 19:13

installed_package

I forgot to capture the mouse cursor, but I hope it's clear the package is installed.

Copied from original issue: atom/atom#7937

mnquintana avatar Jul 16 '15 19:07 mnquintana

What version of Atom are you using?

mnquintana avatar Jul 16 '15 19:07 mnquintana

From @DiThi on July 16, 2015 19:17

1.0.2

I don't even know how to disable auto update, something I'd like to do because it caused me problems in the past.

mnquintana avatar Jul 16 '15 19:07 mnquintana

I am having the same problem on atom 1.0.5, OSX 10.10.4. Many of the packages I have installed don't show up when I search for them and don't always show up in "install" either (from atom/atom#8324).

gfarrell avatar Aug 12 '15 11:08 gfarrell

I'm also having this issue, I have a ton of packages but most of them are disabled while I figure out which ones stick for me. I hadn't tried searching for them in Install but missing packages show up in the command palette, packages menu, Config file and in the package-list.

Please let me know if there's anything I can do to help you track down the issue.

Atom: 1.0.11 OS X: 10.11 Beta (15A279b) - Beta 8

ChristinWhite avatar Sep 03 '15 22:09 ChristinWhite

If it helps I'm getting the following errors in the console that may be related to the issue: atom console 1 atom console 2

Disabling task-list fixed the problem for me, I'll post an issue to their repo next. For those of you who are also having this problem check your console for more information.

ChristinWhite avatar Sep 03 '15 23:09 ChristinWhite

I've been having the same problem. I've posted some screenshots here.

My Packages page says that the "Community Packages" section has 14 items, but only shows 1!

Macil avatar Sep 04 '15 23:09 Macil

@AgentME It's very likely you have some package not loading, fwiw, I think that once a package activation fails, the rest may not load correctly.

Check your console for exceptions.

ghost avatar Sep 05 '15 00:09 ghost

I'm using Atom 1.0.11 under Windows 7 x64 SP1 I've 53 community packages installed but the community packages in the settings shows only very few. Lots of other packages are missing. But i'm able to ues them in the editor.

abhisekp avatar Sep 11 '15 16:09 abhisekp

@peduxe Thanks, looks like the require package was the cause. Removing it worked around the issue. Here's the full stack trace if it's useful:

atom.project.getPath is not a function TypeError: atom.project.getPath is not a function
  at Object.<anonymous> (/Users/chris/.atom/packages/require/views/require-view.js:3:32)
  at Module._compile (module.js:428:26)
  at Object.defineProperty.value [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:169:21)
  at Module.load (module.js:353:32)
  at Function.Module._load (module.js:308:12)
  at Module.require (module.js:363:17)
  at require (module.js:382:17)
  at Object.<anonymous> (/Users/chris/.atom/packages/require/index.js:2:19)
  at Module._compile (module.js:428:26)
  at Object.defineProperty.value [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:169:21)
  at Module.load (module.js:353:32)
  at Function.Module._load (module.js:308:12)
  at Module.require (module.js:363:17)
  at require (module.js:382:17)
  at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:761:34)
  at Package.module.exports.Package.activateConfig (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:263:14)
  at PackageManager.module.exports.PackageManager.packageHasSettings (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:42:14)
  at PackageCard.module.exports.PackageCard.hasSettings (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-card.js:611:34)
  at PackageCard.module.exports.PackageCard.initialize (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-card.js:205:17)
  at PackageCard.View (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:184:25)
  at new PackageCard (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-card.js:22:48)
  at InstalledPackagesPanel.module.exports.InstalledPackagesPanel.createPackageCard (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/installed-packages-panel.js:327:18)
  at ListView.__bind [as createView] (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/installed-packages-panel.js:3:61)
  at ListView.module.exports.ListView.addView (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/list-view.js:50:19)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/list-view.js:13:24
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at List.module.exports.List.setItems (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/list.js:42:22)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/installed-packages-panel.js:275:28
  at _fulfilled (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:794:54)
  at self.promiseDispatch.done (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:823:30)
  at Promise.promise.promiseDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:756:13)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:564:44
  at flush (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:110:17)
  at doNTCallback0 (node.js:416:9)
  at process._tickCallback (node.js:345:13)

Macil avatar Sep 18 '15 18:09 Macil

Same issue as others: Atom: 1.0.19 Ubuntu Vivid 15.04 x64 Packages list fails to load all packages, error in console as follows:

Cannot read property 'prototype' of undefined TypeError: Cannot read property 'prototype' of undefined
  at __extends (/home/sam/.atom/packages/npm-docs/lib/npm-docs-view.coffee:1:1)
  at /home/sam/.atom/packages/npm-docs/lib/npm-docs-view.coffee:5:3
  at Object.<anonymous> (/home/sam/.atom/packages/npm-docs/lib/npm-docs-view.coffee:66:5)
  at Object.<anonymous> (/home/sam/.atom/packages/npm-docs/lib/npm-docs-view.coffee:1:1)
  at Module._compile (module.js:428:26)
  at Object.defineProperty.value [as .coffee] (/usr/share/atom/resources/app.asar/src/compile-cache.js:169:21)
  at Module.load (module.js:353:32)
  at Function.Module._load (module.js:308:12)
  at Module.require (module.js:363:17)
  at require (module.js:382:17)
  at Object.<anonymous> (/home/sam/.atom/packages/npm-docs/lib/npm-docs.coffee:5:15)
  at Object.<anonymous> (/home/sam/.atom/packages/npm-docs/lib/npm-docs.coffee:1:1)
  at Module._compile (module.js:428:26)
  at Object.defineProperty.value [as .coffee] (/usr/share/atom/resources/app.asar/src/compile-cache.js:169:21)
  at Module.load (module.js:353:32)
  at Function.Module._load (module.js:308:12)
  at Module.require (module.js:363:17)
  at require (module.js:382:17)
  at Package.module.exports.Package.requireMainModule (/usr/share/atom/resources/app.asar/src/package.js:761:34)
  at Package.module.exports.Package.activateConfig (/usr/share/atom/resources/app.asar/src/package.js:263:14)
  at PackageManager.module.exports.PackageManager.packageHasSettings (/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-manager.js:42:14)
  at PackageCard.module.exports.PackageCard.hasSettings (/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-card.js:611:34)
  at PackageCard.module.exports.PackageCard.initialize (/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-card.js:205:17)
  at PackageCard.View (/usr/share/atom/resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:184:25)
  at new PackageCard (/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-card.js:22:48)
  at InstalledPackagesPanel.module.exports.InstalledPackagesPanel.createPackageCard (/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/installed-packages-panel.js:327:18)
  at ListView.createView (/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/installed-packages-panel.js:3:61)
  at ListView.module.exports.ListView.addView (/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/list-view.js:50:19)
  at /usr/share/atom/resources/app.asar/node_modules/settings-view/lib/list-view.js:13:24
  at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at List.module.exports.List.setItems (/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/list.js:42:22)
  at /usr/share/atom/resources/app.asar/node_modules/settings-view/lib/installed-packages-panel.js:275:28
  at _fulfilled (/usr/share/atom/resources/app.asar/node_modules/q/q.js:794:54)
  at self.promiseDispatch.done (/usr/share/atom/resources/app.asar/node_modules/q/q.js:823:30)
  at Promise.promise.promiseDispatch (/usr/share/atom/resources/app.asar/node_modules/q/q.js:756:13)
  at /usr/share/atom/resources/app.asar/node_modules/q/q.js:564:44
  at flush (/usr/share/atom/resources/app.asar/node_modules/q/q.js:110:17)
  at doNTCallback0 (node.js:416:9)
  at process._tickDomainCallback (node.js:386:13)
(anonymous function) @ /usr/share/atom/resources/app.asar/node_modules/settings-view/lib/installed-packages-panel.js:288

Let me know if there is anything else I can provide. It doesn't appear to point to any particular package breaking things, I don't have some of the packages mentioned by users above, my issue appears to be npm-docs-view.

Interestingly, I can access a limited set of settings from the install packages pane, where I disabled npm-docs. I no longer get an error to console, but I still don't see all of my installed packages (the count is correct though).

martsa1 avatar Oct 19 '15 14:10 martsa1

+1

gaurav21r avatar Oct 30 '15 18:10 gaurav21r

It looks like it is a problem with a defective package. In my case, I noticed this issue after installing the snake package (I only wanted to try it). When I uninstalled it, after restarting atom, I got the whole list of packages.

When it wasn't working, I had a log similar to @christopherdwhite and @Sam2304.

Atom version: 1.0.19

joseluiscd avatar Jan 15 '16 21:01 joseluiscd

+1, I think you could easily reproduce this bug with "sync-settings" package:

  • install few packages
  • just do a backup
  • uninstall or just delete entire .atom packages directory
  • try to restore a backup with "sync-settings" They will be reinstalled and visible using apm list command, but some of them will not be seen under atom->settings>packages list

piotrwitek avatar Mar 06 '16 15:03 piotrwitek

Hi, Problem still unsolved since last update. Now using Atom v1.5.4. Maybe a bit different in the way that my package list menu is not showing all my installed package. Still can use some but cannot launch features normally only accessible by the menu. Included print screens. My console doesn't report any error except deprecated elements (/deep/ combinator & shadow pseudo-element). error1 error2

juliesunset avatar Mar 08 '16 20:03 juliesunset

I think @joseluiscd is correct. I noticed this on Atom 1.6.2 with a development package I was working on. There was an error in my own package (missing module), which seemed to cause Atom's package loader to bail out on loading anything else in the settings view. I could only see a handful of installed packages there. After removing my dev package, everything loaded up fine.

jpeddicord avatar Apr 04 '16 17:04 jpeddicord

FYI I am seeing this on v1.9.9

iToto avatar Aug 19 '16 20:08 iToto

This problem also appears (or persists) in Atom version 1.10.2:

I installed a package that throws errors during installation (zotero-citations ver. 0.19.0). With this package installed, only one of nine community packages was listed in the "packages" section. The broken package dis appear as installed in the "install" section, however. Removing it from there and restarting Atom restores the proper behavior.

tluge avatar Sep 22 '16 09:09 tluge

I was having a problem with Atom-live-server not showing in the packages. My Solution: You have to rebuild the packages by clicking the "Bug" icon in the bottom right hand corner and reload Atom Hopefully this works for some of you

elritz avatar Aug 17 '17 17:08 elritz