davidhalter / jedi-vim

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

Function signatures are not showing up as a pop up, like in readme #1037

Closed kratsg closed 3 years ago

kratsg commented 3 years ago

Issue

I'll do my best to describe, as I'm not sure what configuration is needed to make this work.

readme

In the readme, there's this picture showing nicely how the autocomplete-like pop-up shows the call signatures highlighted so it's easier to figure out what they are. On Mac OSX using vim+python (from homebrew, python 3.9) I get this:

Screen Shot 2020-12-22 at 4 41 53 PM

and then when I select the function, I don't see any pop-up for the signature

Screen Shot 2020-12-22 at 4 42 02 PM

I'm not sure what I'm doing wrong.

Steps to reproduce

call plug#begin()
Plug 'davidhalter/jedi-vim'
call plug#end()

let g:jedi#show_call_signatures = "2"

which is a bit odd. I would've expected it to work, but I see no behavior changes when I switch from 0/1/2 for the options here.

Output of “:verbose JediDebugInfo”

Jedi-vim debug information

(I tried running the redir stuff but gave me an error E475: Invalid argument: @+>).

jedi-vim version
Global Python

Using Python version 2 to access Jedi.

Jedi
Jedi environment: <SameEnvironment: 3.8.6 in /Users/kratsg/.pyenv/versions/3.8.6>
Known environments
Settings
  omnifunc=jedi#completions
        Last set from ~/.vim/plugged/jedi-vim/autoload/jedi.vim
  completeopt=menuone,longest,preview
        Last set from ~/.vim/plugged/jedi-vim/autoload/jedi.vim

:version

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 15 2020 23:37:08)
Included patches: 1-503, 505-680, 682-1283, 1365
Compiled by root@apple.com
Normal version without GUI.  Features included (+) or not (-):
+acl             -clientserver    +cursorbind      +ex_extra        -gettext         +libcall         +mouse           +mouse_xterm     +persistent_undo +ruby/dyn        +tag_old_static  +title           +wildignore      -xterm_clipboard
-arabic          -clipboard       +cursorshape     +extra_search    -hangul_input    +linebreak       -mouseshape      +multi_byte      +postscript      +scrollbind      -tag_any_white   -toolbar         +wildmenu        -xterm_save
+autocmd         +cmdline_compl   +dialog_con      -farsi           +iconv           +lispindent      -mouse_dec       +multi_lang      +printer         +signs           -tcl             +user_commands   +windows
-balloon_eval    +cmdline_hist    +diff            +file_in_path    +insert_expand   +listcmds        -mouse_gpm       -mzscheme        -profile         +smartindent     -termguicolors   +vertsplit       +writebackup
-browse          +cmdline_info    +digraphs        +find_in_path    +job             +localmap        -mouse_jsbterm   +netbeans_intg   +python/dyn      +startuptime     -terminal        +virtualedit     -X11
+builtin_terms   +comments        -dnd             +float           +jumplist        -lua             -mouse_netterm   +num64           -python3         +statusline      +terminfo        +visual          -xfontset
+byte_offset     -conceal         -ebcdic          +folding         -keymap          +menu            -mouse_sgr       +packages        +quickfix        -sun_workshop    +termresponse    +visualextra     -xim
+channel         +cryptv          -emacs_tags      -footer          +lambda          +mksession       -mouse_sysmouse  +path_extra      +reltime         +syntax          +textobjects     +viminfo         -xpm
+cindent         +cscope          +eval            +fork()          -langmap         +modify_fname    -mouse_urxvt     -perl            -rightleft       +tag_binary      +timers          +vreplace        -xsmp
   system vimrc file: "$VIM/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   -DMACOS_X_UNIX  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -L/usr/local/lib -o vim        -lm -lncurses  -liconv -framework Cocoa

:messages

Messages maintainer: Bram Moolenaar <Bram@vim.org>
"test.py" 12L, 144C
"test.py" 12L, 143C written
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 15 2020 23:37:08)
  1: /usr/share/vim/vimrc
  2: ~/.vimrc
  3: ~/.vim/autoload/plug.vim
  4: /usr/share/vim/vim80/filetype.vim
  5: ~/.vim/ftdetect/mkd.vim
  6: /usr/share/vim/vim80/ftplugin.vim
  7: /usr/share/vim/vim80/indent.vim
  8: /usr/share/vim/vim80/syntax/syntax.vim
  9: /usr/share/vim/vim80/syntax/synload.vim
 10: /usr/share/vim/vim80/syntax/syncolor.vim
 11: ~/.vim/plugged/jedi-vim/plugin/jedi.vim
 12: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
 13: /usr/share/vim/vim80/plugin/gzip.vim
 14: /usr/share/vim/vim80/plugin/logiPat.vim
 15: /usr/share/vim/vim80/plugin/manpager.vim
 16: /usr/share/vim/vim80/plugin/matchparen.vim
 17: /usr/share/vim/vim80/plugin/netrwPlugin.vim
 18: /usr/share/vim/vim80/plugin/rrhelper.vim
 19: /usr/share/vim/vim80/plugin/spellfile.vim
 20: /usr/share/vim/vim80/plugin/tarPlugin.vim
 21: /usr/share/vim/vim80/plugin/tohtml.vim
 22: /usr/share/vim/vim80/plugin/vimballPlugin.vim
 23: /usr/share/vim/vim80/plugin/zipPlugin.vim
 24: ~/.vim/plugged/jedi-vim/ftplugin/python/jedi.vim
 25: ~/.vim/plugged/jedi-vim/autoload/jedi.vim
 26: /usr/share/vim/vim80/ftplugin/python.vim
 27: ~/.vim/plugged/jedi-vim/after/ftplugin/python/jedi.vim
 28: /usr/share/vim/vim80/indent/python.vim
 29: /usr/share/vim/vim80/syntax/python.vim
 30: ~/.vim/plugged/jedi-vim/after/syntax/python.vim
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 15 2020 23:37:08)
  1: /usr/share/vim/vimrc
  2: ~/.vimrc
  3: ~/.vim/autoload/plug.vim
  4: /usr/share/vim/vim80/filetype.vim
  5: ~/.vim/ftdetect/mkd.vim
  6: /usr/share/vim/vim80/ftplugin.vim
  7: /usr/share/vim/vim80/indent.vim
  8: /usr/share/vim/vim80/syntax/syntax.vim
  9: /usr/share/vim/vim80/syntax/synload.vim
 10: /usr/share/vim/vim80/syntax/syncolor.vim
 11: ~/.vim/plugged/jedi-vim/plugin/jedi.vim
 12: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
 13: /usr/share/vim/vim80/plugin/gzip.vim
 14: /usr/share/vim/vim80/plugin/logiPat.vim
 15: /usr/share/vim/vim80/plugin/manpager.vim
 16: /usr/share/vim/vim80/plugin/matchparen.vim
 17: /usr/share/vim/vim80/plugin/netrwPlugin.vim
 18: /usr/share/vim/vim80/plugin/rrhelper.vim
 19: /usr/share/vim/vim80/plugin/spellfile.vim
 20: /usr/share/vim/vim80/plugin/tarPlugin.vim
 21: /usr/share/vim/vim80/plugin/tohtml.vim
 22: /usr/share/vim/vim80/plugin/vimballPlugin.vim
 23: /usr/share/vim/vim80/plugin/zipPlugin.vim
 24: ~/.vim/plugged/jedi-vim/ftplugin/python/jedi.vim
 25: ~/.vim/plugged/jedi-vim/autoload/jedi.vim
 26: /usr/share/vim/vim80/ftplugin/python.vim
 27: ~/.vim/plugged/jedi-vim/after/ftplugin/python/jedi.vim
 28: /usr/share/vim/vim80/indent/python.vim
 29: /usr/share/vim/vim80/syntax/python.vim
 30: ~/.vim/plugged/jedi-vim/after/syntax/python.vim
E475: Invalid argument: @+>
E475: Invalid argument: @+>
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 15 2020 23:37:08)
:scriptnames ``` 1: /usr/share/vim/vimrc 2: ~/.vimrc 3: ~/.vim/autoload/plug.vim 4: /usr/share/vim/vim80/filetype.vim 5: ~/.vim/ftdetect/mkd.vim 6: /usr/share/vim/vim80/ftplugin.vim 7: /usr/share/vim/vim80/indent.vim 8: /usr/share/vim/vim80/syntax/syntax.vim 9: /usr/share/vim/vim80/syntax/synload.vim 10: /usr/share/vim/vim80/syntax/syncolor.vim 11: ~/.vim/plugged/jedi-vim/plugin/jedi.vim 12: /usr/share/vim/vim80/plugin/getscriptPlugin.vim 13: /usr/share/vim/vim80/plugin/gzip.vim 14: /usr/share/vim/vim80/plugin/logiPat.vim 15: /usr/share/vim/vim80/plugin/manpager.vim 16: /usr/share/vim/vim80/plugin/matchparen.vim 17: /usr/share/vim/vim80/plugin/netrwPlugin.vim 18: /usr/share/vim/vim80/plugin/rrhelper.vim 19: /usr/share/vim/vim80/plugin/spellfile.vim 20: /usr/share/vim/vim80/plugin/tarPlugin.vim 21: /usr/share/vim/vim80/plugin/tohtml.vim 22: /usr/share/vim/vim80/plugin/vimballPlugin.vim 23: /usr/share/vim/vim80/plugin/zipPlugin.vim 24: ~/.vim/plugged/jedi-vim/ftplugin/python/jedi.vim 25: ~/.vim/plugged/jedi-vim/autoload/jedi.vim 26: /usr/share/vim/vim80/ftplugin/python.vim 27: ~/.vim/plugged/jedi-vim/after/ftplugin/python/jedi.vim 28: /usr/share/vim/vim80/indent/python.vim 29: /usr/share/vim/vim80/syntax/python.vim 30: ~/.vim/plugged/jedi-vim/after/syntax/python.vim ```
kratsg commented 3 years ago

Not sure what happened, but restarting the computer seems to fix things.