-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
不能生成 Gtags 数据文件 #359
Comments
如果不成功,应该会有错误信息报出来,:message 看看有什么错误信息。 |
:leaderf gtags --update 没有特殊提示 leaderf用着非常顺手!谢谢 |
想起来了,如果路径有非ASCII字符,不要使用g:Lf_GtagsfilesCmd |
跟 #312 差不多 |
测试路径无非ASCII字符 |
ctags在windows上有bug,识别不出 我觉得如果不生成gtags数据库,应该会有错误信息打印出来,没有错误信息很奇怪。 可以在这个函数里加一些打印,看看当 LeaderF/autoload/leaderf/python/leaderf/gtagsExpl.py Lines 426 to 451 in 2a4bffc
|
LeaderF是VIM上极好用的插件,后期用户肯定会慢慢更多,从功能完整性考虑,应该加上功能调试,给个选项开关。 |
调试功能基本有了,常出问题的点基本都有exception或log记录,只是这个问题太corner了。 原因找到了,对于 import os
print(os.getcwd()) 打印出来的竟然是
话说你如果使用的是Python3,应该能看到报错信息,什么错误信息都没有,难道使用的是Python2? |
Python3.7.4 |
gtags 是正常路径也没有文件生成,tags、func 是test²路径下有提示出错 |
正常路径也没有生成就奇怪了。你加些打印看看。 |
LeaderF/autoload/leaderf/python/leaderf/gtagsExpl.py Lines 426 to 436 in a72c3bb
435行打印出来了,说明 |
:echo g:Lf_Debug_Gtags |
经作者排查,是 set shellslash 设置问题,取消这个设置项就正常了,感谢! |
修好了。 |
能正常使用了。 |
vim or neovim?
[x ] vim
Output of
vim --version
ornvim --version
:Output of
:echo has("python")
:Output of
:echo has("python3")
: 1Output of
:echo &pythondll
(only vim, not neovim):Output of
:echo &pythonthreedll
(only vim, not neovim): xOutput of
:py print(sys.version)
:Output of
:py3 print(sys.version)
: 1Output of
:echo g:Lf_Debug_Cmd
:Output of
:echo g:Lf_FilesFromCache
:Operating system:
Configurations related to LeaderF in vimrc:
Describe your question, feature request, or bug.
不论是自动还是手动执行::Leaderf gtags --update,指定目录下都没有gtags数据文件生成。其它功能一切正常。leaderf tag ,leaderf function 能正常执行。问题与issues354#基本相同
let g:Lf_GtagsAutoGenerate = 1
let g:Lf_GtagsSource = 2
let g:Lf_GtagsfilesCmd = {
\ '.git': 'git ls-files --recurse-submodules',
\ '.hg': 'hg files',
\ 'default': 'rg --no-messages --files'
}
let g:Lf_GtagsAcceptDotfiles = 0
let g:Lf_GtagsSkipUnreadable = 0
"let g:Lf_GtagsSkipSymlink = ''
let g:Lf_Gtagslabel='native-pygments'
let g:Lf_Gtagsconf=$vim.'/gtags/share/gtags/gtags.conf'
另:gutentags.vim 功能执行正常
顺便报一个问题:工作目录路径如果包含
上标
字符,leaderf function 功能执行失败The text was updated successfully, but these errors were encountered: