-
-
Notifications
You must be signed in to change notification settings - Fork 35
Treesitter detach callback: Vim:Error executing lua callback: Vim:E315: ml_get: Invalid lnum: 1 #40
Comments
The |
@luozhiya Can you please try the |
@akinsho That branch does not really fix the problem, it just shoves it under the rug. There seems to be a resource leak which |
I have been able to narrow down the issue. It only happens in the current dev builds, not in 0.9. If I have two windows with a different buffer for each and I execute |
I have pinned down the problem: In Neovim 0.10 deleting a buffer emits an
If it is the former I can sit back and wait. If it is the latter I will have to handle this particular edge case like in the PR posted by the OP. I will file an issue in Neovim's repo, then we will see. |
The PR has been merged. Please test if the problem has been solved on |
Hi,
Describe the bug
When using
Bdelete
to delete a buffer, rainbow will throw an error.In my opinion rainbow needs to register a
detach
callback.Thanks.
Neovim Version
NVIM v0.10.0-dev-282+gca5a810c4
Steps to reproduce
minimal
Expected behavior
delete buffer without throw an error.
References
share/nvim/runtime/lua/vim/treesitter/languagetree.lua:877
neovim/neovim#21416
The text was updated successfully, but these errors were encountered: