-
Notifications
You must be signed in to change notification settings - Fork 34
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
Vendor tree-sitter parsers #1028
Comments
Hi, I'd like to use Dolos for the R language. Since its parser is not on npm, does that mean integration with Dolos is not currently possible? I've installed |
Integration is possible, but you need to jump through some hoops unfortunately. You can install the parser using the command If you've already cloned the repository, you still need to run |
We currently use
tree-sitter
to have parsers for a broad range of programming languages. We provide a list of "supported languages" for which we guarantee that they should work, but we also claim that extra languages should be easy to install.In practice however, this has some problems: parsers make releases at a different pace, which causes them to have incompatible language versions. Some parsers are not released on npm at all (r-lib/tree-sitter-r#41).
One possible solution is providing our own package
@dodona/dolos-parsers
where we would vendor a large list of languages, giving us more control and agility. This approach is based on that of https://github.com/Wilfred/difftastic which does something similar for a Rust tool. However, sincetree-sitter
requires to be built natively for node using node-gyp, we would need to add an extra layer on top of that which will build all the parsers.The text was updated successfully, but these errors were encountered: