-
Notifications
You must be signed in to change notification settings - Fork 40
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
using system tree-sitter #274
Comments
Nimterop actually compiles in the tree-sitter library during install. It does not need tree-sitter when generating a binding. |
Yes, it downloads and builds tree-sitter when nimterop is compiled. This is a problem if you want to compile things from sources without internet access. It also makes it impossible to package nimterop (or any derived library) on most linux distributions, since they want to mirror all source code and prohibit network access during builds). Indeed fedora has pretty much given up on packaging nim apps for this reason (along with others) |
I'm open to a PR that adds tree-sitter as a sub-module instead of being pulled via nimterop itself. |
that should be easy enough, hopefully I'll have time to make it happen soon. |
I'm also interested in using tree-sitter with nim for another project, it would be nice to turn the wrapping/binding part into an independent project available in nimble packages. It would also be nice to see it available into tree-sitter github readme under "bindings" |
There is https://github.com/genotrance/nimtreesitter which is in Nimble. I don't know if it still works though. |
Is it possible to tell nimterop to use the system version of tree-sitter and avoid connecting to the internet when it first goes to generate a binding?
The text was updated successfully, but these errors were encountered: