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

Fetching featured packages failed / Searching for "..." failed

Open sbont opened this issue 10 years ago • 24 comments

Hi,

I'm running Atom 1.7.2 on Windows 10. At 'Install Packages' it immediately says Fetching featured packages failed. with error message The system cannot find the path specified.

Searching for a package results in the same. Also, the installed packages view shows "Loading packages..." for every category but it never finishes loading.

From the console I got: Fetching local packages failed. Error: Fetching local packages failed. at C:\Users\Steven\AppData\Local\atom\app-1.7.2\resources\app.asar\node_modules\settings-view\lib\package-manager.js:103:21 at exit (C:\Users\Steven\AppData\Local\atom\app-1.7.2\resources\app.asar\node_modules\settings-view\lib\package-manager.js:73:16) at triggerExitCallback (C:\Users\Steven\AppData\Local\atom\app-1.7.2\resources\app.asar\src\buffered-process.js:215:47) at C:\Users\Steven\AppData\Local\atom\app-1.7.2\resources\app.asar\src\buffered-process.js:229:18 at Socket.<anonymous> (C:\Users\Steven\AppData\Local\atom\app-1.7.2\resources\app.asar\src\buffered-process.js:100:18) at emitOne (events.js:82:20) at Socket.emit (events.js:169:7) at Pipe._onclose (net.js:469:12)

I checked my COMSPEC variable but that seems okay. Any idea?

Thanks!

sbont avatar Jun 13 '16 10:06 sbont

I'm getting the same issue. I added a custom package (following the Atom tutorial on creating the sourcefetch package), and now the packages pane just perpetually loads every item in it: image

I've manually removed sourcefetch from the config folder, but that didn't change anything.

Here is the console output:

/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/installed-packages-panel.js:330 Fetching local packages failed. Error: Fetching local packages failed.
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:103:21
    at exit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:73:16)
    at triggerExitCallback (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:215:47)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:229:18
    at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:100:18)
    at emitOne (events.js:95:20)
    at Socket.emit (events.js:182:7)
    at Pipe._onclose (net.js:477:12)

And a screenshot: image

benvenker avatar Aug 31 '16 18:08 benvenker

I had the same issue and it was a nasty thing to tackle.

For me it was, that I had GraphViz installed. This mangled with my PATH-Variable and put quotes around its portion of the path. This totally confused the script that is used by Atom (C:\Users\<username>\AppData\Local\atom\app-1.10.2\resources\app\apm\bin\apm.cmd) to look for packages and updates.

Maybe you have a similar issue.

walter76 avatar Sep 15 '16 20:09 walter76

@sbont Can you post your PATH or confirm if something in that environment variable has quotes?

Nothing in there should and if it does and you have github desktop installed but not a git in your path we attempt to dynamically add git to the path however it failed if the path was malformed by having quotes. We've fixed this in an upcoming release but in the mean time removing quotes around the offending path solves it.

damieng avatar Sep 15 '16 20:09 damieng

Hi, I solved this issue by removing all double-quote from PATH variables.

C:\ (...) ;"C:\Program Files (x86)\NUnit 2.6.2\bin";C:\Program Files (...) became C:\ (...) ;C:\Program Files (x86)\NUnit 2.6.2\bin;C:\Program Files (...).

kamihanran avatar Sep 23 '16 13:09 kamihanran

I guess I should've clarified that this issue is occurring on Mac OS X v10.11.6. Some more info:

  • On the Install menu, i see this under Featured Themes: image

And when I open that file, this is what I see:

#!/bin/bash

set -e

initialCwd=`pwd -P`

apmPath=$0
builtin cd "`dirname "$apmPath"`"
binDir=`basename "$apmPath"`

# Detect node binary name
osName=`uname -s`
if [ "${osName:0:10}" == 'MINGW32_NT' ]; then
  nodeBin="node.exe"
else
  nodeBin="node"
fi

while [ -L "$binDir" ]
do
  binDir=`readlink "$binDir"`
  builtin cd "`dirname "$binDir"`"
  binDir=`basename "$binDir"`
done

binDir=`pwd -P`

maybe_node_gyp_path="$binDir"/../node_modules/.bin/node-gyp
if [ -e "$maybe_node_gyp_path" ]
then
  export npm_config_node_gyp="$maybe_node_gyp_path"
fi

builtin cd "$initialCwd"
"$binDir/$nodeBin" "$binDir/../lib/cli.js" "$@"

Beyond what I pasted in my previous comment, I don't have any other info that I'm aware of to provide, but I'm still experiencing the issue.

benvenker avatar Sep 28 '16 04:09 benvenker

I also just tried a complete uninstall using AppCleaner and then a reinstall, and no change. It's even remembering all my previous configs.

benvenker avatar Sep 28 '16 04:09 benvenker

UPDATE: I found https://github.com/atom/atom/issues/1874 and I can confirm that if I open from terminal things work normally. It's only if I open from Alfred/Spotlight that I have the issue.

benvenker avatar Sep 28 '16 04:09 benvenker

i'm having this same issue. Console is reporting the following:

Fetching local packages failed. Error: Fetching local packages failed.
    at C:\Users\USER\AppData\Local\atom\app-1.9.9\resources\app.asar\node_modules\settings-view\lib\package-manager.js:103:21
    at exit (C:\Users\USER\AppData\Local\atom\app-1.9.9\resources\app.asar\node_modules\settings-view\lib\package-manager.js:73:16)
    at triggerExitCallback (C:\Users\USER\AppData\Local\atom\app-1.9.9\resources\app.asar\src\buffered-process.js:215:47)
    at C:\Users\USER\AppData\Local\atom\app-1.9.9\resources\app.asar\src\buffered-process.js:229:18
    at Socket.<anonymous> (C:\Users\USER\AppData\Local\atom\app-1.9.9\resources\app.asar\src\buffered-process.js:100:18)
    at emitOne (events.js:95:20)
    at Socket.emit (events.js:182:7)
    at Pipe._onclose (net.js:477:12)

i've confirmed that my Environment Variables have no quotes. This issue surfaced after a recent update and was not a problem prior.

Operating system: Window 8.1 Enterprise System type: 64-bit Operating System, x64-based processor Atom version: 1.9.9

alittlerabbi avatar Sep 28 '16 16:09 alittlerabbi

I'm experiencing this issue.

OS: Windows 10 Professional System type: 64-bit Operating System, x64-based processor Atom version: 1.10.2

C:\Program Files (x86)\Atom\resources\app.asar\node_modules\settings-view\lib\installed-packages-pa…:330 Fetching local packages failed. Error: Fetching local packages failed.
    at C:\Program Files (x86)\Atom\resources\app.asar\node_modules\settings-view\lib\package-manager.js:103:21
    at exit (C:\Program Files (x86)\Atom\resources\app.asar\node_modules\settings-view\lib\package-manager.js:73:16)
    at triggerExitCallback (C:\Program Files (x86)\Atom\resources\app.asar\src\buffered-process.js:215:47)
    at C:\Program Files (x86)\Atom\resources\app.asar\src\buffered-process.js:229:18
    at Socket.<anonymous> (C:\Program Files (x86)\Atom\resources\app.asar\src\buffered-process.js:100:18)
    at emitOne (events.js:95:20)
    at Socket.emit (events.js:182:7)
    at Pipe._onclose (net.js:477:12)(anonymous function) @ C:\Program Files (x86)\Atom\resources\app.asar\node_modules\settings-view\lib\installed-packages-pa…:330
C:\Program Files (x86)\Atom\resources\app.asar\node_modules\settings-view\lib\main.js:126 Fetching outdated packages and themes failed. Error: Fetching outdated packages and themes failed.
    at C:\Program Files (x86)\Atom\resources\app.asar\node_modules\settings-view\lib\package-manager.js:177:21
    at exit (C:\Program Files (x86)\Atom\resources\app.asar\node_modules\settings-view\lib\package-manager.js:73:16)
    at triggerExitCallback (C:\Program Files (x86)\Atom\resources\app.asar\src\buffered-process.js:215:47)
    at C:\Program Files (x86)\Atom\resources\app.asar\src\buffered-process.js:229:18
    at Socket.<anonymous> (C:\Program Files (x86)\Atom\resources\app.asar\src\buffered-process.js:100:18)
    at emitOne (events.js:95:20)
    at Socket.emit (events.js:182:7)
    at Pipe._onclose (net.js:477:12)
C:\Program Files (x86)\Atom\resources\app.asar\node_modules\settings-view\lib\installed-packages-pa…:331 Uncaught (in promise) TypeError: Cannot read property 'hide' of undefined
    at C:\Program Files (x86)\Atom\resources\app.asar\node_modules\settings-view\lib\installed-packages-panel.js:331:31
C:\Program Files (x86)\Atom\resources\app.asar\node_modules\settings-view\lib\package-manager.js:177 Uncaught (in promise) Error: Fetching outdated packages and themes failed.
    at C:\Program Files (x86)\Atom\resources\app.asar\node_modules\settings-view\lib\package-manager.js:177:21
    at exit (C:\Program Files (x86)\Atom\resources\app.asar\node_modules\settings-view\lib\package-manager.js:73:16)
    at triggerExitCallback (C:\Program Files (x86)\Atom\resources\app.asar\src\buffered-process.js:215:47)
    at C:\Program Files (x86)\Atom\resources\app.asar\src\buffered-process.js:229:18
    at Socket.<anonymous> (C:\Program Files (x86)\Atom\resources\app.asar\src\buffered-process.js:100:18)
    at emitOne (events.js:95:20)
    at Socket.emit (events.js:182:7)
    at Pipe._onclose (net.js:477:12)

I'm using the portable version.

emileber avatar Sep 28 '16 20:09 emileber

My path to apm was: C:\Program Files (x86)\Atom\resources\app\apm\bin and it worked since Atom ~1.7

I changed this path to: C:\PROGRA~2\Atom\resources\app\apm\bin and now it works...

emileber avatar Sep 28 '16 20:09 emileber

How did atom get installed into this path?

On Wed, Sep 28, 2016, 1:59 PM Emile Bergeron [email protected] wrote:

My path to apm was: C:\Program Files (x86)\Atom\resources\app\apm\bin and it worked since Atom ~1.7

I changed this path to: C:\PROGRA~2\Atom\resources\app\apm\bin and now it works...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/atom/settings-view/issues/798#issuecomment-250297800, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHQp7KbJU5no_uPhitzJTSNqyw1oh4Mks5qutUZgaJpZM4I0M14 .

damieng avatar Sep 28 '16 21:09 damieng

The Atom executable fails on windows 10 when the path to the install directory is too long. Despite the closed issue atom/atom#5109, I'm still unable to install Atom through the installer, so I used the portable version and dumped it besides my other app.

emileber avatar Sep 28 '16 22:09 emileber

If you are using apm from the windows console, try running it from git shell for windows.

catawbasam avatar Oct 20 '16 14:10 catawbasam

Workaround Windows Only [Version 10] 2016-10-21_1856 If anyone is getting the above error \Microsoft was unexpected at this time. and failing to load packages / themes under settings, try the solution below, this worked for me

  1. Go to C:\Users%USERNAME%\AppData\Local\atom\app-1.11.2\resources\app\apm\bin
  2. Edit apm.cmd
  3. Move the lines in red box after parenthesis as in screenshot below

2016-10-21_1914

PrajeeshE avatar Oct 21 '16 13:10 PrajeeshE

This happens if your PATH environment variables contains a " around any of the entries. Windows normally uses " around paths with spaces but it should not be like this in PATH.

There is a workaround for this in the next version of apm.

On Fri, Oct 21, 2016 at 6:48 AM Prajeesh [email protected] wrote:

Workaround Windows Only [Version 10] [image: 2016-10-21_1856] https://cloud.githubusercontent.com/assets/13434074/19599972/9cb238a6-97c0-11e6-9bd5-786c531e58a4.png If anyone is getting the above error \Microsoft was unexpected at this time. and failing to load packages / themes under settings, try the solution below, this worked for me

  1. Go to C:\Users%USERNAME%\AppData\Local\atom\app-1.11.2\resources\app\apm\bin
  2. Edit apm.cmd
  3. Move the lines in red box after parenthesis as in screenshot below

[image: 2016-10-21_1914] https://cloud.githubusercontent.com/assets/13434074/19600474/d3c21a12-97c2-11e6-88cc-8f8a0e5bc232.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/atom/settings-view/issues/798#issuecomment-255381579, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHQpws87fhehcGryLi8VHpVv4UmMdtHks5q2MKYgaJpZM4I0M14 .

damieng avatar Oct 25 '16 18:10 damieng

Hi, guys. I have same problem with my atom editor & i fixed it myself. Now its working well. If anyone still facing such type of problem then must tell me, i really fix that issue.

optmsshiv avatar Feb 01 '17 13:02 optmsshiv

@PrajeeshE your solution worked for me using W7 and atom v 1.14.1 thanks!

thalemn avatar Feb 10 '17 20:02 thalemn

Haven't had this issue anymore lately. Using 1.14.1 without any problems now.

Thanks for the hints & fixes!

sbont avatar Feb 13 '17 12:02 sbont

Had this issue this morning, after trying to get a more technical fix to work I gave up, re-ran my install.exe. Problem solved.

OvertCoffee avatar Mar 08 '17 15:03 OvertCoffee

This is ridiculous. Is there a fix for this or not?

chuckboycejr avatar Dec 26 '17 17:12 chuckboycejr