ludovicchabant / vim-gutentags

A Vim plugin that manages your tag files
https://bolt80.com/gutentags/
MIT License
2.3k stars 174 forks source link

Do I need to install some ctags library to use this project? #295

Open milieu opened 3 years ago

milieu commented 3 years ago

Describe the bug

No matter which file I attempt to write, in any project, this is what I get with the trace turned on:

"my.cool.file" 560L, 42853B written
gutentags: Wildignore options file is up to date.
gutentags: Running: ['/Users/milieu/.vim/bundle/vim-gutentags/plat/unix/update_tags.sh', '-e', 'ctags', '-t', 'tags', '-p', '.',
 '-o', '/Users/milieu/.vim/bundle/vim-gutentags/res/ctags_recursive.options', '-l', 'tags.log']
gutentags: ctags job failed, returned: 1

If I need to install some ctags library to use this project, the README should probably be updated?

Steps to reproduce

  1. Installed the plugin by adding it to my .vimrc Vundle setup with Plugin 'ludovicchabant/vim-gutentags', then ran vim +PluginInstall to install it to my homedir's .vim/bundle directory (basically does the same thing as Pathogen)
  2. Attempt to write any file

Share your setup

vim 8.2 on MacOS Catalina

$ vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Dec  6 2020 16:07:31)
macOS version
Included patches: 1-2100
Compiled by Homebrew

$ brew info vim
vim: stable 8.2.2100 (bottled), HEAD
# ... more output excluded

$ uname -rsvp
Darwin 19.6.0 Darwin Kernel Version 19.6.0: Thu Oct 29 22:56:45 PDT 2020; root:xnu-6153.141.2.2~1/RELEASE_X86_64 i386

$ sw_vers -productVersion
10.15.7

Post the logs

Not sure where to find this tags.log file, and I looked for it in my current directory and in the did a find ~/.vim -name tags.logand got nothing - just let me know where to expect it and I'll post it

LukeAI commented 3 years ago

You do have to install some ctags lib. you could try brew install --HEAD universal-ctags/universal-ctags/universal-ctags https://github.com/universal-ctags/homebrew-universal-ctags

ranelpadon commented 3 years ago

That command didn't work on my end though, and need to do these:

$ brew tap universal-ctags/universal-ctags
$ brew install --HEAD universal-ctags

https://docs.ctags.io/en/latest/osx.html