please allow to build using python3 #1940

Closed
doko42 opened this Issue Jan 27, 2016 · 24 comments

Comments

Projects
None yet
7 participants

doko42 commented Jan 27, 2016

Please allow the plugin to run against a vim linked for Python3.

Collaborator

vheon commented Jan 27, 2016

Basically a duplicate of #1920

Look also at Valloric/ycmd#313 (comment)

@vheon vheon closed this Jan 27, 2016

methane commented Feb 18, 2016

This issue is very important for Ubnutu 16.04 LTS.
See https://bugs.launchpad.net/ubuntu/+source/vim-youcompleteme/+bug/1538532

Collaborator

puremourning commented Feb 18, 2016

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

On 18 Feb 2016, at 09:34, INADA Naoki notifications@github.com wrote:

This issue is very important for Ubnutu 16.04 LTS.
See https://bugs.launchpad.net/ubuntu/+source/vim-youcompleteme/+bug/1538532


Reply to this email directly or view it on GitHub.

methane commented Feb 18, 2016

Wow! Thanks very much.
How can I buy beer from Japan?

Collaborator

puremourning commented Feb 18, 2016

I dunno. But if I work out how to do it from the UK I will let you know.

On 18 Feb 2016, at 09:56, INADA Naoki notifications@github.com wrote:

Wow! Thanks very much.
How can I buy beer from Japan?


Reply to this email directly or view it on GitHub.

Owner

Valloric commented Feb 18, 2016

:)

Like @puremourning said, we're on it. We're aiming to be python 3 compatible by the time Ubuntu 16.04 LTS comes out.

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?

Collaborator

puremourning commented May 1, 2017

YCM has supported both python 2 and python 3 for over a year.

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.

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 :)

One last note, the discussions are a tad confusing. There's building and running with python3 and there's supporting completion for python3 programming...

Collaborator

vheon commented May 1, 2017

and installed the "apt-get install" version

That is not a version of YCM that we support.

One last note, the discussions are a tad confusing. There's building and running with python3 and there's supporting completion for python3 programming...

We support both.

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.

Collaborator

puremourning commented May 1, 2017

What is the output of:

:echo has( 'python' )

And

:echo has( 'python3' )

In your Vim?

https://github.com/Valloric/YouCompleteMe/blob/master/plugin/youcompleteme.vim#L36

mschwartz commented May 1, 2017

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

git submodule update --init --recursive

or

git pull
(in the bundles/YouCompleteMe directory)

Collaborator

vheon commented May 1, 2017

Are you sure the message comes from YCM? because if that is not the message that you get is either:

  • another plugin complaining
  • you have a really old version of YCM

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

I'm willing to chalk this up to my error and move on.

Collaborator

micbou commented May 1, 2017

Maybe you have two installations of YCM and you are loading the wrong one. Can you check if the right path is loaded in runtimepath:

:set runtimepath

?

mschwartz commented May 1, 2017

image

All these work fine:

image

Collaborator

puremourning 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?

Collaborator

micbou commented May 1, 2017

Is git rev-parse HEAD returning 5198fd9a09960b9a1919ef2400007f9bfab33a65 in YCM folder?

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment