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

"Invalid language object" on node-tree-sitter@0.21.1 #400

Closed
trevor-e opened this issue Apr 3, 2024 · 1 comment
Closed

"Invalid language object" on node-tree-sitter@0.21.1 #400

trevor-e opened this issue Apr 3, 2024 · 1 comment

Comments

@trevor-e
Copy link
Contributor

trevor-e commented Apr 3, 2024

Hi there. I tried testing this library with the latest version of node-tree-sitter (0.21.1) and I'm getting an error Invalid language object when calling parser.setLanguage(Swift).

Related issue: tree-sitter/node-tree-sitter#193

It looks like the 0.21.1 node package made some breaking changes by switching over to the napi interface for running native code, which means this repo needs to regenerate the bindings.

I tried running tree-sitter generate on the repo in a fork but was running into some strange missing symbol errors that I haven't been able to figure out yet. Happy to open a pull request with those changes but it was literally just me running the command.

@alex-pinkus
Copy link
Owner

Fixed in #404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants