Skip to content

bug: false error when parsing large definitions #23

@glowcloud

Description

@glowcloud

Did you check existing issues?

  • I have read all the tree-sitter docs if it relates to using the parser
  • I have searched the existing issues

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

No response

Describe the bug

For large definitions, e.g. https://raw.githubusercontent.com/github/rest-api-description/refs/heads/main/descriptions/ghes-2.18/ghes-2.18.yaml an error is raised but there seems to be no actual error in the definition.

Image

Additionally, every line outside of the ones marked as an error (after line 32768) will be wrapped inside of the document:

Image

The error block ends with MISSING _bl node:

Image

Steps To Reproduce/Bad Parse Tree

Use the example definition in https://tree-sitter.github.io/tree-sitter/7-playground.html.

Expected Behavior/Parse Tree

There should be no error raised.

Repro

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions