-
Notifications
You must be signed in to change notification settings - Fork 175
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
How to get gutentags_file_list_command to work #208
Comments
Somewhat related: universal-ctags/ctags#218 |
Hi! |
@ludovicchabant Thanks for your help! I'm using everything else with default settings. So I am leaving So to be clear: everything works by default. Once I add the following to my let g:gutentags_file_list_command = 'ag -l'
let g:gutentags_trace = 1 Then I delete the project I did also try running
There is a |
Mmmh that's weird... I just pushed some fixes to the |
@ludovicchabant I updated to latest
If I run
And the same "There is a tags file generated in the project root when I ran it manually like this, but the tags has files in it that are not in |
I'll close this for now since it seems I am the only one who has ran into this. |
I have the identical problem. Running update_tags.sh works like a charm: $ ~/.vim/plugged/vim-gutentags/plat/unix/update_tags.sh -e ctags -t tags -p . -L 'ag -l' -l tags.log However, in Vim it doesn't work. Below is the :messages output: gutentags: Scanning buffer '/home/dev/repos/project/main.c' for gutentags setup... gutentags: Generating missing tags file: /home/dev/repos/project/tags ... and then nothing. |
First, thanks so much for a wonderful plugin! It is very useful and I really appreciate your work on it!
I'm trying to figure out a better system for ignoring directories/files from ctags. Up to this point, I've been using Universal Ctags with a
.ctags.d/config.ctags
config that looks like:However, many of the projects I work on have specific compiled output that I'd like to ignore as well so this file keeps getting longer. I would like to instead rely on my
ag
(silver searcher) file list, since these are the source files I actually care about. After reading through a few other issues like #136, I've tried settinglet g:gutentags_file_list_command = 'ag -l'
, but this leads to Gutentags hanging with an emptytags.files
.I've tried this with multiple repos with the same result, so I don't think it is a problem specific to my project. I enabled
let g:gutentags_trace = 1
and get the following:Default setup
With a default setup, without Gutentags specific config, I get a
tags
output and everything works.After adding
let g:gutentags_file_list_command = 'ag -l'
:It hangs indefinitely on
Locking tags file...
, never outputting actags
file.The output of
ag -l
is a small list of source files, as I would expect. So it seems there may be a problem with the Gutentags output ofvs
once
let g:gutentags_file_list_command = '{command}'
is added?The text was updated successfully, but these errors were encountered: