tensor5/arch-atom

Atom can't run

arkryonia opened this issue · 12 comments

I installed atom with pacman -S atom. But it failed running with no error. How can I fix this issue ?

What version are you running? (pacman -Q atom)

I have same error as @drxos , but I will provide some more info...

#pacman -Q atom
atom 1.18.0-2

Run atom from gnome desktop:

#journalctl -f
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

running directly

/usr/bin/atom

giving in journal:

org.gnome.Shell.desktop[970]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x4200001 (Atom)

About:
GNOME Shell 3.24.3

Mine doesn't run either, nothing shows up on my journal or I am not running it properly. I did run atom directly from /usr/bin/atom but nothing shows up, no errors.

> pacman -Q atom
atom 1.23.3-2

@ll931217, can you run electron /usr/lib/atom and report me what is the output?

@tensor5 this is what I get when running electron /usr/bin/atom

❯ electron /usr/bin/atom
App threw an error during load
/usr/bin/atom:3
export ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=true
^^^^^^

SyntaxError: Unexpected token export
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:533:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at loadApplicationPackage (/home/troopy712139/.node_modules_global/lib/node_modules/electron/dist/resources/default_app.asar/main.js:287:12)
    at Object.<anonymous> (/home/troopy712139/.node_modules_global/lib/node_modules/electron/dist/resources/default_app.asar/main.js:329:5)
    at Object.<anonymous> (/home/troopy712139/.node_modules_global/lib/node_modules/electron/dist/resources/default_app.asar/main.js:366:3)
A JavaScript error occurred in the main process
Uncaught Exception:
/usr/bin/atom:3
export ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=true
^^^^^^

SyntaxError: Unexpected token export
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:533:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at loadApplicationPackage (/home/troopy712139/.node_modules_global/lib/node_modules/electron/dist/resources/default_app.asar/main.js:287:12)
    at Object.<anonymous> (/home/troopy712139/.node_modules_global/lib/node_modules/electron/dist/resources/default_app.asar/main.js:329:5)
    at Object.<anonymous> (/home/troopy712139/.node_modules_global/lib/node_modules/electron/dist/resources/default_app.asar/main.js:366:3)

(electron:27281): GLib-GIO-CRITICAL **: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

What electron package are you using?

The global one which is the same version as my local one which is v1.8.2

Wait... I said electron /usr/lib/atom, not electron /usr/bin/atom

And you should use electron downloaded with pacman: pacman -S electron

Oh, oops haha sorry.

❯ electron /usr/lib/atom
App threw an error during load
Error: The module '/usr/lib/atom/node_modules/nslog/build/Release/nslog.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 54. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:172:20)
    at Object.Module._extensions..node (module.js:598:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:172:20)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/lib/atom/node_modules/nslog/lib/nslog.js:5:11)
    at Object.<anonymous> (/usr/lib/atom/node_modules/nslog/lib/nslog.js:15:4)
A JavaScript error occurred in the main process
Uncaught Exception:
Error: The module '/usr/lib/atom/node_modules/nslog/build/Release/nslog.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 54. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:172:20)
    at Object.Module._extensions..node (module.js:598:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:172:20)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/lib/atom/node_modules/nslog/lib/nslog.js:5:11)

Exactly! You are using the wrong electron version. Download it with pacman.

Thank you @tensor5, that fixed it.