Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neovim freez when using TabNine #51

Closed
tzachar opened this issue Oct 29, 2020 · 6 comments
Closed

Neovim freez when using TabNine #51

tzachar opened this issue Oct 29, 2020 · 6 comments

Comments

@tzachar
Copy link
Contributor

tzachar commented Oct 29, 2020

Hi.

Been using TabNine for a long while.
Lately (neovim nightly), neovim started freezing, mostly when closing or switching buffers.
The main nevom process is hanged on an epoll from the TabNine client, and killing the TabNine process unfreezes everything.

Is this a know issue?
Is there a workaround?

@Shougo
Copy link
Contributor

Shougo commented Oct 29, 2020

Unfortunately, it is TabNine's problem...

@tzachar
Copy link
Contributor Author

tzachar commented Oct 29, 2020

Ok, but I think we can better interact with the process.
Dumping the request as json directly to the process's stdin and directly reading from its stdout is probably not robust.
A better option would be to use non blocking reads, like the attached patch.
I'll report if the patch helps.

p.txt

@Shougo
Copy link
Contributor

Shougo commented Oct 29, 2020

Please send the PR. I will test it.

@Shougo
Copy link
Contributor

Shougo commented Nov 10, 2020

Hm. If edit huge buffer, tabnine process is very busy.
I will add the option for it.

@Shougo
Copy link
Contributor

Shougo commented Nov 22, 2020

@tzachar The issue should be closed.

@tzachar
Copy link
Contributor Author

tzachar commented Nov 22, 2020

right.

@tzachar tzachar closed this as completed Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants