maralla/completor.vim

No completion for Python

mathieulongtin opened this issue · 2 comments

Based on issue #76, I ran this test, and the output is empty:

[mathieu_longtin@unv-mlongtin02 completor.vim]$ python3 pythonx/completers/python/python_jedi.py -v
{"filename": "/home/vagrant/test.py", "line": 1, "col": 3, "content": "import os\nos."}
[]

There is no error output, so I'm kind of baffled. Python completion used to work, so I'm not sure why it stopped working.

Versions:

$ python
Python 3.7.2 (default, Feb 16 2019, 17:10:30)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-23)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import jedi
>>> jedi.__version__
'0.15.1'

Vim version: 8.1.1661 with python3, v3.7.0.

Thanks!

One thing, you need to specify action for that test to run:

{"filename": "/home/vagrant/test.py", "line": 1, "col": 3, "content": "import os\nos.", "action":"complete"}

Which works, but no completion in vim

Problem was a badly compiled vim.