xolox / vim-easytags

Automated tag file generation and syntax highlighting of tags in Vim
http://peterodding.com/code/vim/easytags/
1.01k stars 109 forks source link

ctags error on vim files #76

Closed oryband closed 10 years ago

oryband commented 10 years ago

Upon :UpdateTags in vim type files I get this. No wonder why:

easytags.vim 3.4.3: vim-misc 1.8.5: External command failed with exit code 1!
Command line: sh -c '(ctags --fields=+l --c-kinds=+p --c++-kinds=+p --sort=no -f- '\''--language-force=vim'\'' '\''/Users/ory/.vimrc'\'') 1>'\''/var/folders/k9
/39bn572j64785jmvr63tqm180000gn/T/vGpQhaM/141'\'' 2>'\''/var/folders/k9/39bn572j64785jmvr63tqm180000gn/T/vGpQhaM/142'\'''
Output on standard output stream:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ctags: illegal option -- -
usage: ctags [-BFadtuwvx] [-f tagsfile] file ... (at function xolox#easytags#autoload..xolox#easytags#update..<SNR>53_run_ctags..xolox#misc#os#exec, line 150)
easytags.vim 3.4.3: vim-misc 1.8.5: External command failed with exit code 1!
Command line: sh -c '(ctags --fields=+l --c-kinds=+p --c++-kinds=+p --sort=no -f- '\''--language-force=vim'\'' '\''/Users/ory/.vimrc'\'') 1>'\''/var/folders/k9
/39bn572j64785jmvr63tqm180000gn/T/vGpQhaM/147'\'' 2>'\''/var/folders/k9/39bn572j64785jmvr63tqm180000gn/T/vGpQhaM/148'\'''
Output on standard output stream:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ctags: illegal option -- -
usage: ctags [-BFadtuwvx] [-f tagsfile] file ... (at function xolox#easytags#autoload..xolox#easytags#update..<SNR>53_run_ctags..xolox#misc#os#exec, line 150)
oryband commented 10 years ago

Is this plugin being maintained? There hasn't been any response for quite some time.

oryband commented 10 years ago

I managed to fix this. The problem was caused on OSX >= 10.5. There's a bug which causes applications to source your custom $PATH from .bash_profile (or other files) first, and the the system $PATH gets source afterwards. See this link for info and a solution.