You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to do a . autocomplete, it takes a long time to load the options. I have looked at some other issues, like #163, but I have not installed any other plugins. Please see the section called "ATTENTION" as it looks like there is probably a simple solution, but I am not sure exactly what I need to add/edit in my init.vim file.
If you are not using jedi-vim from Git (but e.g. from a distribution's package,
please try it with jedi-vim's Git master, too).
I assume that's what Vundle is doing when I include the line Plugin 'davidhalter/jedi-vim' in my init.vim file, but if not, please let me know and I will see if I can install it some other way.
jedi-vim.slow.webm
Steps to reproduce
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 with vim -u minimal.vimrc):
setnocompatiblelet script_dir =fnamemodify(expand('<sfile>'), ':h')
let &runtimepath.=','.script_dir.','.script_dir.'/after'" Put your config changes here." let g:jedi#show_call_signatures=1syntaxonfiletypepluginindenton
*** ATTENTION ***
I just tried that and it significantly increased the speed on the second autocomplete! It's not the 50 ms that someone else reported, but it does go much faster, which is good.
Any idea what I should add from this to my init.vim? This is all that's in mine right now:
setnocompatible" be iMproved, requiredfiletypeoff" requiredsetrtp+=~/.vim/bundle/Vundle.vimcallvundle#begin()
Plugin'VundleVim/Vundle.vim'Plugin'davidhalter/jedi-vim'callvundle#end()" requiredfiletypepluginindenton" requiredsetscrolloff=10augroupAutoViewautocmd!autocmdBufWinLeave*silent!mkviewautocmdBufWinEnter*silent!loadviewaugroupEND
Jedi environment: <SameEnvironment: 3.10.12 in /usr>
executable: /usr/bin/python3
sys_path:
/usr/lib/python310.zip
/usr/lib/python3.10
/usr/lib/python3.10/lib-dynload
/home/user/.local/lib/python3.10/site-packages
/usr/local/lib/python3.10/dist-packages
/usr/lib/python3/dist-packages
Known environments
<Environment: 3.10.12 in /usr> (/usr/bin/python3.10)
Settings
omnifunc=jedi#completions
Last set from ~/.vim/bundle/jedi-vim/autoload/jedi.vim line 723
completeopt=menuone,longest,preview
Last set from ~/.vim/bundle/jedi-vim/plugin/jedi.vim line 40
:version
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by team+vim@tracker.debian.org
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"
Run :checkhealth for more info
Thanks for the report, but this is unfortunately a known issue of davidhalter/jedi#1059
There is not a lot we can do here for now, because this is really an architectural issue. I'm trying to fix it by rewriting Jedi in Rust, but that's still years away from completion. My type checker is probably at 50-60% (mypy clone) finished, but even that will take a long time and after that I will start with completions.
The issue you are seeing here is that some large libraries like matplotlib and numpy are just too big for Jedi's current design. I'm closing, because this is really the Jedi issue that I've linked.
Issue
When I try to do a
.
autocomplete, it takes a long time to load the options. I have looked at some other issues, like #163, but I have not installed any other plugins. Please see the section called "ATTENTION" as it looks like there is probably a simple solution, but I am not sure exactly what I need to add/edit in myinit.vim
file.I assume that's what Vundle is doing when I include the line
Plugin 'davidhalter/jedi-vim'
in myinit.vim
file, but if not, please let me know and I will see if I can install it some other way.jedi-vim.slow.webm
Steps to reproduce
*** ATTENTION ***
I just tried that and it significantly increased the speed on the second autocomplete! It's not the 50 ms that someone else reported, but it does go much faster, which is good.
Any idea what I should add from this to my
init.vim
? This is all that's in mine right now:***
Output of “:verbose JediDebugInfo”
Jedi-vim debug information
jedi-vim version
Global Python
Using Python version 3 to access Jedi.
/usr/bin/python3
3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
/usr/lib/python3.10/site.py
Jedi
/home/user/.vim/bundle/jedi-vim/pythonx/jedi/jedi/__init__.py
Jedi environment: <SameEnvironment: 3.10.12 in /usr>
/usr/lib/python310.zip
/usr/lib/python3.10
/usr/lib/python3.10/lib-dynload
/home/user/.local/lib/python3.10/site-packages
/usr/local/lib/python3.10/dist-packages
/usr/lib/python3/dist-packages
Known environments
Settings
:version
:messages
:scriptnames
The text was updated successfully, but these errors were encountered: