codingbelief / atom-gtags

Gtags for Atom
MIT License
9 stars 1 forks source link

spawnSync ENOENT #2

Open yantaozhao opened 8 years ago

yantaozhao commented 8 years ago

ubuntu14.04-64bit Atom 1.8.0 gnu global already installed from source, and works ok in emacs.

While using atom-gtags in atom, something goes wrong: press alt-1(or 2 ...)

[Gtags]global not found
Error: spawnSync ~/.atom/package/atom-gtags/vendor/linux/global ENOENT

then I file ~/.atom/package/atom-gtags/vendor/linux/global and find the gtags and global residing here are 32-bit ELF. It seems atom-gtags does not use the gtags and global which already installed in the system, but using these 32-bit ones.

codingbelief commented 8 years ago

The atom-gtags uses the buildin 32-bit global for the compatibility of 32-bit platforms and avoiding problems from different global versions. Could you provide more debug information of the console when the error msg prompt up? You can press ctrl + shift + i to toggle console window on ubuntu.

fabio-porcedda commented 6 years ago

I've the same problem on Fedora 26 64bit and Atom 1.24 x64, from the console window:

main.coffee [sm]:121 Gtags GetDefinitions!

gtags-symbols.coffee [sm]:105 gtagsCommand, options: -ax, arg: m2mb_os_malloc, cwd: /home/fabiopo/lte/m2m_generic

gtags-symbols.coffee [sm]:109 execute global, opt: -ax, arg: m2mb_os_malloc, cwd: /home/fabiopo/lte/m2m_generic

nunoapaiva commented 6 years ago

I have the same problem on windows 8.1 64bit. It seems though that cwd used for running global is the same directory of the file where I've performed Get References (Alt-2). It should be the same directory where the GRTAGS is, like it does for Get Defines (Alt-1). I've attached a log file where the Get References error appears and then the Get Defines (good result) appears. -1531350618867.log