You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the example; that helped to explain what had happened. It looks like you re-parsed a tree after making the text shorter, but did not call edit on the old tree to make it consistent with the changed text. So the new syntax tree was in an inconsistent state with its text.
Previously, there was a bug where this inconsistency would cause an infinite loop when computing the text. I have a fix for this now. It's impossible to give the "right" text in this situation, but we can just truncate the text so that it doesn't infinite loop.
I'm experiencing this problem after updating to wasm.
Here is an js SSCCE to replicate it https://github.com/Razzeee/tree-sitter-bounds-error/tree/cpu-compare
The things that seem important, is that the tree must have been updated and that we compare a string with our SyntaxNode.text
I tried to remove as much as possible from the example.
The text was updated successfully, but these errors were encountered: