Nvim-treesitter troubleshooting: Difference between revisions
From wikinotes
No edit summary |
|||
Line 3: | Line 3: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
rm -rf /home/will/.local/share/nvim/tree-sitter-html-tmp | rm -rf /home/will/.local/share/nvim/tree-sitter-html-tmp | ||
# or | |||
rm -rf ~/.local/share/nvim/tree-sitter-*-tmp | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- Could not create tree-sitter-html-tmp --> | </blockquote><!-- Could not create tree-sitter-html-tmp --> |
Latest revision as of 02:13, 19 January 2024
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
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