Closed MaxG87 closed 3 years ago
Try removing .pyc
files (i.e. __pycache__
folders).
Yes, 99% this is that issue again. Or reinstall jedi-vim/Jedi.
Removing .pyc
and __pycache__
did not help. Reinstalling did.
I rm -rf ~/.vim/plugged/jedi-vim
and installed the package back using :PlugInstall
. No opening files works again.
Issue
I use jedi-vim through VimPlug. Today I ran
:PlugUpdate
, meaning effectively that I switched to revision a17b0333031bd3652ad4c6169caaed05ffb7c49d.I used the proposed
minimal.vimrc
withvim -u minimal.vimrc
. I then opened a file by:e /path/to/file.py
. I give the output ofJediDebugInfo
below.Switching to
a0207fadf9f165adac61f01abc07db0ae898cbe6
, the revision directly preceding a17b03, let the problem disappear.Jedi-vim debug information
jedi-vim version
Global Python
Using Python version 3 to access Jedi.
/home/mgoerner/.miniconda3/bin/python3
3.8.5 (default, Jul 28 2020, 12:59:40), [GCC 9.3.0]
/home/mgoerner/.miniconda3/lib/python3.8/site.py
ERROR: could not import the "jedi" Python module: ImportError: bad magic number in 'jedi.common': b'\x03\xf3\r\n' Traceback (most recent call last): File "/home/mgoerner/.vim/plugged/jedi-vim/pythonx/jedi_vim.py", line 114, inSettings
:version
:messages
:scriptnames
``` 1: ~/.vim/plugged/jedi-vim/minimal.vimrc 2: /usr/share/vim/vim81/syntax/syntax.vim 3: /usr/share/vim/vim81/syntax/synload.vim 4: /usr/share/vim/vim81/syntax/syncolor.vim 5: /usr/share/vim/vim81/filetype.vim 6: /usr/share/vim/vim81/ftplugin.vim 7: /usr/share/vim/vim81/indent.vim 8: /usr/share/vim/vim81/plugin/getscriptPlugin.vim 9: /usr/share/vim/vim81/plugin/gzip.vim 10: /usr/share/vim/vim81/plugin/logiPat.vim 11: /usr/share/vim/vim81/plugin/manpager.vim 12: /usr/share/vim/vim81/plugin/matchparen.vim 13: /usr/share/vim/vim81/plugin/netrwPlugin.vim 14: /usr/share/vim/vim81/plugin/rrhelper.vim 15: /usr/share/vim/vim81/plugin/spellfile.vim 16: /usr/share/vim/vim81/plugin/tarPlugin.vim 17: /usr/share/vim/vim81/plugin/tohtml.vim 18: /usr/share/vim/vim81/plugin/vimballPlugin.vim 19: /usr/share/vim/vim81/plugin/zipPlugin.vim 20: ~/.vim/plugged/jedi-vim/plugin/jedi.vim 21: /usr/share/vim/vim81/syntax/python.vim 22: ~/.vim/plugged/jedi-vim/after/syntax/python.vim 23: ~/.vim/plugged/jedi-vim/autoload/jedi.vim 24: /usr/share/vim/vim81/ftplugin/python.vim 25: ~/.vim/plugged/jedi-vim/ftplugin/python/jedi.vim 26: ~/.vim/plugged/jedi-vim/after/ftplugin/python/jedi.vim 27: /usr/share/vim/vim81/indent/python.vim ```