Closed Moddus closed 5 months ago
You can check if it's related to tree-sitter itself or the scala grammar by renaming sample.txt
to sample.scala
and running tree-sitter parse sample.scala --timeout 1000000
in the tree-sitter-scala
folder.
Which does hang so this is (most likely) an issue with the grammar or (less likely) with tree-sitter.
@ObserverOfTime thanks for the insides much appreciated!
Hi,
I'm using tree-sitter to parse some scala code using the related grammar from: https://github.com/tree-sitter/tree-sitter-scala
Please find the related scala sample attached: sample.txt
Running the code in the snippet below cause the parse to get stuck in an infinite loop, I assume, even if I defined the timeout. Not sure how I could debug the issue or if it's related to tree-sitter itself or the scala grammar.
Thanks for you time and suggestions