emacs-tree-sitter / elisp-tree-sitter

Emacs Lisp bindings for tree-sitter
https://emacs-tree-sitter.github.io
MIT License
815 stars 73 forks source link

Crash when large file contains an ERROR node #248

Open leotrs opened 1 year ago

leotrs commented 1 year ago

When editing a large file and the tree-sitter parser yields a tree with an ERROR node, emacs freezes and, if I don't kill it soon enough, it takes up all available RAM and my entire laptop hangs and crashes.

Is this a known bug? If not, I can try to create a small repo to replicate the bug to explore further.