jedi-vim icon indicating copy to clipboard operation
jedi-vim copied to clipboard

[feature request] Async call signature fetching

Open morphheus opened this issue 8 years ago • 5 comments

My biggest pet peeve with call signatures is the initial delay required for loading the module containing the desired function. This delay is fairly short, ~500ms on average, maybe 1s for Scipy stuff. However, it blocks visual updates, preventing the user from seeing what they type until the call signature can be displayed.

Ideally, the module loading should be done in asynchronously.

This is something I would be willing to implement myself. How much work would be required for such a change? I'm also not sure how this would tie in with the open PR #420 .

morphheus avatar Dec 01 '17 16:12 morphheus

I don't know how easy asynchronous stuff is with Jedi. what do you think @blueyed? It's probably only possible with neovim and VIM 8+? right? I don't think Python's threading would be enough.

davidhalter avatar Dec 01 '17 23:12 davidhalter

Not sure either.

We should maybe consider to hook into the existing vim-echodoc framework? It only supports the cmdline though, and is maybe not even async itself by now - have not checked. https://github.com/Shougo/echodoc.vim

blueyed avatar Dec 03 '17 23:12 blueyed

I think https://github.com/davidhalter/jedi-vim/pull/652 addresses this.

blueyed avatar Jul 28 '18 04:07 blueyed

Just noticed that https://github.com/davidhalter/jedi-vim/pull/420 is also from me, but older - it might be obsolete, or only some parts would be still relevant.

blueyed avatar Jul 28 '18 04:07 blueyed

@morphheus If you are still willing to help here, please try/review #652 first I would say.

blueyed avatar Jul 28 '18 04:07 blueyed