andersevenrud / nvim_context_vt

Virtual text context for neovim treesitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting error when viewing help doc

miversen33 opened this issue · comments

Just started seeing this today, I am getting an error when viewing help anything

Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: /tmp/.mount_nvimNISZ7o/usr/share/nvim/runtime/filetype.lua:21: Error executing lua: /tmp/.mount_nvimNISZ7o/usr/share/nvim/runtime/filetype.lua:22: Vim(append):Error executing lua ca
llback: ...SZ7o/usr/share/nvim/runtime/lua/vim/treesitter/query.lua:219: query: invalid node type at position 14 for language help
stack traceback:
        [C]: in function '_ts_parse_query'
        ...SZ7o/usr/share/nvim/runtime/lua/vim/treesitter/query.lua:219: in function 'get_query'
        ...r/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:52: in function 'new'
        ...nvimNISZ7o/usr/share/nvim/runtime/lua/vim/treesitter.lua:45: in function '_create_parser'
        ...nvimNISZ7o/usr/share/nvim/runtime/lua/vim/treesitter.lua:96: in function 'get_parser'
        ...nvimNISZ7o/usr/share/nvim/runtime/lua/vim/treesitter.lua:330: in function 'start'
        ...m/lazy/nvim-treesitter/lua/nvim-treesitter/highlight.lua:19: in function 'attach'
        ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:505: in function 'attach_module'
        ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:528: in function 'reattach_module'
        ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:131: in function <...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:130>
        [C]: in function 'nvim_cmd'
        /tmp/.mount_nvimNISZ7o/usr/share/nvim/runtime/filetype.lua:22: in function </tmp/.mount_nvimNISZ7o/usr/share/nvim/runtime/filetype.lua:21>
        [C]: in function 'nvim_buf_call'
        /tmp/.mount_nvimNISZ7o/usr/share/nvim/runtime/filetype.lua:21: in function </tmp/.mount_nvimNISZ7o/usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_cmd'
        /tmp/.mount_nvimNISZ7o/usr/share/nvim/runtime/filetype.lua:22: in function </tmp/.mount_nvimNISZ7o/usr/share/nvim/runtime/filetype.lua:21>
        [C]: in function 'nvim_buf_call'
        /tmp/.mount_nvimNISZ7o/usr/share/nvim/runtime/filetype.lua:21: in function </tmp/.mount_nvimNISZ7o/usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_buf_call'
        /tmp/.mount_nvimNISZ7o/usr/share/nvim/runtime/filetype.lua:21: in function </tmp/.mount_nvimNISZ7o/usr/share/nvim/runtime/filetype.lua:10>

I would guess this error occurs on any buffer that doesn't have a treesitter language associated with it.

Minimal config

require('nvim_context_vt').setup({disable_ft = {"help"})

System details (I don't know if this is helpful but better to have too much info than not enough)

$ nvim --version
NVIM v0.9.0-dev-213+gcc5b7368d
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-10 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/__w/neovim/neovim/build/cmake.config -I/__w/neovim/neovim/src -I/__w/neovim/neovim/.deps/usr/include -I/usr/include -I/__w/neovim/neovim/build/src/nvim/auto -I/__w/neovim/neovim/build/include
Compiled by root@56f30731e0be

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/__w/neovim/neovim/build/nvim.AppDir/usr/share/nvim"

Run :checkhealth for more info

Current revision in use

$ git log -1
commit e592a9142fbfe0878ce886cd0d745963604c61d2

Not really sure what I am doing wrong, this is a new issue I haven't seen before with nvim_context_vt. Ideas?

Thanks for reporting!

Currently stuck at work, but I'll try to reproduce this ASAP and get back to you.

Let me know if I can provide any other info :)

I use this on my neovim instance at work, and viewing help seems to work fine. This happens in a clean session and just doing :help right ?

However, I haven't updated this setup in quite a while, and I don't think I wanna touch it in case something breaks in the middle of work 😂

I'll try on another machine, just to be sure I am not insane 😂

Edit:

It works on another machine which is running the same version of neovim and nvim_context_vt. Consider me crazy lol. Closing this out :)