在Arch Linux中,未在TAB完成时检测到Vim YouCompleteMe Python子类 [英] Vim YouCompleteMe Python subclasses are not detected on TAB-completion in Arch Linux
问题描述
我可以TAB完成当前打开的文件变量,路径&全局变量,但在TAB完成时未检测到我的python子类.例如,
I can TAB-complete current open file variables, paths & globals, but my python subclasses are not detected on TAB completion. For instance,
import os # os is built-in library.
os. # ycm does not complete members of this class.
我正在寻找解决方案的时间已经是48小时.我的/usr/bin/python->/usr/bin/python2.7,所有测试均通过100%,并且构建成功.
It has been 48h that I'm searching the solution. My /usr/bin/python -> /usr/bin/python2.7, all the tests pass 100% and the build was successful.
> uname -r
4.0.5-1-ARCH
我尝试从存储库安装特定于Arch Linux的软件包,但它们似乎不起作用.
I tried installing packages specific to Arch Linux from repositories and they don't seem to work.
在这一点上,我认为我最好的机会是找到在Vundle的原始包YouCompleteMe中设置此目的的python路径或变量的位置.然后,我应该能够验证它是正确的.我愿意就此问题提供所有可能的解决方案或见解.
At this point, I think my best chance would be to find the place where the python path or a variable with this purpose is set in the original package for Vundle, YouCompleteMe. Then, I should be able to verify that it is correct. I am open to all possible solutions or insights on this issue.
> echo $PYTHONPATH
/usr/lib/python2.7/
谢谢您的时间!
推荐答案
YouCompleteMe依靠Jedi-Vim来完成python.
YouCompleteMe relies on Jedi-Vim for python completion.
我刚刚发现这是由于我为Jedi Vim描述的不理解错误所致.在此处.但是,对于YouCompleteMe插件,只有很少的方法显示在以下位置:
I just found that it was due to an incomprehension error that I described for Jedi Vim here. However, with YouCompleteMe plug-in only few methods shows up on:
from os import getc
然后我按 ctrl +空格,并显示了可用模块的完整列表.
Then I pressed ctrl + space and a complete list of available modules was displayed.
这篇关于在Arch Linux中,未在TAB完成时检测到Vim YouCompleteMe Python子类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!