Closed shahrilnet closed 8 years ago
Alright, I am an idiot.
After setting up this option in my .vimrc : let g:ycm_python_binary_path = '/usr/bin/python3'
The autocomplete works!
This is because the module was installed using pip3, which will only work for Python 3 interpreter.
Thanks @shahril96 I have nearly the same problem ~
Note that setting g:ycm_python_binary_path
is the old way to do it and has been deprecated in favour of having per-project settings in a local .ycm_extra_conf.py
.
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
inside the brackets) before filing your issue:vim --version
.:YcmDebugInfo
.:YcmToggleLogs stderr
.Thank you for adhering to this process! It ensures your issue is resolved quickly and that neither your nor our time is needlessly wasted.
Issue Details
[If filing a bug report, please include a list of steps that describe how to reproduce the bug you are experiencing. Also include test code if relevant.]
vim --version
OS that I use right now
Recently I have a personal project, and I planned to use some GUI library for my program's interface.
However, when I included PySide through import into my project, and trying to use YCM, it does not show any autocomplete for me. For internal modules such as sys and tkinter, autocomplete works without any problem.
Before, I suspected that maybe Jedi is the source of this problem. But when I use plugin that utilize the same Jedi in another editor (autocomplete-python in Atom), it has no problem showing autocomplete for PySide.
Here is some screenshots :
Vim + YCM (Jedi)
Atom + autocomplete-python