2017-11-07 19:06:01 |
TJ |
bug |
|
|
added bug |
2017-11-07 19:25:37 |
TJ |
description |
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. |
Tested on my coding host and in a clean LXD ubuntu:16.04 container. Testing in a LXD 17.10 container it works as expected.
# 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)
This is because Python 3.x C/C++ extension modules (shared libraries) have a different calling convention to that of Python 2.x and must export certain functions, amongst them:
PyObject* PyInit_modulename(void)
see https://docs.python.org/3/extending/building.html
Because the vim-youcomepleteme package was simply rebuilt for Python3 the changes required to support Python3 extensions were not added.
This makes the entire vim-youcompletme package pointless in Debian and Ubuntu. |
|
2017-11-07 19:28:26 |
TJ |
summary |
[16.04] no autocomplete and multiple errors due to not using python3 as the default interpreter |
[16.04] no autocomplete and multiple errors due to not using python3 interpreter or extension calling conventions |
|
2017-11-07 19:37:48 |
Nish Aravamudan |
bug |
|
|
added subscriber Nish Aravamudan |
2017-11-07 20:08:40 |
TJ |
bug task added |
|
ycmd (Ubuntu) |
|
2017-11-08 18:29:55 |
TJ |
attachment added |
|
Fix API errors due to use of archive python-bottle rather than internal submodule https://bugs.launchpad.net/ubuntu/+source/ycmd/+bug/1730731/+attachment/5005974/+files/ycmd_0+20160327+gitc3e6904-1ubuntu1.debdiff |
|
2017-11-08 18:30:09 |
TJ |
ycmd (Ubuntu): status |
New |
In Progress |
|
2017-11-08 18:30:17 |
TJ |
vim-youcompleteme (Ubuntu): status |
New |
Invalid |
|
2017-11-08 18:36:08 |
TJ |
summary |
[16.04] no autocomplete and multiple errors due to not using python3 interpreter or extension calling conventions |
[16.04] no autocomplete and multiple errors due to expecting different python-bottle version |
|
2017-11-08 18:38:26 |
TJ |
bug watch added |
|
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850113 |
|
2017-11-08 18:38:26 |
TJ |
bug task added |
|
debian |
|
2017-11-09 04:25:46 |
Ubuntu Foundations Team Bug Bot |
tags |
|
patch |
|
2017-11-09 04:25:53 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Sponsors Team |
2017-11-09 15:52:46 |
Bug Watch Updater |
debian: status |
Unknown |
Fix Released |
|
2017-11-09 16:30:20 |
Nish Aravamudan |
ycmd (Ubuntu): assignee |
|
Nish Aravamudan (nacc) |
|
2018-03-05 06:24:57 |
Mathew Hodson |
affects |
debian |
vim-youcompleteme (Debian) |
|
2018-03-05 06:26:28 |
Mathew Hodson |
ycmd (Ubuntu): importance |
Undecided |
Medium |
|
2018-03-05 06:26:31 |
Mathew Hodson |
vim-youcompleteme (Ubuntu): importance |
Undecided |
Medium |
|
2018-03-05 06:30:47 |
Mathew Hodson |
tags |
patch |
patch xenial |
|
2018-03-05 06:31:28 |
Mathew Hodson |
vim-youcompleteme (Ubuntu): status |
Invalid |
Fix Released |
|
2018-04-15 05:28:15 |
Simon Quigley |
removed subscriber Ubuntu Sponsors Team |
|
|
|