Goldziher / tree-sitter-language-pack

A tree-sitter language pack
Other
23 stars 6 forks source link

parsing typescript fails #5

Open iuliaturc opened 2 months ago

iuliaturc commented 2 months ago
from tree_sitter_language_pack import get_parser
parser = get_parser("typescript")

Gives:

return Language(binding)
           ^^^^^^^^^^^^^^^^^
TypeError: an integer is required

I'm using version 0.2.0:

pip freeze | grep tree-sitter-language-pack
tree-sitter-language-pack==0.2.0
iuliaturc commented 2 months ago

Same happens for "tsx":

from tree_sitter_language_pack import get_parser
parser = get_parser("tsx")

Gives:

return Language(binding)
           ^^^^^^^^^^^^^^^^^
TypeError: an integer is required