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
The main benefit of NAPI is no need for parser recompilation when running on node 6, 8, 10, 11+
I have to use Node 8 everywhere because Atom using Node 8, and I want to use parser inside and outside of the Atom.
there is apparently a napi branch in this repo which I was able to build but I am using the query API which seems to have been added after. I will reply again if I add NAPI bindings for the query API in a fork
can confirm my fork works for my parser and query API usage, and I've made a format for NAPI-compiled languages to be unwrapped and tested with a tiny alternate NAPI-bindings for tree-sitter-sql.
This works very well for me when developing a visual studio code extension. I use prebuildify to build against electron and (I haven't tried cross-compiling yet) for multiple platforms. If someone else needs this, I can put the work into a pull request targeting the napi branch in this repository. My fork merged the tip of master as well so it is a more up-to-date version of the napi branch here.
Reacted by George Petrov, Tao Cumplido and Boris Verkhovskiy
Activity
drom commentedon Mar 2, 2019
The main benefit of NAPI is no need for parser recompilation when running on node 6, 8, 10, 11+
I have to use Node 8 everywhere because Atom using Node 8, and I want to use parser inside and outside of the Atom.
qarlosalberto commentedon May 17, 2020
I have the same problems in Visual Studio Code. It's really tedious use it in vscode :(
MichaelBelousov commentedon Mar 6, 2022
there is apparently a napi branch in this repo which I was able to build but I am using the query API which seems to have been added after. I will reply again if I add NAPI bindings for the query API in a fork
EDIT: it's not done but here in case it helps anyone: https://github.com/michaelBelousov/node-tree-sitter/tree/napi-with-query-api
MichaelBelousov commentedon Mar 8, 2022
can confirm my fork works for my parser and query API usage, and I've made a format for NAPI-compiled languages to be unwrapped and tested with a tiny alternate NAPI-bindings for tree-sitter-sql.
This works very well for me when developing a visual studio code extension. I use prebuildify to build against electron and (I haven't tried cross-compiling yet) for multiple platforms. If someone else needs this, I can put the work into a pull request targeting the napi branch in this repository. My fork merged the tip of master as well so it is a more up-to-date version of the napi branch here.