Nvim-treesitter troubleshooting: Difference between revisions
From wikinotes
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
= Could not create tree-sitter-html-tmp File exists = | |||
<blockquote> | |||
<syntaxhighlight lang="bash"> | |||
rm -rf /home/will/.local/share/nvim/tree-sitter-html-tmp | |||
</syntaxhighlight> | |||
</blockquote><!-- Could not create tree-sitter-html-tmp --> | |||
= /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 673 for language lua = | = /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 673 for language lua = | ||
<blockquote> | <blockquote> |
Revision as of 19:24, 4 November 2023
Could not create tree-sitter-html-tmp File exists
rm -rf /home/will/.local/share/nvim/tree-sitter-html-tmp
Simply
:TSUpdate lua
to force rebuild
Error executing lua Failed to load parser: uv_dlopen
This likely means you'll need to recompile the treesitter parsers.
I mostly encounter this while using anvim
provided by a nix environment.
This makes sense, since I likely built this extension using the system or an alternate nvim version.Uninstalling/Reinstalling (recompiling) the parser should resolve the issue.
:TSUninstall python :TSInstall pythonSee https://github.com/nvim-treesitter/nvim-treesitter/issues/1985