Describe the bug
In a very large repo like https://github.com/torvalds/linux, when I open a file, gtags will be generating automatically but it takes a while. In the middle of the gtags generating process, I run :q to quit Neovim. Then I open this file again, it shows gutentags: gtags-cscope job failed, returned: 1 at the bottom. When I try to run :GutentagsUpdate! to re-generate the gtags, this error shows again.
To make it work, I need go to the directory storing the tags and delete the folder for gtags of this repo. Then I open a file of the repo, gtags will be generated again without that error.
This means that, in a very large repo, I cannot quit and have to stay there until the gtags generating process finishes.
Steps to reproduce
See above.
Share your setup
- What OS and version of Vim are you using?
macOS 12.2
nvim 0.6
- What version of
ctags, gtags, or whatever do you have installed?
Universal Ctags 5.9.0,
gtags (Global) 6.6.8
- Are you using
g:gutentags_cache_dir?
Yes. I set it to ~/.cache/tags/. However, if I don't set it, this issue still exists.
Post the logs
gutentags: [job stdout]: ['Locking tags file...', 'Running ctags on whole project', 'ctags -f "/Users/rockyzhang/.cache/tags/Users-rockyzhang-Downloads-linux-.tags.temp" "--options=/Users/rockyzha
ng/.config/nvim/pack/minpac/start/vim-gutentags/res/ctags_recursive.options" --fields=+niazS --extras=+q --exclude=@/Users/rockyzhang/.cache/tags/_wildignore.options "/Users/rockyzhang/Downloads/
linux"', '']
gutentags: [job stdout]: ['']
gutentags: [job stderr]: ['gtags: /Users/rockyzhang/.cache/tags/Users-rockyzhang-Downloads-linux/GTAGS seems corrupted.', '']
gutentags: [job stderr]: ['']
gutentags: Finished gtags_cscope job.
gutentags: gtags-cscope job failed, returned: 1
Press ENTER or type command to continue
Additional context
Nothing.
Thank you very much.
Describe the bug
In a very large repo like https://github.com/torvalds/linux, when I open a file, gtags will be generating automatically but it takes a while. In the middle of the gtags generating process, I run
:qto quit Neovim. Then I open this file again, it showsgutentags: gtags-cscope job failed, returned: 1at the bottom. When I try to run:GutentagsUpdate!to re-generate the gtags, this error shows again.To make it work, I need go to the directory storing the tags and delete the folder for gtags of this repo. Then I open a file of the repo, gtags will be generated again without that error.
This means that, in a very large repo, I cannot quit and have to stay there until the gtags generating process finishes.
Steps to reproduce
See above.
Share your setup
macOS 12.2
nvim 0.6
ctags,gtags, or whatever do you have installed?Universal Ctags 5.9.0,
gtags (Global) 6.6.8
g:gutentags_cache_dir?Yes. I set it to
~/.cache/tags/. However, if I don't set it, this issue still exists.Post the logs
Additional context
Nothing.
Thank you very much.