-
-
Notifications
You must be signed in to change notification settings - Fork 840
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
tree-sitter executable not found #1097
Comments
Ok all solved here. It seems that yarn was causing the problem. It seems yarn v2 doesn't support global package install. I removed yarn and reinstalled treesitter with npm and checkhealth is fine. I'm still left with the question as to what the fedora tree-sitter package provides here. Its a dependency of neovim, but is it being replace by npm? |
Yarn and npm support global install. The binaries are not added to path automatically. You need to reinstall the yaml parser to get the new ABI |
I did reinstall all the parsers. But yarn v2 does not support global install. ;) See: yarn global install issue Anyway all is working fine now. But I'm still trying to figure out the relationship and/or difference between the tree-sitter rpm and npm packages. Without the npm package I will get the executable not found error although the Fedora treesitter package is installed. |
Still getting
in `checkhealth. Manual install fails:
|
@horseinthesky the system npm does usually not work with global installations. You probably also don't want to install npm packages as root. You can download download tree-sitter from here: https://github.com/tree-sitter/tree-sitter/releases or via |
Another possibility is to install nvm. It will install in your home and
you will not have this issue.
…On Mon, Mar 29, 2021, 20:01 Stephan Seitz ***@***.***> wrote:
@horseinthesky <https://github.com/horseinthesky> the system npm does
usually not work with global installations. You probably also don't want to
install npm packages as root. You can download download tree-sitter from
here: https://github.com/tree-sitter/tree-sitter/releases or via cargo
install tree-sitter or using brew, or brew install npm.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1097 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2BH3H2KQYQ67UGSDI3IIDTGDTBDANCNFSM4ZXBFHPQ>
.
|
@theHamsta @boydkelly |
It will always report this in healthcheck when it's not there. However, you will only need it for some parsers that require |
u need install tree-sitter-cli yarn global add tree-sitter-cli |
This is also true for
|
Thanks for the suggestion, which helped me got rid of that warning after I installed |
Im using
in a Fedora 34 container (neovim nightly and tree-sitter installed from copr repo)
running checkhealth I get the message:
WARNING:
tree-sitterexecutable not found (parser generator, only needed for :TSInstallFromGrammar, not required for :TSInstall)
I also have npm tree-sitter and nmp tree-sitter-cli installed.
I'm not even sure if this is redundant or not. Just that it was working recently in F33 container.
I also have a lot of these messages in checkhealth:
Any suggestions here? Thank you very much!
The text was updated successfully, but these errors were encountered: