-
Notifications
You must be signed in to change notification settings - Fork 43
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
Include generated files in repo #149
Comments
Nvim seems to do ok with things as they are, and this is pretty clearly the direction that the tree-sitter folks want to take things. I’d rather invest the effort in getting Helix to a state where it can handle this. Is there a good explanation somewhere of what’s still needed for that? |
As a side note, nvim-treesitter’s ability to regenerate parsers from source also lets them take advantage of query optimizations that require an ABI bump, which I implemented in tree-sitter specifically to benefit Swift. If we pregenerated the parser files we wouldn’t be able to take advantage of those until every consumer was on ABI 14. |
For Helix to not depend on generated parser files checked into source: helix-editor/helix#1970 Generating the parser files with On the one hand I detest checking in generated |
That’s a fair point. To me the biggest concern with the generated files is that they make pull requests more likely to have merge conflicts. Could we maybe compromise by having a separate branch with generated source? GitHub Actions could trigger an automatic checkin every time we publish a new release. That way the diffs would stay clean and there wouldn’t be too many new large deltas in the repo, but the system would still look like a git-based tree-sitter parser. |
All right, this has now been done! The |
- remove and ignore parser artifacts - update installation for neovim references: alex-pinkus/tree-sitter-swift#149 DerekStride/tree-sitter-sql#100 tree-sitter-perl/tree-sitter-perl#26
I understand your reasons for not including them, however, lots of editors configure tree-sitters by git url, which of course isn't possible if it's not in the repo. Examples being Helix (issue) or Nvim, both supporting local files too, but that of course is an extra step to take and keep up to date and can't be included in default configurations.
The text was updated successfully, but these errors were encountered: