davidhalter / jedi-vim

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

The little popup window when typing a ( does not show up in neovim #811

Closed BrandonShega closed 3 years ago

BrandonShega commented 6 years ago

The little popup window when typing a ( does not show up in neovim

Output of “:verbose JediDebugInfo”

Jedi-vim debug information

Using Python version: 3

AttributeError: 'Project' object has no attribute 'sys_path'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/Users/bshega/.vim/bundle/jedi-vim/pythonx/jedi_vim_debug.py", line 39, in display_debug_info sys_path = script_evaluator.sys_path

AttributeError: 'Evaluator' object has no attribute 'sys_path'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "", line 1, in

File "/Users/bshega/.vim/bundle/jedi-vim/pythonx/jedi_vim_debug.py", line 44, in display_debug_info "{0!r})".format(e))

File "/Users/bshega/.vim/bundle/jedi-vim/pythonx/jedi_vim_debug.py", line 8, in echo vim.command('echo {0}'.format(msg))

File "/usr/local/lib/python3.6/site-packages/neovim/api/nvim.py", line 242, in command return self.request('nvim_command', string, **kwargs)

File "/usr/local/lib/python3.6/site-packages/neovim/api/nvim.py", line 140, in request res = self._session.request(name, *args, **kwargs)

File "/usr/local/lib/python3.6/site-packages/neovim/msgpack_rpc/session.py", line 98, in request raise self.error_wrapper(err)

neovim.api.nvim.NvimError: b'Vim(echo):E117: Unknown function: AttributeError' syntax-error: unexpected EOF while parsing (, line 7)-- INSERT ---- INSERT -- No matching autocommands-- INSERT ---- INSERT ---- INSERT -- No matching autocommands

syntax-error: unexpected EOF while parsing (, line 7)

davidhalter commented 6 years ago

I'm pretty sure that JediDebugInfo will be better once #806 is going to be merged. So let's wait for that.

blueyed commented 6 years ago

Reminded me of https://github.com/neovim/neovim/issues/3757 - i.e. a bug in Neovim, where CursorHoldI might get/be broken.

blueyed commented 6 years ago

@BrandonShega Are you using deoplete also?

BrandonShega commented 6 years ago

@blueyed I am using deoplete, yes.

BrandonShega commented 6 years ago

Also, fwiw, I wasn't getting the window to popup at all in nvim unless I hit Ctrl+Space even with Supertab installed. I had to add

" Supertab
let g:SuperTabDefaultCompletionType = "<c-x><c-o>"

to get it to work.

blueyed commented 6 years ago

Yes, it is a Neovim issue. But https://github.com/davidhalter/jedi-vim/pull/652 fixes it for me. This PR is rebased on master, so you could easily try it and report feedback there.

blueyed commented 6 years ago

@BrandonShega Normally <c-x><c-o> should work by itself (even in Neovim) - not sure when you expect it to happen though.

652 is the way forward IMHO anyway.

blueyed commented 5 years ago

@BrandonShega Have you tried https://github.com/davidhalter/jedi-vim/pull/652 (I've just rebased it).

davidhalter commented 3 years ago

Same issue as #493. We are trying to get rid of changing the buffer for this feature and are trying to use floating windows.