Skip to content
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

Deprecation warning Language.build_library is deprecated. Use the new bindings instead #225

Closed
kevinlu1248 opened this issue Apr 12, 2024 · 4 comments
Labels
duplicate This issue or pull request already exists

Comments

@kevinlu1248
Copy link

I'm getting FutureWarning: Language.build_library is deprecated. Use the new bindings instead. warn("{} is deprecated. Use {} instead.".format(old, new), FutureWarning), but I'm not sure where I can find the new bindings.

@amaanq
Copy link
Member

amaanq commented Apr 12, 2024

they should be auto generated when running tree-sitter generate in the bindings/python dir. If they're one of the upstream grammars, you can install (most) of them with pip install tree-sitter-LANG

@amaanq amaanq closed this as completed Apr 12, 2024
@kevinlu1248
Copy link
Author

Where are the docs for this? @amaanq

@amaanq
Copy link
Member

amaanq commented Apr 12, 2024

did you look at the readme..? https://github.com/tree-sitter/py-tree-sitter?tab=readme-ov-file#install-languages

and if you mean for a grammar repo you've authored/are building from locally, https://tree-sitter.github.io/tree-sitter/creating-parsers mentions the files auto-generated (yes these docs are not great for now)

@kevinlu1248
Copy link
Author

Oh I see it now, I was using tree-sitter-languages so I got confused, thanks!

@ObserverOfTime ObserverOfTime added the duplicate This issue or pull request already exists label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants