-
Notifications
You must be signed in to change notification settings - Fork 54
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
Silently crashes neovim with elvis-operator null-safety handling #134
Comments
This repo only contains the grammar, so there is very little surface for things to crash outside of maybe the external scanner. Your example seems to work fine in the web playground. Have you tried filing the issue with the devs of the Neovim extension that integrates tree-sitter-kotlin? |
@fwcd it very well could be nvim-treesitter itself. Given that it works in the web playground - I would assume you're probably correct. I will close this & post it over there. Thanks for the sanity check! |
Perhaps it was the external scanner after all, #136 fixed a segfault in the deserialization logic. Could you check whether tree-sitter-kotlin 0.3.8 fixes the issue for you? |
@fwcd I can confirm that the issue is no longer happening after running |
I'm noticing that the kotlin tree-sitter extension is crashing neovim when trying to throw errors on nullable types. I will give a very simple, reproducible example. I have confirmed that the issue is with tree-sitter-kotlin. If I uninstall kotlin from tree-sitter the issue resolves:
:TSUninstall kotlin
tree-sitter: current (v0.9.2)
tree-sitter-kotlin: current (0.3.7)
Neovim version:
Example:
Screen.Recording.2024-07-30.at.18.20.16.mov
The text was updated successfully, but these errors were encountered: