Closed bgenchel closed 2 years ago
Since this plugin is not part of YCM, you should probably report this on the YCM tracker. I'm closing, because this is the wrong repository. jedi-vim is an alternative to YCM.
To me it looks like your /usr/bin/python
is either Python2 or there are some issues with it in general. We have had users having issues with macOS system Python previously. Most users I guess just install Python with brew/MacPorts or whatever else there is (I have never been a Mac user).
Issue
Using Jedi through YCM, latest version. Using a Macbook pro on Monterey 12.1 Seems something is wrong with my system default python, and I haven't been able to find any issues that match this particular one exactly either in this issue tracker or on stack overflow so I thought i'd post it here.
I install YCM via vim plug, then compile it with python3. The version of jedi in its dependencies doesn't appear to be the most recent, but has grammars up to 310.
When I open vim with a python file, I immediately see the error in the issue title in my command bar at the bottom of the screen. Opening the YCM logs yields this stack trace:
Steps to reproduce
Install Vim (MacVim):
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr 01 2021 08:32:44) macOS version - x86_64
Install YCM via vim plug as in:
in vim, use :PlugInstall to install.
cd ~/.vim/plugged/YouCompleteMe
and runpython3 install.py --clang-completer --ts-completer
Open vim again with any python file and look at the debug logs (via :YcmToggleDebugLogs)
You can use the following template (save it as
minimal.vimrc
in the directory where jedi-vim is installed,cd
into that directory, and run Vim withvim -u minimal.vimrc
):Please provide the
minimal.vimrc
you have used here, too. -->Output of “:verbose JediDebugInfo”
I'm not sure how to execute the command for getting the debug information requested. I don't know what a Python buffer is in the context of VIm, or how to execute the command in one. Please provide further instructions.