-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation Error in Python #265
Labels
bug
Something isn't working
Comments
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. |
benbrandt
added a commit
that referenced
this issue
Aug 11, 2024
Merged
benbrandt
added a commit
that referenced
this issue
Aug 11, 2024
@Goldziher this should now return a more helpful error (and not crash python) if encountered. Thanks for reporting! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: