TAB完成时未检测到Jedi Vim Python子类 [英] Jedi Vim Python subclasses are not detected on TAB-completion
本文介绍了TAB完成时未检测到Jedi Vim Python子类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问题出在Arch(1)& Debian Jessie(2),其中:
The issue is on Arch (1) & Debian Jessie (2) where:
1.
> uname -r
4.0.5-1-ARCH
> echo $PYTHONPATH
/usr/lib/python2.7/
- Debian Jessie没有设置PYTHONPATH.
我的vim是用python编译的.
My vim is compiled with python.
:python import sys; print(sys.version)
2.7.10 (default, May 26 2015, 04:16:29)
[GCC 5.1.0]
我尝试了以下Arch Linux软件包:
I tried the following Arch Linux packages:
> pacman -S python2-jedi vim-jedi
完成对类有效,但对子类无效.
completion works on classes but not on the subclasses.
import os # os is built-in library.
os. # ycm does not complete members of this class.
我删除了它们并下载了git包.
I removed them and downloaded the git package.
> cd ~/.vim/bundle/jedi-vim/jedi/test/ && ./run.py
Summary: (0 fails of 962 tests) in 18.819s
> cd ../ && ./setup build && ./setup install
同样,补全适用于类,但不适用于子类.
And again, completion works on classes but not on the subclasses.
查看全文