Closed xfzv closed 1 month ago
@xfzv interesting. The footer is using the filetype help
for the highlights. Can you try :TSInstall vim
?
I think it uses vim
instead of vimdoc
. To be honest, I am not sure what the difference is.
Edit: vimdoc
is for help files, vim
is for vimscript.
@xfzv how are you installing Neovim, are you building from source? I was able to reproduce by manually removing vimdoc.so
in neovim/build/lib/nvim/parser/
. (I build Neovim from source).
Edit: https://neovim.io/doc/user/treesitter.html#treesitter-parsers
By default, Nvim bundles parsers for C, Lua, Vimscript, Vimdoc and Treesitter query files
I think your Neovim build may be missing the standard vimdoc
treesitter parser that is supposed to come bundled with it.
how are you installing Neovim, are you building from source?
Yes, using the ebuilds from Gentoo repository. Turns out I don't have the error anymore after switching from 9999 (pretty much Git version) to 0.9.4.
Both ebuilds are almost identical, I have no idea why the issue only occurs with the Git version.
- KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv x86 ~x64-macos"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~x64-macos"
- "${FILESDIR}/${PN}-0.9.1-cmake-darwin.patch"
- "${FILESDIR}/${PN}-0.9.0-cmake-release-type.patch"
+ "${FILESDIR}/${PN}-9999-cmake-darwin.patch"
src_configure() {
+ ln -s "${BROOT}"/usr/bin/luajit "${BUILD_DIR}"/luajit || die
Well, feel free to close. As always, thank you for your help! :+1:
Edit: I found https://github.com/neovim/neovim/issues/26379, maybe related
However, rebuilding Neovim with either -DUSE_BUNDLED=OFF
or -DUSE_BUNDLED=ON
doesn't make any difference:
src_configure() {
ln -s "${BROOT}"/usr/bin/luajit "${BUILD_DIR}"/luajit || die
# Upstream default to LTO on non-debug builds
# Let's expose it as a USE flag because upstream
# have preferences for how we should use LTO
# if we want it on (not just -flto)
# ... but allow turning it off.
# TODO: Investigate USE_BUNDLED, doesn't seem to be needed right now
local mycmakeargs=(
+ -DUSE_BUNDLED=OFF
# or
+ -DUSE_BUNDLED=ON
-DENABLE_LTO=$(usex lto)
-DPREFER_LUA=$(usex lua_single_target_luajit no "$(lua_get_version)")
-DLUA_PRG="${ELUA}"
)
cmake_src_configure
}
Edit: I found neovim/neovim#26379, maybe related
@xfzv good find! I subscribed to that issue. I'll keep this open for a little while in case anyone else has something similar 👍.
Note: I just saw this on the nightly CI build.
E5113: Error while calling lua chunk: ...ghtly/share/nvim/runtime/lua/vim/treesitter/language.lua:103: no parser for 'vimdoc' language, see :help treesitter-parsers
https://github.com/mikesmithgh/kitty-scrollback.nvim/actions/runs/7601066405
Closing this bug. https://github.com/neovim/neovim/issues/26379 is closed as completed in https://github.com/neovim/neovim/pull/28226
Thanks for the heads-up!
I guess installing tree-sitter-vimdoc
should be enough to get rid of the error. It doesn't seem to be available on Gentoo though, so I can't try.
Sorry for the bump but I'm still getting the error on both Gentoo and Arch Linux with different Neovim versions. vimdoc
parser is installed:
% cat /etc/os-release | head -n 3
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
% nvim -v
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1720049189
% pacman -Q | rg tree-sitter
tree-sitter 0.22.6-1
tree-sitter-bash 0.21.0-2
tree-sitter-c 0.21.4-1
tree-sitter-lua 0.1.0-2
tree-sitter-markdown 0.2.3-2
tree-sitter-python 0.21.0-2
tree-sitter-query 0.3.0-1
tree-sitter-vimdoc 3.0.0-1
% cat /etc/os-release | head -n 3
NAME=Gentoo
ID=gentoo
PRETTY_NAME="Gentoo Linux"
% nvim -v
NVIM v0.11.0-dev-450+g05dcda8f9-dirty
Build type: Release
LuaJIT 2.1.1716656478
% :checkhealth nvim-treesitter
:
[..]
Parser/Features H L F I J
- vimdoc ✓ . . . ✓
Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
+) multiple parsers found, only one will be used
x) errors found in the query, try to run :TSUpdate {lang} ~
Any idea?
Hey @xfzv, I'll try and see if I can play around a bit to reproduce. I'm on a Mac so I'll probably use UTM to install Gentoo. I've been a little busy of late so may take a few days to get around to it. Thanks!
% nvim -v
NVIM v0.11.0-dev-561+g7d24c4d6b-dirty
I noticed I'm now getting a different error instead:
Error in decoration provider treesitter/highlighter.win:
Error executing lua: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 2:4. Invalid node type "delimiter":
(delimiter) @markup.heading.1
^
stack traceback:
[C]: in function '_ts_parse_query'
/usr/share/nvim/runtime/lua/vim/treesitter/query.lua:252: in function 'fn'
/usr/share/nvim/runtime/lua/vim/func/_memoize.lua:58: in function 'fn'
/usr/share/nvim/runtime/lua/vim/func/_memoize.lua:58: in function 'get'
/usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:28: in function 'new'
/usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:243: in function 'get_query'
/usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:191: in function 'fn'
/usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:473: in function 'for_each_tree'
/usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:178: in function 'prepare_highlight_states'
/usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:405: in functi
Can't seem to be able to see the rest. Maybe that helps!
@xfzv thanks for the additional info! I'll try to carve out some time to investigate this. Feel free to post more info as you find it.
The issue is finally solved for me. :tada:
app-editors/neovim-9999
ebuild was updated a few days ago. Bumping dev-libs/tree-sitter-query
and dev-libs/tree-sitter-vimdoc
versions did the trick, no more errors:
- =dev-libs/tree-sitter-query-0.3*
+ =dev-libs/tree-sitter-query-0.4*
- =dev-libs/tree-sitter-vimdoc-2*
+ =dev-libs/tree-sitter-vimdoc-3*
@xfzv awesome! I actually tried installing arch on UTM yesterday and couldn't figure out how to get a desktop environment working :joy: so I'm glad it is sorted out
When entering Kitty's scrollback history with
<C-S-h>
and either: yanking, pressingi
ora
, I keep getting the following error:Then the yanked content appears in
kitty-scrollback
window and I can perform the regular actions (Execute / Paste). If toggling mappings twice withg?
, the error occurs again.Note that I can't reproduce on my Arch Linux VM with similar setup (
NVIM v0.10.0-dev-1988+g1ef60ea65-dirty
, same Kitty andkitty-scrollback.nvim
config). Only occurs on my main system with Gentoo.Could it be an issue with
dev-libs/tree-sitter
package specifically on Gentoo?Maybe this has nothing to do but I do have the
vimdoc
parser installed::checkhealth nvim-treesitter
I tried to reinstall it with
:TSInstall vimdoc
but it doesn't make any difference, the error persits.:KittyScrollbackCheckHealth
: