Bug 1225887

Summary: Neovim 0.10 lacks treesitter-vimdoc dependency
Product: [openSUSE] openSUSE Tumbleweed Reporter: Alan Rempel <alan.rempel>
Component: OtherAssignee: Ronan Chagas <ronisbr>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: fawz, ronisbr, rrahl0, suse_idp, tommirossidude
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Alan Rempel 2024-06-04 01:57:51 UTC
Neovim seems to be missing the treesitter parser for vim help files. When viewing a help file, it displays an error message saying so. I believe this parser may be a new dependency for neovim 0.10.

Steps to reproduce:

1. Open neovim
2. type ":help" and press enter

Expected behaviour:

The main help file displays without any errors messages

Actual behaviour:

An error message appears complaining that the treesitter parser for the "vimdoc" language (i.e. vim help files) is not installed. (The error message can be dismissed by pressing enter; the help file is highlighted with the legacy syntax highlighting.)

Full text of the error message:

Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: /usr/share/nvim/runtime/filetype.lua:35: Error executing lua: /usr/share/nvim/runtime/filetype.lua:36: BufReadPost Autocommands for "*"..FileType Autocommands for "*"..function <SNR>1_LoadFTPlugin[20]..script /usr/share/nvim/runtime/ftplugin/help.lua: Vim(runtime):E5113: Error while calling lua chunk: /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:107: no parser for 'vimdoc' language, see :help treesitter-parsers
Comment 1 Christian Ludwig 2024-06-18 14:52:14 UTC
A lot of (runtime-)dependencies are missing (not only tree-sitter-vimdoc):

The dependencies for `USE_BUNDLED=OFF` (like it's done for Tumbleweed) can be found in neovim's Build.md: https://github.com/neovim/neovim/blob/master/BUILD.md#how-to-build-without-bundled-dependencies

Currently: libuv libluv libvterm luajit lua-lpeg lua-mpack msgpack-c tree-sitter tree-sitter-bash tree-sitter-c tree-sitter-lua tree-sitter-markdown tree-sitter-python tree-sitter-query tree-sitter-vim tree-sitter-vimdoc unibilium
Comment 2 Richard Rahl 2024-06-22 03:51:27 UTC
So I sat myself down, to see if I can fix neovim. Having said that, I am at my end of my expertise, as I get an error like this:
```
Error in decoration provider treesitter/highlighter.win:                                                                                                                                                                                      
Error executing lua: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 10:3. Impossible pattern:                                                                                                                       
  "~" @markup.heading.4                                                                                                                                                                                                                       
  ^                                                                                                                                                                                                                                           
                                                                                                                                                                                                                                              
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:240: in function 'get_query'                                                                                                                                               
        /usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:188: in function 'fn'                                                                                                                                                      
        /usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:491: in function 'for_each_tree'                                                                                                                                          
        /usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:175: in function 'prepare_highlight_states'                                                                                                                                
        /usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:398: in function </usr/share/nvim                   
```

when executing :h

this seems to be openSUSE specific, as no other distro has this. on top of that, I asked for help in their support channel and nobody got a clue what could cause this.

if somebody wants to have a look, I have the packages here https://build.opensuse.org/project/show/home:rrahl0:upgrades and the neovim package https://build.opensuse.org/package/show/home:rrahl0:upgrades/neovim
Comment 3 Christian Ludwig 2024-06-27 13:15:34 UTC
After https://build.opensuse.org/request/show/1182975  all needed runtime-dependencies are now included.