alex-pinkus / tree-sitter-swift

A tree-sitter grammar for the Swift programming language.
MIT License
137 stars 35 forks source link

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

Closed trevor-e closed 4 months ago

trevor-e commented 5 months ago

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: https://github.com/tree-sitter/node-tree-sitter/issues/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 commented 4 months ago

Fixed in #404