vim-gutentags
vim-gutentags copied to clipboard
E472:Error detected while processing function
Describe the bug Describe what the bug is about, and what you expected. Don't forget to format things nicely with Markdown. If applicable, post screenshots.
Steps to reproduce
- open file
- gutentags start to work for building tags
- ctrl + ] jump to definetion
Share your setup
-
What OS and version of Vim are you using? vim8.1
-
What version of
ctags
,gtags
, or whatever do you have installed? universal-ctags/ctags -
Are you using
g:gutentags_cache_dir
? yes Post the logs -
Run
:let g:gutentags_trace = 1
. -
Reproduce the bug.
-
Run
:messages
and show the messages that Gutentags posted. -
Look for the
tags.log
file that Gutentags' script left behind, and post its contents. E--program-cpp-test-.tags.log E---program-cpp-test-.tags.log
Additional context
Add any other context about the problem here.
By the way, the file's path show in the window title is strange.
before you press Ctrl-]
the the file path is
C:\xxx\xxxx\xxxx.c
first time you press Ctrl-]
the file path is
C:\\bbb\\dddd.c
second time you press Ctrl-]
the file path is
C:\\\\eee\\ffff.c
the third time the file path is
C:\\\\\\eee\\ffff.c
if you press Ctrl-o the pathseps decrease.
If you switch between buffer after pressing Ctrl-], Vim may hang for a few seconds.
I think I've seen before some weird problem where ctags generates tag files with double backslashes in the source paths, which then causes this kind of issue. I can't remember if it was a buggy ctags, or a buggy file list command though... I remember I fixed it but forgot to take notes.