You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying this parser in a new environment where I installed tree-sitter==0.22.3 on MacOS, but I kept getting the following error:
Traceback (most recent call last):
File "/.../tree-sitter-parser/tree-sitter-parser.py", line 55, in <module>
main()
File "/.../tree-sitter-parser/tree-sitter-parser.py", line 41, in main
parsers = init_parsers(script_dir)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/.../tree-sitter-parser/tree_sitter_parser/__init__.py", line 22, in init_parsers
if Language.build_library(
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'tree_sitter.Language' has no attribute 'build_library'
My attempt in another environment with tree_sitter==0.20.1 was successful. It might be a good idea to bind the tree-sitter requirement to a specific version. You can see this discussion for more information.
The text was updated successfully, but these errors were encountered:
However, there does not seem to be any replacement... We might have to rethink how we integrate with the Python binding. In the meantime, you can try the Java binding (gen.treesitter-ng).
I was trying this parser in a new environment where I installed tree-sitter==0.22.3 on MacOS, but I kept getting the following error:
My attempt in another environment with tree_sitter==0.20.1 was successful. It might be a good idea to bind the tree-sitter requirement to a specific version. You can see this discussion for more information.
The text was updated successfully, but these errors were encountered: