Open LowByteFox opened 1 year ago
Also in 0.8.0 canary.
Maybe related, seems it hasn't been published in a while: https://github.com/tree-sitter/tree-sitter-typescript/issues/259
ping?
this is one of 2+ blocking reasons we cant use bun :(
As a core tree-sitter member, I also get this error. I am excited to try out using bun with tree-sitter, but I'm not that experienced in nodejs/js/ts/bun as I am in rust/c/c++
It is not an issue in tree-sitter-typescript, that's just a grammar repo. node-tree-sitter
is the repo of interest if using the node.js bindings, or tree-sitter
core for the wasm bindings
Gonna tack on that iirc bun does not play super well with v8-specific stuff, that could be the issue, I can provide anything to help debug this anyways
Looking at the symbol, I can see v8
so it has to do something with it.
btw, i would love to help get this resolved. i know that in the short term, bun has no intention to implement the v8::
apis. maybe its worth rewriting this with napi.rs so that it can be used in bun?
There is a plan to rewrite node-tree-sitter's binding using napi instead of nan, but that's a large-scale effort that has to be propagated upstream for downstream grammars will need to regenerate their bindings to leverage napi as well.
do you have an issue you can link to? wondering what the downstream grammar impacts are?
currently getting
error: Error
at load (/Users/meghandenny/src/test/node_modules/node-gyp-build/node-gyp-build.js:22:10)
at /Users/meghandenny/src/test/node_modules/tree-sitter-javascript/bindings/node/index.js:3:8
at require (1:11)
at /Users/meghandenny/src/test/index.js:2:7
Bun v1.1.30-debug+cb6ad49a3 (macOS arm64)
so im currently unable to reproduce the crash but if i edit the file to only have require("tree-sitter-javascript");
i get warning: Node-API function "napi_type_tag_object" is not implemented yet.
so thats an actionable item
What version of Bun is running?
0.7.4
What platform is your computer?
Linux 6.4.10-zen2-1-zen x86_64 unknown
What steps can reproduce the bug?
Create empty project, install both
tree-sitter
andtree-sitter-javascript
withnpm
type this into index.ts
run the file
What is the expected behavior?
When executed with node on index.cjs
(program (lexical_declaration (variable_declarator name: (identifier) value: (number))) (expression_statement (call_expression function: (member_expression object: (identifier) property: (p roperty_identifier)) arguments: (arguments (identifier)))))
What do you see instead?
Additional information
No response