-
Notifications
You must be signed in to change notification settings - Fork 171
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
Indexing updated source truncates tag file #81
Comments
Found that grep was failing as it detected the tags file as binary. I still don't know why this is happening but adding the |
Ah interesting. My guess is that maybe |
Ok I just merged a PR which adds the |
Updating tag file still truncates it for my even with |
No idea off the top of my head... :( If you enable tracing ( |
Sorry, there was a problem with my ctags. Your plugin works smooth. On Aug 10, 2016 6:54 AM, "Ludovic Chabant" notifications@github.com wrote:
|
I have been attempting to get gutentags to work on a PHP codebase, but have problems.
Entering a project correctly generates a ~50MB tags file, jumping through functions and autocompleting using the tags works great. But when I call
:GutentagsUpdate
or save a file, the tags file becomes much smaller (around ~6Mb) and Vim complains withE431: Format error in tags file
when I attempt to jump to a function definition again.After attempting to debug the problem it appears that when
plat/unix/update_tags.sh
is called, it attempts to generate a temp tags file, but the$UPDATED_SOURCE
value becomes.../vim-gutentags/plat/unix/update_tags.sh
in the grep command (see https://github.com/ludovicchabant/vim-gutentags/blob/master/plat/unix/update_tags.sh#L77).This means the temp file is blank and the
ctags --append
only populates it with the new content before replacing the old tags file.Hope this makes sense. Any pointers on how to debug this further? Happy to help out.
Cheers.
The text was updated successfully, but these errors were encountered: