pythonvimjedijedi-vim

jedi-vim inconsistent with jedi output


I am using jedi-vim, and after typing the following, I get a "Pattern not found" error:

import numpy
numpy.

However, if I run the following python script, I get a long list of completions:

import jedi
print(jedi.Script('import numpy;numpy.').completions())

Since jedi-vim can successfully complete other packages, I'm not sure what is configured incorrectly, what gives?


Solution

  • I figured out the problem. The vim I was using didn't have python3 support, so jedi was looking at python2.7 modules, hence no numpy. I reinstalled vim with python3 support, and it solved the problem.