Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouCompleteMe unavailable: requires Vim 8.1.2269+ #3764

Closed
binbjz opened this issue Sep 20, 2020 · 14 comments
Closed

YouCompleteMe unavailable: requires Vim 8.1.2269+ #3764

binbjz opened this issue Sep 20, 2020 · 14 comments

Comments

@binbjz
Copy link

binbjz commented Sep 20, 2020

vim version

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Nov 11 2019 19:08:24)
Included patches: 1-1763
Modified by bugzilla@redhat.com
Compiled by bugzilla@redhat.com

CentOS Linux release 8.2.2004 (Core)

My system is the latest version, but YouCompleteMe has alerted me that Vim needs 8.1.2269+

Please help me to fix this issue

python version 3.8.5

@puremourning
Copy link
Member

https://github.com/ycm-core/YouCompleteMe#note-minimum-requirements-have-changed

The latest updates have increased the minimum supported vim version in line with our policy of supporting the version of vim shipped in the latest Ubuntu LTS. I realise that means a number of users will need to upgrade their vim.

Please help me to fix this issue

Upgrade your vim, see the README for supported version.

Your only other option is to check out an older commit, such as d98f896 which is immediately prior to the version bump.

@ycm-core ycm-core locked as resolved and limited conversation to collaborators Sep 20, 2020
@puremourning puremourning pinned this issue Sep 20, 2020
@ycm-core ycm-core unlocked this conversation Sep 20, 2020
@tufei
Copy link

tufei commented Sep 21, 2020

Had the same issue this morning. Unfortunately I have no control over the corporate IT policy.

So no upgrade path for now, :(

@Azulinho
Copy link

This makes me sad, as ' 2:8.1.0875-5' is the latest available version on debian stable.

@wesgould
Copy link

well this is disappointing.

@ycm-core ycm-core locked as resolved and limited conversation to collaborators Sep 26, 2020
@ycm-core ycm-core unlocked this conversation Sep 26, 2020
@tomofumikitano
Copy link

I encountered same issue on Raspbian 10 (buster), and the latest vim version on the system is 8.1.0875. As @puremourning suggested, downloading older commit did work. 😁

Here is my .vimrc configuration for vim-plug.

Plug 'Valloric/YouCompleteMe', { 'commit':'d98f896' }

You will need to uninstall YouCompleteMe first, then reinstall YCM with this commit version, and as always, run ./install.py under ~/.vim/plugged/YouCompleteMe/ directory.

@nguyenvulong
Copy link

nguyenvulong commented Nov 6, 2020

Why this hardship, even Ubuntu 18.04 LTS won' have this new version of Vim by default.

image

@puremourning
Copy link
Member

The version of vim we require is the Ubuntu 18.04 version. That’s the version we run in CI

@Decodetalkers

This comment has been minimized.

@stan-guer
Copy link

To save some people some time, here's the wiki on how to compile vim so that YouCompleteMe is happy.
https://github.com/ycm-core/YouCompleteMe/wiki/Building-Vim-from-source

@gearoid-murphy
Copy link

Another solution is to go to the YouCompleteMe directory and sync to the last commit that works for your version of vim:

cd ~/.vim/bundle/YouCompleteMe
git checkout d98f896

@aquatix
Copy link

aquatix commented Jan 8, 2021

I put this in my .vimrc to enable compatibility with both older and new-enough vim:

    if has('patch-8.1.2269')                                                                                                                                                                                
    ┊   " Latest YCM needs at least this version of vim                                                                                                                                                     
    ┊   Plug 'ycm-core/YouCompleteMe'                                                                                                                                                                       
    else                                                                                                                                                                                                    
    ┊   " Version compatible with the vim in Debian 10 buster                                                                                                                                               
    ┊   Plug 'ycm-core/YouCompleteMe', { 'commit':'d98f896' }                                                                                                                                               
    endif

@ClashTheBunny
Copy link

When my platform lags behind upstream, I often use brew (https://brew.sh/) or nix.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

will install it to my local user's directory and brew install vim will get me a very recent version of vim on my platform.

@WLucky
Copy link

WLucky commented Feb 11, 2021

@ycm-core ycm-core locked as resolved and limited conversation to collaborators Feb 11, 2021
@bstaletic
Copy link
Collaborator

Final update: there's now a legacy-vim branch you can switch to.

@puremourning puremourning unpinned this issue Dec 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests