Reputation: 23
I'm using Ubuntu 16.04 (Xenial Xerus), and I try to install the youcompleteme plugin of Vim, but it shows this log error. How can I fix it?
"YouCompleteMe unavailable: invalid syntax (vimsupport.py, line 184) "
Upvotes: 0
Views: 679
Reputation: 8908
Line 184 of ycm/Vim support.py
in YouCompleteMe uses an f-string, which is a feature introduced only on Python 3.6.
So you need Python 3.6 or newer for YouCompleteMe to work.
Ubuntu 16.04 is over 4.5 years old and there are two LTS versions of the OS available at this point. You should strongly consider upgrading to a more recent version of Ubuntu, not just for a newer Python version, but also Vim and everything else.
Upvotes: 2