emacsorphanage / helm-gtags

GNU GLOBAL helm interface
204 stars 31 forks source link

Failed: create TAGS(1) #119

Closed ghost closed 9 years ago

ghost commented 9 years ago

My system info: Mac OSX 10.10 global version: 6.5

When I M-x helm-gtags-create-tags, helm-gtags throws error: Failed: create TAGS(1)

ghost commented 9 years ago

Emacs: 24.5.4 (brew)

syohex commented 9 years ago

Do you set permission correctly ? Please check gtags at the directory in terminal emulator.

ghost commented 9 years ago

@syohex, I can run gtags in terminal emulator, I use brew to install global, this is my permission:

lrwxr-xr-x 1 zwb admin 30B 7 13 18:40 gtags -> ../Cellar/global/6.5/bin/gtags

syohex commented 9 years ago

Thanks

Do you set permission correctly ?

Sorry, this means the directory permission where you failed M-x helm-gtags-create-tags. And please try to execute gtags the directory where you failed M-x helm-gtags-create-tags in terminal.

ghost commented 9 years ago

@syohex I ran gtags in my project's directory, it works OK, creates three files with data.

syohex commented 9 years ago

Hmm, I cannot reproduce. Can you reproduce this issue in other directory ?

ghost commented 9 years ago

@syohex , I can reproduce this issue in other directory.

ghost commented 9 years ago

@syohex It can create three files, but the files are empty.

syohex commented 9 years ago

Can I download your project(or project where you happen this issue) from somewhere ?

ghost commented 9 years ago

@syohex, I have a question, what's the difference between "default", "native", "ctags", "pyments"? I use default, it works OK, I chose ctags, it gave me this error.

syohex commented 9 years ago

I have a question, what's the difference between "default", "native", "ctags", "pyments"? I use default, it works OK, I chose ctags, it gave me this error.

They are parsers. GNU global supports some parsers. GNU global parsers supports a few languages(C, C++, Java, old PHP), while ctags and pygments supports much languages(C, C++, Ruby, Python, Golang etc) than GNU global ones. However you need to configure GNU global with those options and install them.

I suppose you can install gnu global with those features by following command.

% brew uninstall global
% brew install global --with-exuberant-ctags --with-pygments
ghost commented 9 years ago

@syohex Thank you very much! I reinstall global with these params, It now works OK!