-
Notifications
You must be signed in to change notification settings - Fork 24
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
preview和tag索引无法恢复问题 #11
Comments
你 ctags 生成的格式 vim 不识别呗。ctags --version 是什么? |
ctags生成的格式vim是可以识别的,函数名、变量等ctags索引过的变量都可以正常跳转。如果不小心preview了其他的非关键字,就会导致上面的错误,并且后面即使索引正常的函数名等关键字都无法恢复跳转了(除非vim关闭重启才能恢复正常索引跳转)。 |
你报错那一行代码,就是 vim 本身内置函数 你调用 universal-ctags 的时候有没有增加:
这个参数?没加的话 vim 识别会出错。 |
嗯,增加了的,配置应该是和你推荐写的一样,如下所示: 245 if executable('gtags-cscope') && executable('gtags') 你可以试着让光标在某个非索引库的关键词上(例如在某一个符号上),然后PreviewTag,看会报上面的错吗?而且后面让光标在某个正常索引库的关键词上时,它还会能被正确索引吗? |
你好。vim-preview是个比较优秀的插件,但是我目前在使用它时遇到一个很棘手的问题,帮忙看下。
当我preview一些不在tag索引的库的关键词时,preview插件会发生崩溃,再无法使用,并且ctags也无法发生跳转。除非关闭vim,重新打开才能恢复正常。错误如下:
Error detected while processing function 27_PreviewTag[2]..preview#preview_tag[23]..preview#tagfind[2]..preview#taglist:
line 8:
E431: Format error in tags file "/home/.cache/tags/test-prj.tags"
Before byte 386
Error detected while processing function 27_PreviewTag[2]..preview#preview_tag:
line 23:
E171: Missing :endif
Press ENTER or type command to continue
The text was updated successfully, but these errors were encountered: