Open cesarosum opened 2 years ago
I have no idea what's wrong here.
Since jedi_vim_debug
is not found, I feel like there's something wrong with your VIM installation. It's definitely a new issue that I haven't seen before.
OK I will try reinstalling VIM as a first step and report back if the issue persists.
I tried reinstalling VIM but the error persists.
I have also tried installation using Vundle but again no luck.
It's strange, because you seem to be the only person that has this issue.
Yeah it's a doozy :-)
For what it's worth, I created a .pth
file in Lib\site-packages
containing the path to jedi-vim\pythonx
under the assumption that the problem was that python
simply didn't know where to look. Got the following errors now -
.vimrc" [unix] 45L, 786B
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<path-to>\.vim\bundle\jedi-vim\pythonx\jedi_vim.py", line 116, in <module>
import jedi
File "<path-to>\.vim\bundle\jedi-vim\pythonx\jedi\jedi\__init__.py", line 32, in <module>
from jedi.api import Script, Interpreter, set_debug_function, preload_module
File "<path-to>\.vim\bundle\jedi-vim\pythonx\jedi\jedi\api\__init__.py", line 13, in <module>
import parso
File "<path-to>\.vim\bundle\jedi-vim\pythonx\parso\parso\__init__.py", line 42, in <module>
from parso.grammar import Grammar, load_grammar
File "<path-to>\.vim\bundle\jedi-vim\pythonx\parso\parso\grammar.py", line 13, in <module>
from parso.cache import parser_cache, load_module, try_to_save_module
File "<path-to>\.vim\bundle\jedi-vim\pythonx\parso\parso\cache.py", line 76, in <module>
_default_cache_path = _get_default_cache_path()
File "<path-to>\.vim\bundle\jedi-vim\pythonx\parso\parso\cache.py", line 73, in _get_default_cache_path
return dir_.expanduser()
File "<path-to>\python3.9\latest\lib\pathlib.py", line 1572, in expanduser
homedir = self._flavour.gethomedir(self._parts[0][1:])
File "<path-to>\python3.9\latest\lib\pathlib.py", line 276, in gethomedir
raise RuntimeError("Can't determine home directory")
RuntimeError: Can't determine home directory
"Codebase/python-test/my-first-script.py" [unix] 1L, 9B
jedi-vim error: jedi#setup_python_imports: Traceback (most recent call last):
File "<string>", line 10, in <module>
File "<path-to>\.vim\bundle\jedi-vim\pythonx\jedi_vim.py", line 116, in <module>
import jedi
File "<path-to>\.vim\bundle\jedi-vim\pythonx\jedi\jedi\__init__.py", line 32, in <module>
from jedi.api import Script, Interpreter, set_debug_function, preload_module
File "<path-to>\.vim\bundle\jedi-vim\pythonx\jedi\jedi\api\__init__.py", line 13, in <module>
import parso
File "<path-to>\.vim\bundle\jedi-vim\pythonx\parso\parso\__init__.py", line 42, in <module>
from parso.grammar import Grammar, load_grammar
File "<path-to>\.vim\bundle\jedi-vim\pythonx\parso\parso\grammar.py", line 13, in <module>
from parso.cache import parser_cache, load_module, try_to_save_module
File "<path-to>\.vim\bundle\jedi-vim\pythonx\parso\parso\cache.py", line 76, in <module>
_default_cache_path = _get_default_cache_path()
File "<path-to>\.vim\bundle\jedi-vim\pythonx\parso\parso\cache.py", line 73, in _get_default_cache_path
return dir_.expanduser()
File "<path-to>\python3.9\latest\lib\pathlib.py", line 1572, in expanduser
homedir = self._flavour.gethomedir(self._parts[0][1:])
File "<path-to>\python3.9\latest\lib\pathlib.py", line 276, in gethomedir
raise RuntimeError("Can't determine home directory")
RuntimeError: Can't determine home directory
Error detected while processing BufRead Autocommands for "*.py"..FileType Autocommands for "*"..function <SNR>4_LoadFTPlugin[17]..script <path-to>/.vim/bundle/jedi-vim/ftplugin/python/jedi.vim[1]..<path-to>/.vim/bundle/jedi-vim/autoload/jedi.vim[260]..function jedi#init_python[13]..BufRead Autocommands for "*.py"..FileType Autocommands for "*"..function <SNR>4_LoadFTPlugin[17]..script <path-to>/.vim/bundle/jedi-vim/ftplugin/python/jedi.vim[1]..<path-to>/.vim/bundle/jedi-vim/autoload/jedi.vim[260]..function jedi#init_python[11].. <SNR>54_display_exception:
line 19:
Error: jedi-vim failed to initialize Python: jedi#setup_python_imports: Traceback (most recent call last): (in BufRead Autocommands for "*.py"..FileType Autocommands for "*"..function <SNR>4_LoadFTPlugin[17]..script <path-to>/.vim/bundle/jedi-vim/ftplugin/python/jedi. vim[1]..<path-to>/.vim/bundle/jedi-vim/autoload/jedi.vim[260]..function jedi#init_python[4]..<SNR>54_init_python[6].. jedi#setup_python_imports, line 20). See :messages and/or :JediDebugInfo for more information.
Error detected while processing BufRead Autocommands for "*.py"..FileType Autocommands for "*"..function <SNR>4_LoadFTPlugin[17]..script <path-to>/.vim/bundle/jedi-vim/ftplugin/python/jedi.vim:
line 36:
E117: Unknown function: jedi#configure_call_signatures
And indeed, the output of :python3 import os; for key in os.environ.keys(); print(key)
yields
ANSICON
ANSICON_DEF
CONEMUANSI
PATH
SYSTEMDRIVE
SYSTEMROOT
WINDIR
HOME
is noticeably absent.
This looks like something's broken with either Python3 or VIM, but I have a very limited knowledge about that interaction. Maybe reinstalling Python3.9 from a different source?
well i have the same issue :) on debian
Error detected while processing BufNewFile Autocommands for "*.py"..FileType Autocommands for "*"..function <SNR>9_LoadFTPlugin[18]..script /home/amin/.vim/bundle/jedi-vim/ftplugin/python/jedi.vim[1]../home/amin
/.vim/bundle/jedi-vim/autoload/jedi.vim[261]..function jedi#init_python[13]..BufNewFile Autocommands for "*.py"..FileType Autocommands for "*"..function <SNR>9_LoadFTPlugin[18]..script /home/amin/.vim/bundle/jed
i-vim/ftplugin/python/jedi.vim[1]../home/amin/.vim/bundle/jedi-vim/autoload/jedi.vim[261]..function jedi#init_python[11]..<SNR>27_display_exception:
line 19:
Error: jedi-vim failed to initialize Python: jedi-vim requires Vim with support for Python 3. (in BufNewFile Autocommands for "*.py"..FileType Autocommands for "*"..function <SNR>9_LoadFTPlugin[18]..script /home
/amin/.vim/bundle/jedi-vim/ftplugin/python/jedi.vim[1]../home/amin/.vim/bundle/jedi-vim/autoload/jedi.vim[261]..function jedi#init_python[4]..<SNR>27_init_python, line 4)
Error detected while processing BufNewFile Autocommands for "*.py"..FileType Autocommands for "*"..function <SNR>9_LoadFTPlugin[18]..script /home/amin/.vim/bundle/jedi-vim/ftplugin/python/jedi.vim:
line 40:
E117: Unknown function: jedi#configure_call_signatures
Just fixed it adding this plugin:
Plugin 'davidhalter/jedi-vim'
Issue
Unable to launch jedi-vim. Error is:
After typing
:messages
, I getSteps to reproduce
Running Vim 8.2 on Windows 10 with
+python3/dyn
. Installed Python is 3.9.Can confirm that
echo has('python3')
returns1
.Running
:python3 import sys; print(sys.version)' returns
3.9.10 (tags/v3.9.10:f2f3f53, Jan 17 2022, 15:14:21) [MSC v.1929 64 bit (AMD64)]`.Can confirm this matches the output of running
python --version
.Installed
jedi-vim
into.vim/pack/plugins/start
viagit clone --recursive
. Subsequently rangit submodule update --init --recursive
.The minimal.vimrc I used:
Opening a
.py
file then produces the error.Output of “:verbose JediDebugInfo”