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 isn't installed (macintosh) #18

Closed Fl4t closed 12 years ago

Fl4t commented 12 years ago

Hi xolox !

I use MacVim and i have installed ctags with the macports project, unfortunately when i open macvim with your plugin i have a message : easytags.vim 2.5.8: Plug-in not loaded because Exuberant Ctags isn't installed! Please download & install Exuberant Ctags from http://ctags.sf.net

macvim : https://github.com/b4winckler/macvim macports : https://trac.macports.org/browser/trunk/dports/devel/ctags/Portfile

i hope you can fix this issue

Sorry for my poor english

Thanks for your work dude !

xolox commented 12 years ago

Hi Julien,

Can you open a terminal and execute the following command?

which -a ctags

I'm guessing it will print multiple paths: The first one is the system wide ctags installed by default on Mac OS X and the other one is the version of Exuberant Ctags you installed. Unfortunately the easytags plug-in is only picking up the first variant (the wrong one). To fix this you can set the following variable in your vimrc script:

let g:easytags_cmd = '/usr/local/bin/ctags'

The variable should contain the absolute path of the second line printed by the which -a command. I hope this resolves your problem, if not feel free to get back to me.


The above instructions should fix the issue for you, but I've had to explain this before to Mac users so maybe the plug-in should somehow do this automatically on Mac (i.e. ignore /usr/bin/ctags because it's broken).

xolox commented 12 years ago

I just published easytags 2.6 which should hopefully work on Mac OS X out of the box, however I don't have any Macs available to test it on. Can you try out the new release and let me know whether it works for you on Mac OS X? Thanks!

Fl4t commented 12 years ago

It work like a charm ;)

Thanks Peter !