oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.01k stars 2.66k forks source link

typescript tree sitter - dyld missing symbol #6311

Closed archywillhe closed 1 month ago

archywillhe commented 11 months ago

What version of Bun is running?

1.0.2

What platform is your computer?

Darwin 22.4.0 x86_64 i386

What steps can reproduce the bug?

bun install tree-sitter-typescript

and then use it in a file and bun run, I got:

dyld[29262]: missing symbol called

details:

dyld[29670]: <tree_sitter_typescript_binding.node/bind#0> -> 0x7ff8544b2c08 (libsystem_c.dylib/__DefaultRuneLocale)
dyld[29670]: <tree_sitter_typescript_binding.node/bind#1> -> 0x7ff8544bf970 (libdyld.dylib/dyld_stub_binder)
dyld[29670]: <tree_sitter_typescript_binding.node/bind#2> -> 0x7ff812b5b8e4 (libdyld.dylib/__ZN2v811HandleScope12CreateHandleEPNS_8internal7IsolateEm)
dyld[29670]: <tree_sitter_typescript_binding.node/bind#3> -> 0x7ff812b5b8e4 (libdyld.dylib/__ZN2v811HandleScopeC1EPNS_7IsolateE)
dyld[29670]: <tree_sitter_typescript_binding.node/bind#4> -> 0x7ff812b5b8e4 (libdyld.dylib/__ZN2v811HandleScopeD1Ev)
dyld[29670]: <t
....
dyld[29670]: fixup: *0x0001172AC0B8 = 0x7FF812B5B8E4 <tree_sitter_typescript_binding.node/bind#25>
dyld[29670]: fixup: *0x0001172AC0C0 = 0x7FF812B5B8E4 <tree_sitter_typescript_binding.node/bind#26>
dyld[29670]: fixup: *0x0001172AC0C8 = 0x7FF812B5B8E4 <tree_sitter_typescript_binding.node/bind#27>
dyld[29670]: fixup: *0x0001172AC0D0 = 0x7FF812A107AF <tree_sitter_typescript_binding.node/bind#28>
dyld[29670]: fixup: *0x0001172AC0D8 = 0x7FF812B5B8E4 <tree_sitter_typescript_binding.node/bind#29>
dyld[29670]: missing symbol called
fish: Process 29670, 'bun' from job 1, 'DYLD_PRINT_BINDINGS=1 bun run o…' terminated by signal SIGKILL (Forced quit)

What is the expected behavior?

should just run

What do you see instead?

dyld error

Additional information

No response

archywillhe commented 11 months ago

works fine with node

Electroid commented 11 months ago

Might be related to #4959

Electroid commented 10 months ago

Duplicate of #4959

Jarred-Sumner commented 9 months ago

This was not fixed by https://github.com/oven-sh/bun/issues/4959 and it is not a duplicate, as it is a missing symbol error and not related to the existence of .node files

AmauryD commented 8 months ago

Don't know if it is related, but got the same kind of error trying to use the testcontainers library with bun 1.0.19 on Macbook Pro.

Here is the repro: https://github.com/AmauryD/bun-test-containers-error

Jarred-Sumner commented 1 month ago

Duplicate of #4290

Jarred-Sumner commented 1 month ago

Bun doesn't support V8 C++ APIs yet.

@190n is actively working on supporting V8 C++ APIs in Bun

Please follow along in #4290. It will be fixed