You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing neovim using pacman -S mingw-w64-ucrt-x86_64-neovim, whenever I tried to open a help page with :h, I would get this error message:
Error detected while processing BufNewFile Autocommands for "*":
Error executing lua callback: ...pData\Local\msys2\ucrt64\share\nvim\runtime\filetype.lua:35: Error executing lua: ...pData\Local\msys2\ucrt64\share\nvim\runt
ime\filetype.lua:36: BufNewFile Autocommands for "*"..FileType Autocommands for "*"..function <SNR>1_LoadFTPlugin[20]..script C:\Users\attal\AppData\Local\msy
s2\ucrt64\share\nvim\runtime\ftplugin\lua.lua: Vim(runtime):E5113: Error while calling lua chunk: ...crt64\share\nvim\runtime/lua/vim/treesitter/language.lua:
107: no parser for 'lua' language, see :help treesitter-parsers
stack traceback:
[C]: in function 'error'
...crt64\share\nvim\runtime/lua/vim/treesitter/language.lua:107: in function 'add'
...4\share\nvim\runtime/lua/vim/treesitter/languagetree.lua:111: in function 'new'
...l\msys2\ucrt64\share\nvim\runtime/lua/vim/treesitter.lua:41: in function '_create_parser'
...l\msys2\ucrt64\share\nvim\runtime/lua/vim/treesitter.lua:108: in function 'get_parser'
...l\msys2\ucrt64\share\nvim\runtime/lua/vim/treesitter.lua:416: in function 'start'
...a\Local\msys2\ucrt64\share\nvim\runtime\ftplugin\lua.lua:2: in main chunk
[C]: in function 'nvim_cmd'
...pData\Local\msys2\ucrt64\share\nvim\runtime\filetype.lua:36: in function <...pData\Local\msys2\ucrt64\share\nvim\runtime\filetype.lua:35>
[C]: in function 'nvim_buf_call'
...pData\Local\msys2\ucrt64\share\nvim\runtime\filetype.lua:35: in function <...pData\Local\msys2\ucrt64\share\nvim\runtime\filetype.lua:10>
stack traceback:
[C]: in function 'nvim_cmd'
...pData\Local\msys2\ucrt64\share\nvim\runtime\filetype.lua:36: in function <...pData\Local\msys2\ucrt64\share\nvim\runtime\filetype.lua:35>
[C]: in function 'nvim_buf_call'
...pData\Local\msys2\ucrt64\share\nvim\runtime\filetype.lua:35: in function <...pData\Local\msys2\ucrt64\share\nvim\runtime\filetype.lua:10>
stack traceback:
[C]: in function 'nvim_buf_call'
...pData\Local\msys2\ucrt64\share\nvim\runtime\filetype.lua:35: in function <...pData\Local\msys2\ucrt64\share\nvim\runtime\filetype.lua:10>
Upon further inspection, I found that the package is downloading a directory parsers instead of parser at /ucrt64/share/nvim/runtime, as indicated by the nvim documentation for treesitter-parsers:
Parsers are searched for as parser/{lang}.* in any 'runtimepath' directory.
If multiple parsers for the same language are found, the first one is used.
(NOTE: This typically implies the priority "user config > plugins > bundled".)
Renaming the directory to parser seemed to fix the issue.
Expected behavior
Using pacman -S mingw-w64-ucrt-x86_64-neovim to install neovim should create a parser directory in the runtime directory
Actual behavior
Using pacman -S mingw-w64-ucrt-x86_64-neovim creates a directory parsers instead of parser in the runtime directory
Description / Steps to reproduce the issue
After installing neovim using
pacman -S mingw-w64-ucrt-x86_64-neovim
, whenever I tried to open a help page with:h
, I would get this error message:Upon further inspection, I found that the package is downloading a directory
parsers
instead ofparser
at/ucrt64/share/nvim/runtime
, as indicated by the nvim documentation for treesitter-parsers:Renaming the directory to
parser
seemed to fix the issue.Expected behavior
Using
pacman -S mingw-w64-ucrt-x86_64-neovim
to install neovim should create aparser
directory in theruntime
directoryActual behavior
Using
pacman -S mingw-w64-ucrt-x86_64-neovim
creates a directoryparsers
instead ofparser
in theruntime
directoryVerification
Windows Version
MINGW64_NT-10.0-22000
MINGW environments affected
Are you willing to submit a PR?
Yes
The text was updated successfully, but these errors were encountered: