Nvim-treesitter troubleshooting

From wikinotes

Could not create tree-sitter-html-tmp File exists

rm -rf /home/will/.local/share/nvim/tree-sitter-html-tmp
# or
rm -rf ~/.local/share/nvim/tree-sitter-*-tmp

/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