No mention of treesitter parsers as dependencies when Nvim is built with USE_BUNDLED=OFF
Problem
No mention of treesitter parsers as dependencies when Nvim is built with USE_BUNDLED=OFF
Steps to reproduce
- Build Nvim with
make USE_BUNDLED=OFF - Install Nvim with
sudo make install USE_BUNDLED=OFF - Run
nvim --clean - Run
:h -
E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:98: no parser for 'vimdoc' language, see :help treesitter-parsers
Expected behavior
Either of the following two:
- No error when opening a help file when Nvim is built with
USE_BUNDLED=OFFand vimdoc parser is not available - A mention of required treesitter parsers in the build instructions of Nvim (e.g https://github.com/neovim/neovim/wiki/Building-Neovim#how-to-build-without-bundled-dependencies)
Neovim version (nvim -v)
v0.10.0-dev-1746+g5651c1ff2
Vim (not Nvim) behaves the same?
N/A
Operating system/version
Arch Linux
Terminal name/version
kitty 0.31.0
$TERM environment variable
xterm-kitty
Installation
See above
No error when opening a help file when Nvim is built with USE_BUNDLED=OFF and vimdoc parser is not available
There's no good way to transfer this information to the main build because it's supposed to be separate. The best hack is probably just checking if parsers exists in bundled location in main script. Even that is undesirable as that propagates the "different builds" think from vim.
The second is more reasonable IMO.
Related: https://github.com/neovim/neovim/pull/22923
It can also be just a pcall() :)
Oh, you mean handling it in runtime? Hmm, yeah, could work I guess.
No. Treesitter parsers are required, and an installation without them is broken, same as the Lua runtime. I don't want to paper over a broken installation; this will only lead to messy bug reports.
We need to decide how to handle missing runtime dependencies (even when they now include binaries). Currently, that is checkhealth. Clear messaging in our build instructions also never hurts.
It appears that the neovim-ppa/unstable build has this issue, too. Just in case anyone else is seeing the same, I installed https://github.com/nvim-treesitter/nvim-treesitter and included vimdoc in "ensure_installed" and that seemed to address it.