Closed Blechlawine closed 3 months ago
this is because you're using an OLD parser version, ensure you're using the latest one, older versions are not compatible with the latest tree-sitter API.
Well updating doesn't work because it says im already using the latest version... and after reinstalling tree-sitter-html twice it still crashes
Had the same problem as @Blechlawine , sharing my solution if anyone else encounters this thread.
In short, @amaanq is right that treesitter version is old, but he didn't specify instructions. In short, you should be using the master
branch (stable). The problem ocurred for me because in the past I had locked the version of tree-sitter to 0.9.2, which is fairly old as of today.
TLDR, you want something like this (with no version tag):
return {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
branch = "master",
....
}
File where the problem occurs:
lldb output:
neovim version: 0.10.0 html-treesitter version: :TSUpdate in neovim says all parsers are up to date os: Linux x86_64 6.5.0-41-generic #41~22.04.2-Ubuntu
I've also observed the same problem with a different fault address (iirc it was 0x0)