tabnine-vscode icon indicating copy to clipboard operation
tabnine-vscode copied to clipboard

TabNine causes typing to be unreasonably slow when used with the Vim extension

Open evaera opened this issue 3 years ago • 5 comments

  • OS version: Win 10
  • Editor version: 1.51.1
  • Programming language: Rust
  • TabNine extension version: 3.1.10

Issue Details:

When used with the VSCodeVim extension, TabNine causes keystrokes to appear unreasonably slowly. This is probably because the Vim extension isn't able to process the keystroke until TabNine finishes its thinking.

This gets better on low power mode, but seemingly makes results worse?

It would be ideal if you could somehow let the other extension process keystrokes before TabNine. If not, maybe an option to process suggestions in a non-blocking way? Or an option to throttle running TabNine to a max frequency?

evaera avatar Nov 17 '20 00:11 evaera

Hey @evaera thanks for reaching out to us about that!

I'm truly sorry for the late response, and would love to help you get into the bottom of this.

VSCode's suggestions mechanism is collecting suggestions from numerous plugins on every keystroke, and is waiting for all to finish before providing suggestions. To make sure it does not block this mechanism, Tabnine has a timeout after 1 second if it fails to gather a response from the sidecar binary.

At any step Tabnine should not interfere with the keystrokes and make it appear slow. So I'll need more information to solve this issue. Could you provide (and I know this is a big request from you) a video with and without Tabnine?

Waiting for your response, Boaz.

boaz-codota avatar Nov 29 '20 14:11 boaz-codota

With TabNine: https://i.eryn.io/2049/t6w76fxF.mp4

Without TabNine: https://i.eryn.io/2049/kd7kt5QG.mp4

evaera avatar Nov 30 '20 22:11 evaera

I'm experiencing the same without using the Vim extension. Can easily reproduce by just holding down the space bar and instead of it continuously repeating spaces, it starts ok, but then hangs (until I let go of the spacebar) and my PC fans go nuts.

eamodio avatar Jan 14 '21 07:01 eamodio

If you met the problem that after thinking, the cursor of vscode-vim and tabnine were at the different place?

yanke1311 avatar Sep 07 '21 06:09 yanke1311

For me the problem with VSCodeVim and this extension, is that in insert mode, it does complete, but it does not go to the end of the inserted statement.

alber70g avatar May 09 '22 12:05 alber70g

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 13 '22 16:10 stale[bot]