-
Notifications
You must be signed in to change notification settings - Fork 56
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
Prebuilt for Electron and Node #106
Conversation
[node-tree-sitter](https://github.com/tree-sitter/node-tree-sitter/blob/master/package.json#L30) is built against all ABI versions, we may want to do the something for languages otherwise we don't have rebuilds for pure Nodejs.
I think the |
We had it this way originally, but our Travis CI builds were timing out, because compiling this library takes longer than compiling I would suggest maybe keeping Node 8 and 10 (not 9), and not adding Electron 1.6 and 1.7. |
@rebornix Just in case you're interested: Another potential solution to this problem would be for The only downsides I'm aware of are:
|
@maxbrunsfeld thanks for the quick response! wasm is a decent solution indeed and considering that the majority of VS Code users are using latest few versions of Electron, wasm can be supported nicely. For native module prebuilt, do you think we can move to N-API from NAN, then we don't need to worry about Node headers. If we target napi version 3 and then we can support Node.js 8.9 and above. For example, I converted node-spellchecker to napi-spellchecker, which solved this issue in another way. |
I would love to switch to NAPI. It seems like a fair amount of work, as If you're interested in opening a PR to convert it, that'd be amazing. |
sure, I'll play with both tree-sitter-ruby and node-tree-sitter to see how easy it is to do the migration and agree, having v8 dependency makes it hard. |
@maxbrunsfeld I would be open to switching to the WASM version but I'd like to do it when we are comfortable in its implementation. It would make embedding this in the extension much easier. |
node-tree-sitter is built against all ABI versions, we may want to do the something for languages otherwise we don't have rebuilds for pure Nodejs.