Open yantaozhao opened 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.
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
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
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 ...)
then I
file ~/.atom/package/atom-gtags/vendor/linux/global
and find thegtags
andglobal
residing here are 32-bit ELF. It seems atom-gtags does not use thegtags
andglobal
which already installed in the system, but using these 32-bit ones.