vim-gutentags
vim-gutentags copied to clipboard
gtags-cscope job failed when opening extremely large project
I'm using gutentags with global only and it works very well for a long time.
However recently i'm trying to search the Linux Kernel source and get the error of gutentags: gutentags: gtags-cscope job failed, returned: 1 on startup.I tried another large project,the Unreal Engine and it fails again.
I manually run gtags in the root folder and it works,so it seems like a problem here. My related setting as follows:
"gutentags
let g:gutentags_project_root = ['.root', '.svn', '.git', '.hg', '.project']
let g:gutentags_ctags_tagfile = '.tags'
let g:gutentags_modules = []
let g:gutentags_modules += ['gtags_cscope']
let s:vim_tags = expand('~/.cache/tags')
let g:gutentags_cache_dir = s:vim_tags
let g:gutentags_ctags_extra_args = ['--fields=+niazS', '--extra=+q']
let g:gutentags_ctags_extra_args += ['--c++-kinds=+px']
let g:gutentags_ctags_extra_args += ['--c-kinds=+px']
if !isdirectory(s:vim_tags)
silent! call mkdir(s:vim_tags, 'p')
endif
set cscopetag
set cscopeprg='gtags-cscope'
Oops,some info missing. I'm using latest gutentags with Vim8.1.177,huge build with gui. Environment is Deepin Linux 15.6 with i3wm.
I tried just now to run vim --clean and manually add the GTAGS and it works perfect.So it may not be possible to be a problem of vim or gnu global itself
Hi! Try pulling the latest Gutentags code, and :let g:gutentags_trace = 1 to get some debug logging. For instance, it should show you the gtags command-line that it used to run, so you can compare how Gutentags runs gtags with how you ran it yourself in the project root.