Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag in a project listed twice #44

Open
jakubgarfield opened this issue Dec 15, 2016 · 2 comments
Open

Tag in a project listed twice #44

jakubgarfield opened this issue Dec 15, 2016 · 2 comments

Comments

@jakubgarfield
Copy link

A tag is listed twice in the project – firstly with the relative path and secondly with the Users/username/... prefix.

screen shot 2016-12-16 at 9 56 22 am

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?

@rdokov
Copy link

rdokov commented Jan 29, 2017

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.

@tpope
Copy link
Owner

tpope commented Jan 29, 2017

If that's the case a simple if paths.any? ought to do the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants