Closed Goldziher closed 3 weeks ago
Hi @Goldziher thanks for reporting. I'll give it a thought, I think I'd rather give a better error message because the language is supposed to be instantiated, but the error case is admittedly quite severe.
@Goldziher this should now return a more helpful error (and not crash python) if encountered. Thanks for reporting!
Describe the bug Hi, I try to split code in python and I get a segmentation fault. I tried several tree-sitter libraries, all return segmentation error. I identified the issue - it happens if language is not instantiated.
This fails - because
language
is not called ->language()
.This works:
If you are open to some adjustments of the python bindings, I can improve the typing and ensure this issue is handled by allowing a
Language
instance to be passed in.