Open paul-gauthier opened 1 year ago
The Emacs folks debugging this in https://github.com/emacs-tree-sitter/elisp-tree-sitter/issues/253 have 3-4 people reporting that it seems to be in Markdown files that have long/wide tables. Here's a screenshot of the file that crashes for me.
There are some other example Markdown files in that issue might be helpful for debugging this. I believe the root cause is in this library.
(btw, thank you for providing this grammar, it works great most of the time and I love it!) 🙏
I have been using
tree_sitter_languages
to parse markdown. Some of my md files are causing a hard crash of theparser.parse()
call:I have isolated a sample which can trigger the crash. I binary searched the file to find a single offending line. Then, I gradually replaced all the characters with X until the crash went away.
Some notes:
*
remaining. The parser no longer crashes if you remove it._
remaining. Turning them into Xs resolves the crash.I have filed this issue with both of these projects, as I am not sure which is most likely to be able to resolve it: