YouCompleteMe unavailable: module 'collections' has no attribute 'Mapping'

880 Views Asked by At

Hi I have been trying to setup YouCompleteMe in vim but it don't work. I am using vim-plug. I tried around 3 different YouCompleteMe repositories but i always got the same error. I am using a Mac os and everything about vim is up to date. I tried adding scripts in .vimrc, running install.py but non of em worked. I really need Help. Here is my .vimrc script and the error enter image description here

1

There are 1 best solutions below

0
Sherman Chen On

The easiest way to fix the problem is to install youcompleteme in the following way.

  1. In a Terminal, run the command:

$ sudo apt install vim-youcompleteme

  1. Next, run the command:

$ vim-addon-manager install youcompleteme

I got my exactly the same problem fixed a minute ago by running the above two commands, thanks to dominoc925's youcompleteme installation instructions.