vim-bundler
vim-bundler copied to clipboard
Tag in a project listed twice
A tag is listed twice in the project – firstly with the relative path and secondly with the Users/username/...
prefix.

I simulated the issue with all other plugins disabled and running only with vim-bundler
in my .vimrc
. Any ideas what I might be doing wrong?
I've had the same issue, but I think the problem is in gem-ctags
not in vim-bundler
. I noticed that it is triggered by installing the rails
gem, because it is just a dummy with dependencies and no code inside, so gem-ctags
ends up with an empty list of paths and thus runs ctags
without arguments here:
https://github.com/tpope/gem-ctags/blob/master/lib/rubygems/commands/ctags_command.rb#L27-L36
So what happens is that the current directory is indexed and the tag file is saved under the rails
gem. Assuming that the current directory when installing the gem was your project and that you have an actual tags file inside the project you will get duplicates.
If that's the case a simple if paths.any?
ought to do the trick.