lsp_document_code_action_signs_enabled makes go-to-definition w/ jedi-language-server
I experienced jedi-language-server either running slow or not working with vim-lsp under different versioning combinations. I understand this may not be actionable. I want to at least document my findings of what works, work's slow, what's not working. At least for now.
| ID | py | jedi-language-server | vim-lsp | status |
| -- | ----- | ---------------------- | ------------------------------------------------------ | ---------------------------------------- |
| 1 | 3.9 | 0.37.0 | 'tag': 'v0.1.4' | good perf |
| 2 | 3.9 | 0.38.0 | 'tag': 'v0.1.4' | good perf |
| 3 | 3.9 | 0.40.0 | 'tag': 'v0.1.4' | jedi LSP can't start. so switch to vim-lsp latest (cdd07e0ef79949c65a182eab2f2120c9e91c25aa) |
| 4 | 3.9 | 0.37.0 | 'commit': 'cdd07e0ef79949c65a182eab2f2120c9e91c25aa' | go-to definition is slow. `ty` is fast |
| 5 | 3.9 | 0.38.0 | 'commit': 'cdd07e0ef79949c65a182eab2f2120c9e91c25aa' | go-to definition is slow. `ty` is fast |
| 6 | 3.9 | 0.40.0 | 'commit': 'cdd07e0ef79949c65a182eab2f2120c9e91c25aa' | go-to definition is slow. `ty` is fast |
| 7 | 3.9 | 0.46.0 | 'commit': 'cdd07e0ef79949c65a182eab2f2120c9e91c25aa' | go-to definition is slow. `ty` is fast |
In addition, I tried `jedi-vim` (eebf7d286375a3aa8acaef63be1a9c92d3b73171), which uses seems to use `jedi` v0.19.2 (41e9e957e7fce02e63a41af66c9c891e33411569). **jedi-vim is fast**.
### My interpretations:
1. Feels like a vim-lsp problem, since w/ same jedi lsp 0.37.0, vim-lsp became slow on cdd07e0ef79949c65a182eab2f2120c9e91c25aa
2. However, vim-lsp is fast with `ty`, which indicate this is specific to jedi-language-server.
vim is built with lua
```
>>> vim --version
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Feb 16 2024 00:00:00)
Included patches: 1-113
Modified by <bugzilla@redhat.com>
Compiled by <bugzilla@redhat.com>
Huge version without GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_urxvt -tag_any_white
+arabic +find_in_path +mouse_xterm -tcl
+autocmd +float +multi_byte +termguicolors
+autochdir +folding +multi_lang +terminal
-autoservername -footer -mzscheme +terminfo
-balloon_eval +fork() +netbeans_intg +termresponse
+balloon_eval_term +gettext +num64 +textobjects
-browse -hangul_input +packages +textprop
++builtin_terms +iconv +path_extra +timers
+byte_offset +insert_expand +perl/dyn +title
+channel +ipv6 +persistent_undo -toolbar
+cindent +job +popupwin +user_commands
-clientserver +jumplist +postscript +vartabs
-clipboard +keymap +printer +vertsplit
+cmdline_compl +lambda +profile +vim9script
+cmdline_hist +langmap -python +viminfo
+cmdline_info +libcall +python3/dyn +virtualedit
+comments +linebreak +quickfix +visual
+conceal +lispindent +reltime +visualextra
+cryptv +listcmds +rightleft +vreplace
+cscope +localmap +ruby/dyn +wildignore
+cursorbind +lua/dyn +scrollbind +wildmenu
+cursorshape +menu +signs +windows
+dialog_con +mksession +smartindent +writebackup
+diff +modify_fname -sodium -X11
+digraphs +mouse -sound +xattr
-dnd -mouseshape +spell -xfontset
-ebcdic +mouse_dec +startuptime -xim
+emacs_tags -mouse_gpm +statusline -xpm
+eval -mouse_jsbterm -sun_workshop -xsmp
+ex_extra +mouse_netterm +syntax -xterm_clipboard
+extra_search +mouse_sgr +tag_binary -xterm_save
-farsi -mouse_sysmouse -tag_old_static
system vimrc file: "/etc/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DSYS_VIMRC_FILE=/etc/vimrc -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,--enable-new-dtags -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -L/usr/local/lib -o vim -lm -lselinux -lncurses -lacl -lattr
```
关闭于 2026-06-08 3 条评论