Exception: TreeHaver::BackendConflict
- Defined in:
- lib/tree_haver.rb
Overview
Raised when attempting to use backends that are known to conflict
This is a serious error that extends Exception (not StandardError) because it prevents a segmentation fault. The MRI backend (ruby_tree_sitter) and FFI backend cannot coexist in the same process - once MRI loads, FFI will segfault when trying to set a language on a parser.
This protection can be disabled with ‘TreeHaver.backend_protect = false` but doing so risks segfaults.