-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
neovim creates wrong directory for parsers #23261
Comments
The package does not contain such a directory, so I wonder where it is coming from |
I also got this issue. I think this package is missing dependencies added in newer versions of neovim. When building without bundled dependencies on Debian (which, msys2 also builds without bundled dependencies) the user needs to install Edit: Changed the link to where to find the treesitter parsers and to tree-sitter-lua to ones I think are more accurate |
Looking at the arch linux equivalent The |
Quick fix shell script to resolve this problem: mkdir -p /ucrt64/lib/nvim/parser
git clone https://github.com/tree-sitter/tree-sitter-c
git clone https://github.com/MunifTanjim/tree-sitter-lua
git clone https://github.com/tree-sitter-grammars/tree-sitter-markdown
git clone https://github.com/tree-sitter-grammars/tree-sitter-query
git clone https://github.com/tree-sitter-grammars/tree-sitter-vim
git clone https://github.com/neovim/tree-sitter-vimdoc
# Fix for tree-sitter-markdown
mv tree-sitter-markdown/tree-sitter-markdown/grammar.js tree-sitter-markdown/tree-sitter-markdown/src/
mv tree-sitter-markdown/tree-sitter-markdown-inline/grammar.js tree-sitter-markdown/tree-sitter-markdown-inline/src/
for dir in */
do
cd $dir
OS="unknown" mingw32-make # To get around Windows not being supported
cp *.so /ucrt64/lib/nvim/parser/
cd ..
done
# Fix for tree-sitter-markdown
cp tree-sitter-markdown/tree-sitter-markdown/*.so /ucrt64/lib/nvim/parser/
cp tree-sitter-markdown/tree-sitter-markdown-inline/*.so /ucrt64/lib/nvim/parser/
# Rename files to remove 'libtree-sitter'
cd /ucrt64/lib/nvim/parser
rename 'libtree-sitter-' '' *.so Edit: Added a rename fix Edit 2: Before running the above, make sure to install |
neovim doesn't run |
ah, in Arch there are also these packages. got it (they also use library + language grammars) |
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: