Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
please allow to build using python3 #1940
Comments
|
Basically a duplicate of #1920 Look also at Valloric/ycmd#313 (comment) |
vheon
closed this
Jan 27, 2016
methane
commented
Feb 18, 2016
|
This issue is very important for Ubnutu 16.04 LTS. |
|
We are aware and we are working on it. We are working on it. Py3 build support has landed in ycmd but not yet in YCM client. Hopefully everyone (including platform maintainers) can bear with us and appreciate the immense pain and suffering that this porting and maintaining parallel versions of the language is causing us. Unfortunately it just takes a helluva lot of hard soul-destroying time and elbow grease and will have tendrils of impact forever for project maintainers. (Snip: rant about Python 3 in general) I hope when this is done everyone who uses arch or Ubuntu will individually buy @Valloric a beer. I certainly will. :D
|
methane
commented
Feb 18, 2016
|
Wow! Thanks very much. |
|
I dunno. But if I work out how to do it from the UK I will let you know.
|
|
:) Like @puremourning said, we're on it. We're aiming to be python 3 compatible by the time Ubuntu 16.04 LTS comes out. |
mschwartz
commented
May 1, 2017
|
Ubuntu 17 no longer has any vim package with python 2 support. Youcompleteme unavailable message every time I start vim. It is over a year later and this is still not fixed? |
|
YCM has supported both python 2 and python 3 for over a year. |
mschwartz
commented
May 1, 2017
|
I have YCM added as a git submodule in my .vim/bundle directory When I build it, the compile/install.py works. When I run vim, it complains about vim not supporting python2. All vim packages supporting python2 are removed in Ubuntu 17.x. |
mschwartz
commented
May 1, 2017
|
I removed it from my bundles directory and installed the "apt-get install" version and it works. I don't want to do that, ultimately, because I have my dotfiles on github and use them on macOS and Ubuntu and raspbian, etc., systems. Some of those don't have apt-get :) |
mschwartz
commented
May 1, 2017
|
One last note, the discussions are a tad confusing. There's building and running with python3 and there's supporting completion for python3 programming... |
That is not a version of YCM that we support.
We support both. |
mschwartz
commented
May 1, 2017
|
I upgraded my Ubuntu from 16.10 to 17.x and YCM compiles but vim (no matter what version I install) complains: "youcompleteme requires vim with python2 support." I removed YCM as a submodule, re-added it, rebuilt it, did git pull, etc. Nothing fixed it. Maybe I'm an outlier, or maybe everyone who updates will suffer this issue. |
|
What is the output of:
And
In your Vim? https://github.com/Valloric/YouCompleteMe/blob/master/plugin/youcompleteme.vim#L36 |
mschwartz
commented
May 1, 2017
•
|
python: 0
pytnon3: 1
|
mschwartz
commented
May 1, 2017
•
|
The message is not one of those two it says "requires vim with python2 support" Suggests git pull isn't pulling the latest
or
|
|
Are you sure the message comes from YCM? because if that is not the message that you get is either:
And just to be clear, having YCM run in vim with Python3 while the ycmd server is compiled with Python2 is a plausible scenario. |
mschwartz
commented
May 1, 2017
•
|
Something is printing "YCM requires vim compiled with python2 support" - before vim will fully load. Would that be YCM loading in vim? I follow your instructions to the letter, FWIW |
mschwartz
commented
May 1, 2017
|
I'm willing to chalk this up to my error and move on. |
|
Maybe you have two installations of YCM and you are loading the wrong one. Can you check if the right path is loaded in :set runtimepath? |
mschwartz
commented
May 1, 2017
•
|
Please can you confirm using a minimal vimrc which only loads YCM and also confirm that your YCM git checkout is current master? |
|
Is |
mschwartz
commented
May 1, 2017
|
Like I said, I'm willing to chalk this up as my error. I did a git submodule deinit on ycm and installed the deb version and I'm happy for now. Thanks for the help and thanks for the awesome plugin. |


doko42 commentedJan 27, 2016
Please allow the plugin to run against a vim linked for Python3.