Skip to content
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

Pin tree-sitter at git master #6218

Merged
merged 1 commit into from
Mar 7, 2023
Merged

Pin tree-sitter at git master #6218

merged 1 commit into from
Mar 7, 2023

Conversation

the-mikedavis
Copy link
Member

Tree-sitter has some unreleased improvements that can speed up small queries and prevent hangs due to error recovery in some parsers. This change pins tree-sitter to the latest master.

Neovim also pins tree-sitter to a commit on master.

(Distributions could decide to ignore this patch if they don't allow git revisions - there are no changes in the Helix codebase that require the new changes to tree-sitter.)

Fixes #4862
See tree-sitter/tree-sitter#2085

Tree-sitter has some unreleased improvements that can speed up small
queries and prevent hangs due to error recovery in some parsers. This
change pins tree-sitter to the latest master.

Neovim also pins tree-sitter to a commit on master.
@the-mikedavis the-mikedavis added A-tree-sitter Area: Tree-sitter S-waiting-on-review Status: Awaiting review from a maintainer. labels Mar 7, 2023
@pascalkuthe
Copy link
Member

pascalkuthe commented Mar 7, 2023

I am actually somewhat convinced that quite a few of the "helix is slow for large file xyz" issues which were TS related would be solved by this. Many grammars for nontraditional programming languages endup very flat (think markdown, or c header with comments + defines)

@archseer
Copy link
Member

archseer commented Mar 7, 2023

Time for a massive re-test :) We should keep a list of various files for benchmarking

@archseer archseer merged commit 136d116 into master Mar 7, 2023
@archseer archseer deleted the tree-sitter-master branch March 7, 2023 02:46
sagnibak pushed a commit to sagnibak/helix that referenced this pull request Mar 21, 2023
Tree-sitter has some unreleased improvements that can speed up small
queries and prevent hangs due to error recovery in some parsers. This
change pins tree-sitter to the latest master.

Neovim also pins tree-sitter to a commit on master.
wes-adams pushed a commit to wes-adams/helix that referenced this pull request Jul 4, 2023
Tree-sitter has some unreleased improvements that can speed up small
queries and prevent hangs due to error recovery in some parsers. This
change pins tree-sitter to the latest master.

Neovim also pins tree-sitter to a commit on master.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tree-sitter Area: Tree-sitter S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Freezes with 100% CPU when trying to open a specific Nix file
3 participants