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
Using npm i, the tree-sitter-java module is built and then everything works. More precisely, after the installation with npm, the directory node_modules/tree-sitter-java/build is available.
What do you see instead?
After installing the dependencies with bun i, the node_modules/tree-sitter-java/build is not available, which seems to indicate that the installation has not triggered this module to be built (as it happens with npm). Notice that I have added both modules as trustedDependencies
As a result, the tests that pass with npm fail in bun:
❯ bun test
bun test v1.0.15 (b3bdf22e)
lib/tests/languages/java/import.test.ts:
error: Cannot find module "../../build/Release/tree_sitter_java_binding" from "/Users/me/mycoolproject/codegraph2/node_modules/tree-sitter-java/bindings/node/index.js"
0 pass
1 fail
Ran 1 tests across 1 files. [23.00ms]
Additional information
No response
The text was updated successfully, but these errors were encountered:
doesn't feel like a bun issue, did you actually build the binding with bun install or something like that? The tree_sitter_java_binding is built by node-gyp so you could also just run node-gyp build
when i import tree-sitter bindings and run them in bun context i get this
Yes, I have the same problem. I hope the missing flag gets implemented soon. Would love to get tree-sitter working on Bun. Still need to rely on NodeJS for that specific one.
What version of Bun is running?
1.0.15
What platform is your computer?
Darwin 23.1.0 x86_64 i386
What steps can reproduce the bug?
The easiest way to reproduce this issue is to run
bun i
with the followingpackage.json
What is the expected behavior?
Using
npm i
, thetree-sitter-java
module is built and then everything works. More precisely, after the installation withnpm
, the directorynode_modules/tree-sitter-java/build
is available.What do you see instead?
After installing the dependencies with
bun i
, thenode_modules/tree-sitter-java/build
is not available, which seems to indicate that the installation has not triggered this module to be built (as it happens withnpm
). Notice that I have added both modules astrustedDependencies
As a result, the tests that pass with
npm
fail inbun
:Additional information
No response
The text was updated successfully, but these errors were encountered: