Closed ktlichkid closed 6 years ago
Please try again with latest master and post the new :verbose JediDebugInfo
.
I'm pretty sure that you're probably not having the right Python version activated.
I've found that I can get jedi-vim to work with my python 2.7 conda environment.
Here's what I had to do:
(1) make sure i had an up-to-date vim that was compiled with python 2.7. I used brew with the following arguments:
brew install vim --with-python@2
(2) Make sure "vi" -> "vim". (I use "vi" in the command line. If you use "vim", you should be good. I did this by adding this line to my .bash_profile.
alias vi=vim
for the longest time, vi kept crashing on me until i checked :version in vi and realized it wasn't the same version that had been brew installed.
(3) The final piece is to add the following line to my .vimrc file
let g:jedi#force_py_version=2.7
This line forces jedi to use python version 2.7. Without this line, jedi tries to use version 3.x
I hope this helps someone. I spent all day troubleshooting but fortunately, I learned a lot in the process.
@djchou Thanks for your comment.
No answer of @ktlichkid here. I'm closing.
Issue
Hi Sir, I am new to vim and trying to use your package. But it cannot auto complete numpy functions. I installed jedi-vim by Pathogeon.
Steps to reproduce
For example, when I try
import numpy as np
np.
It just shows "Pattern not found" and no pop-up appears.
Output of “:verbose JediDebugInfo”
:verbose JediDebugInfo
Jedi-vim debug information
Using Python version: 3
3.5.2 (default, Nov 23 2017, 16:37:01), [GCC 5.4.0 20160609]
/usr/lib/python3.5/site.py
Jedi path:/root/.vim/bundle/jedivim/pythonx/jedi/jedi/__init__.py
/usr/lib/python35.zip
/usr/lib/python3.5
/usr/lib/python3.5/plat-x86_64-linux-gnu
/usr/lib/python3.5/lib-dynload
/usr/local/lib/python3.5/dist-packages
/usr/lib/python3/dist-packages
_vim_path_
Settings
:version
:messages
:scriptnames
``` 1: /usr/share/vim/vimrc 2: /usr/share/vim/vim74/debian.vim 3: /usr/share/vim/vim74/syntax/syntax.vim 4: /usr/share/vim/vim74/syntax/synload.vim 5: /usr/share/vim/vim74/syntax/syncolor.vim 6: /usr/share/vim/vim74/filetype.vim 7: ~/.vimrc 8: ~/.vim/autoload/pathogen.vim 9: /usr/share/vim/vim74/ftoff.vim 10: /usr/share/vim/vim74/syntax/nosyntax.vim 11: /usr/share/vim/vim74/ftplugin.vim 12: /usr/share/vim/vim74/indent.vim 13: ~/.vim/bundle/jedivim/plugin/jedi.vim 14: /usr/share/vim/vim74/plugin/getscriptPlugin.vim 15: /usr/share/vim/vim74/plugin/gzip.vim 16: /usr/share/vim/vim74/plugin/logiPat.vim 17: /usr/share/vim/vim74/plugin/matchparen.vim 18: /usr/share/vim/vim74/plugin/netrwPlugin.vim 19: /usr/share/vim/vim74/plugin/rrhelper.vim 20: /usr/share/vim/vim74/plugin/spellfile.vim 21: /usr/share/vim/vim74/plugin/tarPlugin.vim 22: /usr/share/vim/vim74/plugin/tohtml.vim 23: /usr/share/vim/vim74/plugin/vimballPlugin.vim 24: /usr/share/vim/vim74/plugin/zipPlugin.vim 25: /usr/share/vim/vim74/syntax/python.vim 26: ~/.vim/bundle/jedivim/after/syntax/python.vim 27: ~/.vim/bundle/jedivim/autoload/jedi.vim 28: ~/.vim/bundle/jedivim/ftplugin/python/jedi.vim 29: /usr/share/vim/vim74/ftplugin/python.vim 30: ~/.vim/bundle/jedivim/after/ftplugin/python/jedi.vim 31: /usr/share/vim/vim74/indent/python.vim ```