Nvim-treesitter troubleshooting: Difference between revisions

From wikinotes
No edit summary
Line 1: Line 1:
= /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 673 for language lua =
<blockquote>
Simply <code>:TSUpdate lua</code> to force rebuild
</blockquote><!-- /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 673 for language lua -->
= Error executing lua Failed to load parser: uv_dlopen =
= Error executing lua Failed to load parser: uv_dlopen =
<blockquote>
<blockquote>

Revision as of 02:05, 29 July 2023

/usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 673 for language lua

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 a nvim 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 python

See https://github.com/nvim-treesitter/nvim-treesitter/issues/1985