Open LookRain opened 1 year ago
This doesn't segfault anymore, but it does give this error:
➜ bun --bun run index.ts
execa/lib/errname: unable to establish process.binding('uv') 1 | (function (bindingName){"use strict";if(bindingName==="constants")return @processBindingConstants;const issue={fs:3546,buffer:2020,natives:2254,uv:2891}[bindingName];if(issue)throw new Error(`process.binding("${bindingName}") is not implemented in Bun. Track the status & thumbs up the issue: https://github.com/oven-sh/bun/issues/${issue}`);@throwTypeError(`process.binding("${bindingName}") is not implemented in Bun. If that breaks something, please file an issue and include a reproducible code sample.`)})
^
error: process.binding("uv") is not implemented in Bun. Track the status & thumbs up the issue: https://github.com/oven-sh/bun/issues/2891
After granting permissions, the repro still breaks with:
➜ bun index.ts
[0.04ms] ".env"
zsh: bus error bun index.ts
and sometimes
➜ bun index.ts
[0.04ms] ".env"
zsh: segmentation fault bun index.ts
robotjs uses NAN which relies on V8 C++ API that we don't currently support.
https://github.com/octalmage/robotjs/blob/master/src/robotjs.cc
the v8 comment may still apply, but did the project go private? https://npmjs.com/package/@nut-tree/nut-js doesn't load for me and bun-debug add @nut-tree/nut-js
yields:
❯ bun-debug add @nut-tree/nut-js
[0.20ms] ".env.production"
bun add v1.1.10 (d3fdb173)
🔍 @nut-tree/nut-js [2/2]
error: package "@nut-tree/nut-js" not found registry.npmjs.org/@nut-tree%2fnut-js 404
with npm having a similar error:
❯ npm install @nut-tree/nut-js
npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/@nut-tree%2fnut-js - Not found
the website shows the same package name as OP https://nutjs.dev/docs/installation#installation
What version of Bun is running?
0.5.9
What platform is your computer?
Darwin 22.4.0 arm64 arm
What steps can reproduce the bug?
bun index.js
output:What is the expected behavior?
The code should run without error.
What do you see instead?
[1] 18395 segmentation fault bun index2.js
Additional information
demo repo: https://github.com/LookRain/bun-error-demo run
bun index2.js
to reproduceindex.js
with robotjs also has issues, but it's a different one seemingly related to module resolution.