Bug 279238 - editors/neovim: after upgrade from 0.9.5_1 there'are errors/warning messages for internal commands (e.g. :help test)
Summary: editors/neovim: after upgrade from 0.9.5_1 there'are errors/warning messages ...
Status: Closed DUPLICATE of bug 279293
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Adam Weinberger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-22 21:48 UTC by Oleg Streejak
Modified: 2024-05-25 21:17 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (adamw)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Streejak 2024-05-22 21:48:14 UTC
Hello

The same release, pc and other ports. After upgrade (by portmaster) of neovim-0.9.5_1 to neovim-0.10.0 if I try to run, for example, `:help test' I got this errors/warnings:

Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: /usr/local/share/nvim/runtime/filetype.lua:35: Error executing lua: /usr/local/share/nvim/runtime/filetype.lua:36: BufReadPost Autocommands for "*"..FileType 
Autocommands for "*"..function <SNR>1_LoadFTPlugin[20]..script /usr/local/share/nvim/runtime/ftplugin/help.lua: Vim(runtime):E5113: Error while calling lua chunk: ...local/share/nvim/runti
me/lua/vim/treesitter/language.lua:107: no parser for 'vimdoc' language, see :help treesitter-parsers                                                                                       
stack traceback:                                                                                                                                                                            
        [C]: in function 'error'                                                                                                                                                            
        ...local/share/nvim/runtime/lua/vim/treesitter/language.lua:107: in function 'add'                                                                                                  
        ...l/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:111: in function 'new'                                                                                                  
        /usr/local/share/nvim/runtime/lua/vim/treesitter.lua:41: in function '_create_parser'                                                                                               
        /usr/local/share/nvim/runtime/lua/vim/treesitter.lua:108: in function 'get_parser'                                                                                                  
        /usr/local/share/nvim/runtime/lua/vim/treesitter.lua:416: in function 'start'                                                                                                       
        /usr/local/share/nvim/runtime/ftplugin/help.lua:2: in main chunk                                                                                                                    
        [C]: in function 'nvim_cmd'                                                                                                                                                         
        /usr/local/share/nvim/runtime/filetype.lua:36: in function </usr/local/share/nvim/runtime/filetype.lua:35>                                                                          
        [C]: in function 'nvim_buf_call'                                                                                                                                                    
        /usr/local/share/nvim/runtime/filetype.lua:35: in function </usr/local/share/nvim/runtime/filetype.lua:10>                                                                          
stack traceback:                                                                                                                                                                            
        [C]: in function 'nvim_cmd'                                                                                                                                                         
        /usr/local/share/nvim/runtime/filetype.lua:36: in function </usr/local/share/nvim/runtime/filetype.lua:35>                                                                          
        [C]: in function 'nvim_buf_call'                                                                                                                                                    
        /usr/local/share/nvim/runtime/filetype.lua:35: in function </usr/local/share/nvim/runtime/filetype.lua:10>                                                                          
stack traceback:                                                                                                                                                                            
        [C]: in function 'nvim_buf_call'                                                                                                                                                    
        /usr/local/share/nvim/runtime/filetype.lua:35: in function </usr/local/share/nvim/runtime/filetype.lua:10>                                                                          
Press ENTER or type command to continue                                                                                                                                                     

After pressing Enter everything runs as expected - I get the corresponding help page; If I close that window and run `:help test' again - there're no more error/warn messages, but if I ask another help page (e.g. `:help man') - at the first try there'are similar messages
Comment 1 Adam Weinberger freebsd_committer freebsd_triage 2024-05-25 01:11:33 UTC
I can confirm this.

The issue is that tree-sitter parsers are bundled separately (for example, https://github.com/neovim/tree-sitter-vimdoc). The parsers for Base, C, Lua, Markdown, Python, Query, Vim, and VimDoc need to be downloaded and extracted, then manually built and installed.

The Neovim build docs haven't been updated yet so TBH I'm not even sure yet which files are supposed to be installed, nor where.
Comment 2 Adam Weinberger freebsd_committer freebsd_triage 2024-05-25 21:17:10 UTC
Closing this PR. 279293 was submitted with a patch.

*** This bug has been marked as a duplicate of bug 279293 ***