ycm-core / YouCompleteMe

A code-completion engine for Vim
http://ycm-core.github.io/YouCompleteMe/
GNU General Public License v3.0
25.44k stars 2.81k forks source link

Python 3 Support! #1729

Closed ghost closed 8 years ago

ghost commented 8 years ago

Does YCM support python 3 completions out of the box? Do I have to install jedi(python3) too? It has come to my notice that ycm needs vim compiled with python2 support, and I'm currently using the one that supports python3. Please advise.

vheon commented 8 years ago

I can just say that it is planned for the near future. The first step would be not to use jedi directly in ycmd since the server is written to be run under python2 only. For updates I recommend following https://github.com/Valloric/ycmd/pull/246. In any case the client and the ycmd server needs to run under python2 so the fact that the vim you're using is compiled with only python3 support is not helping. Anyway closing this since the "python 3 feature" is already planned and tracked.

ghost commented 8 years ago

Ok, if I use vim compiled with python2, will it be able to offer completions for python3?

vheon commented 8 years ago

@andysaini not right now. The feature is not yet implemented; but once is there even if you have vim compiled against the python2 interpreter you will be able to complete python3 code.