atom-julia-client icon indicating copy to clipboard operation
atom-julia-client copied to clipboard

Failed to activate the julia-client package

Open HaoxueYue opened this issue 6 years ago • 14 comments

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.41.0 x64 Electron: 4.2.7 OS: Unknown Windows version Thrown From: julia-client package 0.11.3

Stack Trace

Failed to activate the julia-client package

At Arguments to CompositeDisposable.add must have a .dispose() method

TypeError: Arguments to CompositeDisposable.add must have a .dispose() method
    at assertDisposable (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:1215455)
    at CompositeDisposable.add (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:1216423)
    at Object.consumeProvider (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:162456)
    at Object.consumeProvider_4 (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:162264)
    at Provider.provide (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:14:1125283)
    at ServiceHub.provide (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:3308382)
    at Package.activateServices (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:3316668)
    at Package.activateNow (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:3313644)
    at measure (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:3312968)
    at Package.measure (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:3310578)
    at activationPromise.activationPromise.Promise (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:3312828)
    at new Promise (<anonymous>)
    at Package.activate (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:3312771)
    at PackageManager.activatePackage (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:382554)
    at o.forEach.e (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:377720)
    at Array.forEach (<anonymous>)
    at disabledPackagesSubscription.disabledPackagesSubscription.config.onDidChange (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:377704)
    at emitter.on (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:334755)
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:1211909)
    at Emitter.emit (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:1213350)
    at Config.emitChangeEvent (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:337243)
    at Config.setRawValue (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:334483)
    at Config.set (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:330277)
    at Config.removeAtKeyPath (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:332300)
    at Package.enable (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:3310363)
    at PackageManager.enablePackage (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:11:375418)
    at HTMLButtonElement.enablementButtonClickHandler (~/AppData/Local/atom/app-1.41.0/resources/app/static/<embedded>:14:2603767)

Commands

     -0:41.9.0 julia:get-help (input.hidden-input)
     -0:36.1.0 julia-client:settings (input.hidden-input)

Non-Core Packages

atom-julia-run 1.0.5 
busy-signal 2.0.1 
gfm-pdf 0.3.5 
indent-detective 0.4.0 
ink 0.11.6 
intentions 1.1.5 
julia-client 0.11.3 
language-julia 0.19.1 
latex-completions 0.3.6 
linter 2.3.1 
linter-julia 0.7.4 
linter-ui-default 1.8.0 
notes-from-pdf 0.4.2 
pdf-view 0.72.0 
script 3.25.0 
tool-bar 1.2.0 
uber-juno 0.3.0 

HaoxueYue avatar Nov 06 '19 13:11 HaoxueYue

I have the same issue on Debian

mantzaris avatar Nov 12 '19 16:11 mantzaris

Even after a restart of Atom?

pfitzseb avatar Nov 12 '19 17:11 pfitzseb

I ~~have~~ had the same issue using Pop!_os (What a horrible name for an OS, but I digress).

Fixed it simply by updating all the Atom packages (D'oh!).

Error: Cannot find module '../build/Debug/pty.node'
    at Module._resolveFilename (internal/modules/cjs/loader.js:584:15)
    at Module._resolveFilename (/usr/share/atom/resources/electron.asar/common/reset-search-paths.js:43:12)
    at Function.get_Module._resolveFilename (/usr/share/atom/resources/app/static/<embedded>:11:155413)
    at Module.require (file:///usr/share/atom/resources/app.asar/static/index.js:61:43)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:146745)
    at Object.loadNative (/home/eirik/.atom/packages/julia-client/node_modules/@pfitzseb/node-pty-prebuilt/lib/utils.js:22:16)
    at Object.<anonymous> (/home/eirik/.atom/packages/julia-client/node_modules/@pfitzseb/node-pty-prebuilt/lib/unixTerminal.js:24:19)
    at Object.<anonymous> (/home/eirik/.atom/packages/julia-client/node_modules/@pfitzseb/node-pty-prebuilt/lib/unixTerminal.js:255:3)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147429)
    at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:150977)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (file:///usr/share/atom/resources/app.asar/static/index.js:72:46)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:146745)
    at Object.<anonymous> (/home/eirik/.atom/packages/julia-client/node_modules/@pfitzseb/node-pty-prebuilt/lib/index.js:14:20)
    at Object.<anonymous> (/home/eirik/.atom/packages/julia-client/node_modules/@pfitzseb/node-pty-prebuilt/lib/index.js:52:3)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147429)
    at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:150977)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (file:///usr/share/atom/resources/app.asar/static/index.js:72:46)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:146745)
    at Object.<anonymous> (/home/eirik/.atom/packages/julia-client/lib/connection/process/basic.js:3:24)
    at Object.<anonymous> (/home/eirik/.atom/packages/julia-client/lib/connection/process/basic.js:186:2)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147429)
    at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:150977)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)

Happened after I updated a bunch of software, including Atom.

Tried restarting atom as well as rebooting the computer.

eirikbrandsaas avatar Nov 17 '19 22:11 eirikbrandsaas

Even after a restart of Atom?

Yes, and it persists

mantzaris avatar Nov 25 '19 20:11 mantzaris

Still happening for me.

jonniedie avatar Dec 11 '19 02:12 jonniedie

When will this be fixed. This happened with fresh OS install.

sth4nth avatar Dec 19 '19 04:12 sth4nth

Reinstall or rebuild julia-client pkg as the doc says: http://docs.junolab.org/latest/man/faq/#Juno-doesn't-work-properly-after-an-Atom-update.-What-do-I-do?-1

Make sure you restart Atom after reinstalling.

aviatesk avatar Dec 19 '19 05:12 aviatesk

On a fresh OS, julia-client does not even install. How can I rebuild?


Installing “[email protected]” failed.Hide output…

> [email protected] install C:\Users\mo\AppData\Local\Temp\apm-install-dir-1191120-2316-46hx7d.schsh\node_modules\julia-client\node_modules\node-pty-prebuilt-multiarch
> prebuild-install || node scripts/install.js


C:\Users\mo\AppData\Local\Temp\apm-install-dir-1191120-2316-46hx7d.schsh\node_modules\julia-client\node_modules\node-pty-prebuilt-multiarch>if not defined npm_config_node_gyp (node "C:\Users\mo\AppData\Local\atom\app-1.41.0\resources\app\apm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\mo\AppData\Local\atom\app-1.41.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) 

prebuild-install WARN install unexpected end of file
gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (C:\Users\mo\AppData\Local\atom\app-1.41.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\configure.js:492:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\mo\AppData\Local\atom\app-1.41.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\configure.js:517:16)
gyp ERR! stack     at C:\Users\mo\AppData\Local\atom\app-1.41.0\resources\app\apm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:182:21)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Users\\mo\\AppData\\Local\\atom\\app-1.41.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\mo\\AppData\\Local\\atom\\app-1.41.0\\resources\\app\\apm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\mo\AppData\Local\Temp\apm-install-dir-1191120-2316-46hx7d.schsh\node_modules\julia-client\node_modules\node-pty-prebuilt-multiarch
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok 
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\mo\AppData\Local\Temp\apm-install-dir-1191120-2316-46hx7d.schsh\package.json'
npm WARN apm-install-dir-1191120-2316-46hx7d.schsh No description
npm WARN apm-install-dir-1191120-2316-46hx7d.schsh No repository field.
npm WARN apm-install-dir-1191120-2316-46hx7d.schsh No README data
npm WARN apm-install-dir-1191120-2316-46hx7d.schsh No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `prebuild-install || node scripts/install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\mo\.atom\.apm\_logs\2019-12-20T06_22_33_924Z-debug.log

sth4nth avatar Dec 20 '19 06:12 sth4nth

seems like you are on older version of Atom

aviatesk avatar Dec 20 '19 07:12 aviatesk

My Atom version is 1.41.0 x64 on win10. I have the same problem on both my laptop and desktop with fresh installed windows

sth4nth avatar Dec 20 '19 09:12 sth4nth

I updated my Atom to 1.42.0, the problem is still there. This problem is the same as https://github.com/JunoLab/atom-julia-client/issues/642#issuecomment-545891088

sth4nth avatar Dec 20 '19 09:12 sth4nth

For Atom 1.44 with julia-client 0.12.2, this problem is gone.

sth4nth avatar Feb 28 '20 14:02 sth4nth

Went away after updating ink to 0.12.2. Try updating all packages.

shakisparki avatar Feb 29 '20 12:02 shakisparki

updating ink fixed this to me. Probably occurs if you only update the julia packages without ink

hs-ye avatar Mar 30 '20 20:03 hs-ye