davidhalter / jedi-vim

Using the jedi autocompletion library for VIM.
MIT License
5.27k stars 370 forks source link

<C-Space> not work #1110

Closed yabb85 closed 1 year ago

yabb85 commented 1 year ago

Issue

The \ not work on python file with jedi vim, when i use this shortcut nothing happens. The shortcut \\ works correctly.

Jedi-vim is intalled with vim-plug Plug 'davidhalter/jedi-vim'

Steps to reproduce

Open python file and write

import re
re.<ctrl-space>

.vimrc added lines:

let g:jedi#popup_on_dot = 0
autocmd FileType python setlocal completeopt-=preview
autocmd FileType python setlocal omnifunc=jedi#completions
let g:jedi#show_call_signatures = "0"

Output of “:verbose JediDebugInfo”

:version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 27 2022 13:47:02)
Included patches: 1-1763
Modified by <bugzilla@redhat.com>
Compiled by <bugzilla@redhat.com>
Huge version without GUI.  Features included (+) or not (-):
+acl               -clientserver      +dialog_con        +find_in_path      +keymap            +modify_fname      +multi_byte        +profile           +statusline        +textobjects       +wildignore
+arabic            -clipboard         +diff              +float             +lambda            +mouse             +multi_lang        +python/dyn        -sun_workshop      +timers            +wildmenu
+autocmd           +cmdline_compl     +digraphs          +folding           +langmap           -mouseshape        -mzscheme          +python3/dyn       +syntax            +title             +windows
-autoservername    +cmdline_hist      -dnd               -footer            +libcall           +mouse_dec         +netbeans_intg     +quickfix          +tag_binary        -toolbar           +writebackup
-balloon_eval      +cmdline_info      -ebcdic            +fork()            +linebreak         +mouse_gpm         +num64             +reltime           +tag_old_static    +user_commands     -X11
+balloon_eval_term +comments          +emacs_tags        +gettext           +lispindent        -mouse_jsbterm     +packages          +rightleft         -tag_any_white     +vertsplit         -xfontset
-browse            +conceal           +eval              -hangul_input      +listcmds          +mouse_netterm     +path_extra        +ruby/dyn          -tcl               +virtualedit       -xim
++builtin_terms    +cryptv            +ex_extra          +iconv             +localmap          +mouse_sgr         +perl/dyn          +scrollbind        +termguicolors     +visual            -xpm
+byte_offset       +cscope            +extra_search      +insert_expand     +lua/dyn           -mouse_sysmouse    +persistent_undo   +signs             +terminal          +visualextra       -xsmp
+channel           +cursorbind        +farsi             +job               +menu              +mouse_urxvt       +postscript        +smartindent       +terminfo          +viminfo           -xterm_clipboard
+cindent           +cursorshape       +file_in_path      +jumplist          +mksession         +mouse_xterm       +printer           +startuptime       +termresponse      +vreplace          -xterm_save
   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: "/etc"
 f-b for $VIMRUNTIME: "/usr/share/vim/vim80"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/
usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/python3.6m -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -L. -Wl,-z,relro  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--enable-new-dtags -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-l
d  -Wl,-z,relro  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib -Wl,--as-needed -o vim        -lm  -lselinux   -lncurses -lacl -lattr -lgpm -ldl   -Wl,--enable-new-dtags -Wl,-z,relro -Wl,-z,now -specs=/usr/lib
/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector-strong -L/usr/local/lib  -L/usr/lib64/perl5/CORE -lperl -lpthread -lresolv -ldl -lm -lcrypt -lutil -lc
#### Jedi-vim debug information

##### jedi-vim version

 - jedi-vim git version: 0.11.1-10-g42c2af1
 - jedi git submodule status:  eaab7060388c8f438f1dbe6502e47c6639aa9bac pythonx/jedi (v0.18.2)
 - parso git submodule status:  ee5edaf22ff3941cbdfa4efd8cb3e8f69779fd56 pythonx/parso (v0.8.3)

##### Global Python

Using Python version 3 to access Jedi.
 - global sys.executable: `/home/laurent/.local/share/virtualenvs/vvanalyze/bin/python3`
 - global sys.version: `3.6.8 (default, Jan 25 2023, 15:03:30), [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)]`
 - global site module: `/usr/lib64/python3.6/site.py`

##### Jedi

 - path: `/home/laurent/.vim/plugged/jedi-vim/pythonx/jedi/jedi/__init__.py`
 - version: 0.18.2

##### Jedi environment: <Environment: 3.6.8 in /home/laurent/.local/share/virtualenvs/vvanalyze>

 - executable: /home/laurent/.local/share/virtualenvs/vvanalyze/bin/python
 - sys_path:
    - `/usr/lib64/python36.zip`
    - `/usr/lib64/python3.6`
    - `/usr/lib64/python3.6/lib-dynload`
    - `/home/laurent/.local/share/virtualenvs/vvanalyze/lib64/python3.6/site-packages`
    - `/home/laurent/.local/share/virtualenvs/vvanalyze/lib/python3.6/site-packages`

##### Known environments

 - <Environment: 3.6.8 in /home/laurent/.local/share/virtualenvs/vvanalyze> (/home/laurent/.local/share/virtualenvs/vvanalyze/bin/python)
 - <Environment: 3.9.16 in /usr> (/usr/bin/python3.9)
 - <Environment: 3.6.8 in /home/laurent/.local/share/virtualenvs/vvanalyze> (/home/laurent/.local/share/virtualenvs/vvanalyze/bin/python3.6)

##### Settings

g:jedi#popup_on_dot = 0 (default: 1)
g:jedi#show_call_signatures = '0' (default: 1)

  omnifunc=jedi#completions
        Last set from ~/.vimrc
  completeopt=menu
        Last set from ~/.vimrc
  1: /etc/vimrc
  2: /usr/share/vim/vim80/syntax/syntax.vim
  3: /usr/share/vim/vim80/syntax/synload.vim
  4: /usr/share/vim/vim80/syntax/syncolor.vim
  5: /usr/share/vim/vim80/filetype.vim
  6: /usr/share/vim/vimfiles/ftdetect/modulefile.vim
  7: /usr/share/vim/vimfiles/ftdetect/stp.vim
  8: /usr/share/vim/vim80/ftplugin.vim
  9: ~/.vimrc
 10: ~/.vim/autoload/plug.vim
 11: /usr/share/vim/vim80/ftoff.vim
 12: ~/.vim/plugged/vim-pug/ftdetect/pug.vim
 13: ~/.vim/plugged/csv.vim/ftdetect/csv.vim
 14: ~/.vim/plugged/vimoutliner/ftdetect/votl.vim
 15: /usr/share/vim/vim80/indent.vim
 16: /usr/share/vim/vim80/syntax/nosyntax.vim
 17: ~/.vim/plugged/gruvbox/colors/gruvbox.vim
 18: ~/.vim/plugged/nerdtree/plugin/NERD_tree.vim
 19: ~/.vim/plugged/nerdtree/autoload/nerdtree.vim
 20: ~/.vim/plugged/nerdtree/lib/nerdtree/path.vim
 21: ~/.vim/plugged/nerdtree/lib/nerdtree/menu_controller.vim
 22: ~/.vim/plugged/nerdtree/lib/nerdtree/menu_item.vim
 23: ~/.vim/plugged/nerdtree/lib/nerdtree/key_map.vim
 24: ~/.vim/plugged/nerdtree/lib/nerdtree/bookmark.vim
 25: ~/.vim/plugged/nerdtree/lib/nerdtree/tree_file_node.vim
 26: ~/.vim/plugged/nerdtree/lib/nerdtree/tree_dir_node.vim
 27: ~/.vim/plugged/nerdtree/lib/nerdtree/opener.vim
 28: ~/.vim/plugged/nerdtree/lib/nerdtree/creator.vim
 29: ~/.vim/plugged/nerdtree/lib/nerdtree/flag_set.vim
 30: ~/.vim/plugged/nerdtree/lib/nerdtree/nerdtree.vim
 31: ~/.vim/plugged/nerdtree/lib/nerdtree/ui.vim
 32: ~/.vim/plugged/nerdtree/lib/nerdtree/event.vim
 33: ~/.vim/plugged/nerdtree/lib/nerdtree/notifier.vim
 34: ~/.vim/plugged/nerdtree/autoload/nerdtree/ui_glue.vim
 35: ~/.vim/plugged/nerdtree/nerdtree_plugin/exec_menuitem.vim
 36: ~/.vim/plugged/nerdtree/nerdtree_plugin/fs_menu.vim
 37: ~/.vim/plugged/nerdtree/nerdtree_plugin/vcs.vim
 38: ~/.vim/plugged/nerdcommenter/plugin/nerdcommenter.vim
 39: ~/.vim/plugged/vim-airline/plugin/airline.vim
 40: ~/.vim/plugged/vim-airline/autoload/airline/init.vim
 41: ~/.vim/plugged/vim-airline/autoload/airline/parts.vim
 42: ~/.vim/plugged/vim-airline/autoload/airline/formatter/short_path.vim
 43: ~/.vim/plugged/vim-airline/autoload/airline/util.vim
 44: ~/.vim/plugged/vim-airline-themes/plugin/airline-themes.vim
 45: ~/.vim/plugged/ctrlp.vim/plugin/ctrlp.vim
 46: ~/.vim/plugged/ctrlp.vim/autoload/ctrlp/mrufiles.vim
 47: ~/.vim/plugged/vim-snippets/plugin/vimsnippets.vim
 48: ~/.vim/plugged/gundo.vim/plugin/gundo.vim
 49: ~/.vim/plugged/ag.vim/plugin/ag.vim
 50: ~/.vim/plugged/vim-multiple-cursors/plugin/multiple_cursors.vim
 51: ~/.vim/plugged/vim-easymotion/plugin/EasyMotion.vim
 52: ~/.vim/plugged/vim-signify/plugin/signify.vim
 53: ~/.vim/plugged/vim-indent-guides/plugin/indent_guides.vim
 54: ~/.vim/plugged/vim-indent-guides/autoload/indent_guides.vim
 55: ~/.vim/plugged/vim-startify/plugin/startify.vim
 56: ~/.vim/plugged/vim-DeleteTrailingWhitespace/plugin/DeleteTrailingWhitespace.vim
 57: ~/.vim/plugged/csv.vim/plugin/csv.vim
 58: ~/.vim/plugged/ale/plugin/ale.vim
 59: ~/.vim/plugged/ale/autoload/ale/completion.vim
 60: ~/.vim/plugged/ale/autoload/ale/events.vim
 61: ~/.vim/plugged/tablify/plugin/tablify.vim
 62: ~/.vim/plugged/vimwiki/plugin/vimwiki.vim
 63: ~/.vim/plugged/vimwiki/autoload/vimwiki/vars.vim
 64: ~/.vim/plugged/vimwiki/autoload/vimwiki/u.vim
 65: ~/.vim/plugged/vimwiki/autoload/vimwiki/base.vim
 66: ~/.vim/plugged/vimwiki/autoload/vimwiki/markdown_base.vim
 67: ~/.vim/plugged/vimwiki/autoload/vimwiki/path.vim
 68: ~/.vim/plugged/vim-plugin-AnsiEsc/plugin/AnsiEscPlugin.vim
 69: ~/.vim/plugged/vim-plugin-AnsiEsc/plugin/cecutil.vim
 70: ~/.vim/plugged/jedi-vim/plugin/jedi.vim
 71: ~/.vim/plugged/vim-virtualenv/plugin/virtualenv.vim
 72: ~/.vim/plugged/vim-virtualenv/autoload/virtualenv.vim
 73: ~/.vim/plugged/vcscommand.vim/plugin/vcsbzr.vim
 74: ~/.vim/plugged/vcscommand.vim/plugin/vcscommand.vim
 75: ~/.vim/plugged/vcscommand.vim/plugin/vcscvs.vim
 76: ~/.vim/plugged/vcscommand.vim/plugin/vcsgit.vim
 77: ~/.vim/plugged/vcscommand.vim/plugin/vcshg.vim
 78: ~/.vim/plugged/vcscommand.vim/plugin/vcssvk.vim
 79: ~/.vim/plugged/vcscommand.vim/plugin/vcssvn.vim
 80: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
 81: /usr/share/vim/vim80/plugin/gzip.vim
 82: /usr/share/vim/vim80/plugin/logiPat.vim
 83: /usr/share/vim/vim80/plugin/manpager.vim
 84: /usr/share/vim/vim80/plugin/matchparen.vim
 85: /usr/share/vim/vim80/plugin/netrwPlugin.vim
 86: /usr/share/vim/vim80/plugin/rrhelper.vim
 87: /usr/share/vim/vim80/plugin/spellfile.vim
 88: /usr/share/vim/vim80/plugin/tarPlugin.vim
 89: /usr/share/vim/vim80/plugin/tohtml.vim
 90: /usr/share/vim/vim80/plugin/vimballPlugin.vim
 91: /usr/share/vim/vim80/plugin/zipPlugin.vim
 92: ~/.vim/plugged/jedi-vim/ftplugin/python/jedi.vim
 93: ~/.vim/plugged/jedi-vim/autoload/jedi.vim
 94: /usr/share/vim/vim80/ftplugin/python.vim
 95: ~/.vim/plugged/jedi-vim/after/ftplugin/python/jedi.vim
 96: ~/.vim/plugged/black/plugin/black.vim
 97: ~/.vim/plugged/vim-isort/plugin/python_vimisort.vim
 98: ~/.vim/plugged/vim-python-pep8-indent/indent/python.vim
 99: /usr/share/vim/vim80/indent/python.vim
100: ~/.vim/plugged/python-syntax/syntax/python.vim
101: /usr/share/vim/vim80/syntax/python.vim
102: ~/.vim/plugged/jedi-vim/after/syntax/python.vim
103: ~/.vim/plugged/vim-airline/autoload/airline/extensions.vim
104: ~/.vim/plugged/vim-airline/autoload/airline/extensions/quickfix.vim
105: ~/.vim/plugged/vim-airline/autoload/airline.vim
106: ~/.vim/plugged/vim-airline/autoload/airline/extensions/netrw.vim
107: ~/.vim/plugged/vim-airline/autoload/airline/extensions/term.vim
108: ~/.vim/plugged/vim-airline/autoload/airline/section.vim
109: ~/.vim/plugged/vim-airline/autoload/airline/highlighter.vim
110: ~/.vim/plugged/vim-airline/autoload/airline/extensions/ctrlp.vim
111: ~/.vim/plugged/vim-airline/autoload/airline/extensions/hunks.vim
112: ~/.vim/plugged/vim-airline/autoload/airline/extensions/csv.vim
113: ~/.vim/plugged/vim-airline/autoload/airline/extensions/ale.vim
114: ~/.vim/plugged/vim-airline/autoload/airline/extensions/whitespace.vim
115: ~/.vim/plugged/vim-airline/autoload/airline/extensions/po.vim
116: ~/.vim/plugged/vim-airline/autoload/airline/extensions/wordcount.vim
117: ~/.vim/plugged/vim-airline/autoload/airline/extensions/keymap.vim
118: ~/.vim/plugged/vim-airline-themes/autoload/airline/themes/powerlineish.vim
119: ~/.vim/plugged/vim-airline/autoload/airline/themes.vim
120: ~/.vim/plugged/vim-airline/autoload/airline/builder.vim
121: ~/.vim/plugged/vim-airline/autoload/airline/extensions/default.vim
122: ~/.vim/plugged/vim-signify/autoload/sy.vim
123: ~/.vim/plugged/vim-signify/autoload/sy/util.vim
124: ~/.vim/plugged/vim-signify/autoload/sy/repo.vim
125: ~/.vim/plugged/vim-plugin-AnsiEsc/autoload/AnsiEsc.vim
126: ~/.vim/plugged/ale/autoload/ale.vim
127: ~/.vim/plugged/ale/autoload/ale/util.vim
128: ~/.vim/plugged/ale/autoload/ale/linter.vim
129: ~/.vim/plugged/ale/ale_linters/python/bandit.vim
130: ~/.vim/plugged/ale/ale_linters/python/cspell.vim
131: ~/.vim/plugged/ale/autoload/ale/handlers/cspell.vim
132: ~/.vim/plugged/ale/ale_linters/python/flake8.vim
133: ~/.vim/plugged/ale/ale_linters/python/flakehell.vim
134: ~/.vim/plugged/ale/ale_linters/python/jedils.vim
135: ~/.vim/plugged/ale/ale_linters/python/mypy.vim
136: ~/.vim/plugged/ale/ale_linters/python/prospector.vim
137: ~/.vim/plugged/ale/ale_linters/python/pycln.vim
138: ~/.vim/plugged/ale/ale_linters/python/pycodestyle.vim
139: ~/.vim/plugged/ale/ale_linters/python/pydocstyle.vim
140: ~/.vim/plugged/ale/ale_linters/python/pyflakes.vim
141: ~/.vim/plugged/ale/ale_linters/python/pylama.vim
142: ~/.vim/plugged/ale/ale_linters/python/pylint.vim
143: ~/.vim/plugged/ale/ale_linters/python/pylsp.vim
144: ~/.vim/plugged/ale/ale_linters/python/pyre.vim
145: ~/.vim/plugged/ale/ale_linters/python/pyright.vim
146: ~/.vim/plugged/ale/ale_linters/python/refurb.vim
147: ~/.vim/plugged/ale/ale_linters/python/ruff.vim
148: ~/.vim/plugged/ale/autoload/ale/fix/registry.vim
149: ~/.vim/plugged/ale/ale_linters/python/unimport.vim
150: ~/.vim/plugged/ale/ale_linters/python/vulture.vim
151: ~/.vim/plugged/ale/autoload/ale/engine.vim
152: ~/.vim/plugged/ale/autoload/ale/command.vim
153: ~/.vim/plugged/ale/autoload/ale/python.vim
154: ~/.vim/plugged/ale/autoload/ale/path.vim
155: ~/.vim/plugged/ale/autoload/ale/history.vim
156: ~/.vim/plugged/ale/autoload/ale/sign.vim
157: ~/.vim/plugged/ale/autoload/ale/list.vim
158: ~/.vim/plugged/ale/autoload/ale/highlight.vim
159: ~/.vim/plugged/ale/autoload/ale/cursor.vim
160: ~/.vim/plugged/ctrlp.vim/autoload/ctrlp/utils.vim
161: ~/.vim/plugged/ale/autoload/ale/statusline.vim
162: ~/.vim/plugged/vim-signify/autoload/sy/sign.vim
163: ~/.vim/plugged/vim-signify/autoload/sy/highlight.vim
davidhalter commented 1 year ago

Why wouldn't you just map it then? I'm not sure what causes this and to be honest I do not really care, because you have so many different plugins enabled that might interfere.

If you really want to debug this, you would probably need to disable all plugins first and then check if it still occurs.

I'm closing, because I doubt anyone is going to look into this. If you want to do it yourself, I'm happy to accept PRs.