Repository navigation
After 0.22, how do I load a .so language? #251
|
For some reason, pip install tree-sitter-python (I need to parse python code in python) stopped working. I managed to compile the python TS language from source. Now, I tried to load it, but since 0.22 removed |
Answered by
jdugan6240
Jul 10, 2024
Replies: 1 comment 4 replies
|
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Basically, you'd need to manually do what py-tree-sitter used to do itself - that is, grabbing a pointer to the
tree_sitter_pythonfunction from the .so library file and passing that pointer to the Language constructor.Something like the following should work: