Public bug reported:
Tested on my coding host and in a clean LXD ubuntu:16.04 container.
# apt install vim-youcompleteme
# vam install youcompleteme
# vim test.py
As soon as I try to begin editing multiple (15+) errors are generated,
filing the window, each requiring Enter to be pressed to continue.
Makes vim unusable.
Apparently this is due to vim-nox being built with +python3 -python but,
despite the Depends: on vim-youcompleteme package being for python3, it
calls 16.04's default python interpreter which is python2.
A workaround for this is:
# echo "let g:ycm_server_python_interpreter = '/usr/bin/python2'" >>
~/.vimrc
Now vim is usable with no errors.
However, there is no autocomplete function working.
Starting with:
# vim -V9 test.py
reveals the error:
Press ENTER or type command to continueTraceback (most recent call last):
File "/usr/lib/ycmd/check_core_version.py", line 21, in <module>
import ycm_core
ImportError: dynamic module does not define module export function
(PyInit_ycm_core)
Testing in a LXD 17.10 container it works as expected.
** Affects: vim-youcompleteme (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1730731
Title:
[16.04] no autocomplete and multiple errors due to not using python3
as the default interpreter
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vim-youcompleteme/+bug/1730731/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs