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

bug: Assertion failed: (size == length), function deserialize, file src/scanner.c, line 160. #269

Open
2 tasks done
will opened this issue Oct 14, 2024 · 0 comments
Open
2 tasks done
Labels

Comments

@will
Copy link

will commented Oct 14, 2024

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 of tree-sitter-c

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

I'm not using the cli

Describe the bug

I'm using the 0.23.0 release (commit 66579f) of the ruby treesitter parser. Found this with neovim and first tried reporting it there neovim/neovim#30811 . I put a lldb backtrace there if that's helpful at all.

Steps To Reproduce/Bad Parse Tree

load a file with the contents in Repro section, it will crash with bug: Assertion failed: (size == length), function deserialize, file src/scanner.c, line 160.

Expected Behavior/Parse Tree

not crash

Repro

<<~"BASH
  if the string inside is too short it doesn't crash
  but I haven't found exactly how many chars is the problem

  if the string inside is too short it doesn't crash
  but I haven't found exactly how many chars is the problem

  it needs this line
BASH
@will will added the bug label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant