-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Support Astro #3746
Comments
Debug logs/Users/jarred/Build/astroy/node_modules/astro/astro.js
Launched process 74290
[SYS] read(3, 4096) = 4096 (0.032ms)
[SYS] close(3)
[JSC] boot (src/bun_js.zig:135)
[JSC] initialize (src/bun.js/bindings/bindings.zig:5703)
[fs] open(/) = fs.IterableDir{ .dir = fs.Dir{ .fd = 4 } }
[fs] readdir(4, /) = 20
[fs] open(/Users/) = fs.IterableDir{ .dir = fs.Dir{ .fd = 5 } }
[fs] readdir(5, /Users/) = 4
[fs] open(/Users/jarred/) = fs.IterableDir{ .dir = fs.Dir{ .fd = 6 } }
[fs] readdir(6, /Users/jarred/) = 170
[fs] open(/Users/jarred/Build/) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } }
[fs] readdir(7, /Users/jarred/Build/) = 373
[fs] open(/Users/jarred/Build/astroy/) = fs.IterableDir{ .dir = fs.Dir{ .fd = 8 } }
[fs] readdir(8, /Users/jarred/Build/astroy/) = 9
[fs] openat(8, /Users/jarred/Build/astroy/package.json) = 9
[fs] stat(9) = 223
[fs] pread(9, 223) = 223
[SYS] close(9)
[fs] openat(8, /Users/jarred/Build/astroy/tsconfig.json) = 9
[fs] stat(9) = 496
[fs] pread(9, 496) = 496
[SYS] close(9)
[fs] open(/Users/jarred/Build/astroy/node_modules/) = fs.IterableDir{ .dir = fs.Dir{ .fd = 9 } }
[fs] readdir(9, /Users/jarred/Build/astroy/node_modules/) = 316
[fs] open(/Users/jarred/Build/astroy/node_modules/astro/) = fs.IterableDir{ .dir = fs.Dir{ .fd = 10 } }
[fs] readdir(10, /Users/jarred/Build/astroy/node_modules/astro/) = 20
[fs] openat(10, /Users/jarred/Build/astroy/node_modules/astro/package.json) = 11
[fs] stat(11) = 7249
[fs] pread(11, 7249) = 7249
[SYS] close(11)
[SYS] close(4)
[SYS] close(5)
[SYS] close(6)
[SYS] close(7)
[SYS] close(8)
[SYS] close(9)
[SYS] close(10)
[CPP] GlobalObject__create
[CPP] JSValue__makeWithNameAndPrototype
[CPP] JSGlobalObject__vm
[CPP] VM__holdAPILock
[JSC] ensureWaker (src/bun.js/event_loop.zig:772)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[CPP] JSModuleLoader__loadAndEvaluateModule
Loader [fetch] bun:main
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
[JSC] createLatin1 (src/string.zig:324)
loader [parsing] bun:main
Loader [resolve] /Users/jarred/Build/astroy/node_modules/astro/astro.js
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [fetch] /Users/jarred/Build/astroy/node_modules/astro/astro.js
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
[JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651)
[CPP] JSGlobalObject__bunVM
[CPP] JSGlobalObject__bunVM
[JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600)
[ModuleLoader] transpileFile: /Users/jarred/Build/astroy/node_modules/astro/astro.js
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[fs] openat(0, /Users/jarred/Build/astroy/node_modules/astro/astro.js) = 6
[fs] stat(6) = 2264
[fs] pread(6, 2264) = 2264
[fs] open(/Users/jarred/Build/astroy/node_modules/ci-info) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } }
[fs] readdir(7, /Users/jarred/Build/astroy/node_modules/ci-info/) = 7
[fs] openat(7, /Users/jarred/Build/astroy/node_modules/ci-info/package.json) = 8
[fs] stat(8) = 1023
[fs] pread(8, 1023) = 1023
[SYS] close(8)
[SYS] close(7)
[JSC] createLatin1 (src/string.zig:324)
[SYS] close(6)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
loader [parsing] /Users/jarred/Build/astroy/node_modules/astro/astro.js
Loader [import] ./dist/cli/index.js
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[fs] readdir(6, /Users/jarred/Build/astroy/node_modules/astro/dist/cli/) = 15
[fs] open(/Users/jarred/Build/astroy/node_modules/astro/dist/) = fs.IterableDir{ .dir = fs.Dir{ .fd = 6 } }
[fs] readdir(6, /Users/jarred/Build/astroy/node_modules/astro/dist/) = 30
[fs] open(/Users/jarred/Build/astroy/node_modules/astro/dist/cli) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } }
[SYS] close(6)
[SYS] close(7)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [fetch] /Users/jarred/Build/astroy/node_modules/astro/dist/cli/index.js
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
[JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651)
[CPP] JSGlobalObject__bunVM
[CPP] JSGlobalObject__bunVM
[JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600)
[ModuleLoader] transpileFile: /Users/jarred/Build/astroy/node_modules/astro/dist/cli/index.js
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[fs] openat(0, /Users/jarred/Build/astroy/node_modules/astro/dist/cli/index.js) = 6
[fs] stat(6) = 4704
[fs] pread(6, 4704) = 4704
[fs] open(/Users/jarred/Build/astroy/node_modules/kleur) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } }
[fs] readdir(7, /Users/jarred/Build/astroy/node_modules/kleur/) = 9
[fs] openat(7, /Users/jarred/Build/astroy/node_modules/kleur/package.json) = 8
[fs] stat(8) = 990
[fs] pread(8, 990) = 990
[SYS] close(8)
[SYS] close(7)
[fs] open(/Users/jarred/Build/astroy/node_modules/yargs-parser) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } }
[fs] readdir(7, /Users/jarred/Build/astroy/node_modules/yargs-parser/) = 6
[fs] openat(7, /Users/jarred/Build/astroy/node_modules/yargs-parser/package.json) = 8
[fs] stat(8) = 2518
[fs] pread(8, 2518) = 2518
[SYS] close(8)
[SYS] close(7)
[fs] open(/Users/jarred/Build/astroy/node_modules/yargs-parser/build/) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } }
[fs] readdir(7, /Users/jarred/Build/astroy/node_modules/yargs-parser/build/) = 2
[fs] open(/Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib) = fs.IterableDir{ .dir = fs.Dir{ .fd = 8 } }
[fs] readdir(8, /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/) = 5
[SYS] close(7)
[SYS] close(8)
[fs] readdir(7, /Users/jarred/Build/astroy/node_modules/astro/dist/core/) = 32
[fs] open(/Users/jarred/Build/astroy/node_modules/astro/dist/core) = fs.IterableDir{ .dir = fs.Dir{ .fd = 7 } }
[SYS] close(7)
[JSC] createLatin1 (src/string.zig:324)
[SYS] close(6)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
loader [parsing] /Users/jarred/Build/astroy/node_modules/astro/dist/cli/index.js
Loader [resolve] /Users/jarred/Build/astroy/node_modules/kleur/colors.mjs
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [resolve] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/index.js
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [resolve] /Users/jarred/Build/astroy/node_modules/astro/dist/core/constants.js
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [fetch] /Users/jarred/Build/astroy/node_modules/kleur/colors.mjs
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
[JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651)
[CPP] JSGlobalObject__bunVM
[CPP] JSGlobalObject__bunVM
[JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600)
[ModuleLoader] transpileFile: /Users/jarred/Build/astroy/node_modules/kleur/colors.mjs
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[fs] openat(0, /Users/jarred/Build/astroy/node_modules/kleur/colors.mjs) = 6
[fs] stat(6) = 1645
[fs] pread(6, 1645) = 1645
[JSC] createLatin1 (src/string.zig:324)
[SYS] close(6)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [fetch] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/index.js
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
[JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651)
[CPP] JSGlobalObject__bunVM
[CPP] JSGlobalObject__bunVM
[JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600)
[ModuleLoader] transpileFile: /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/index.js
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[fs] openat(0, /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/index.js) = 6
[fs] stat(6) = 2508
[fs] pread(6, 2508) = 2508
[JSC] createLatin1 (src/string.zig:324)
[SYS] close(6)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [fetch] /Users/jarred/Build/astroy/node_modules/astro/dist/core/constants.js
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
[JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651)
[CPP] JSGlobalObject__bunVM
[CPP] JSGlobalObject__bunVM
[JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600)
[ModuleLoader] transpileFile: /Users/jarred/Build/astroy/node_modules/astro/dist/core/constants.js
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[fs] openat(0, /Users/jarred/Build/astroy/node_modules/astro/dist/core/constants.js) = 6
[fs] stat(6) = 295
[fs] pread(6, 295) = 295
[JSC] createLatin1 (src/string.zig:324)
[SYS] close(6)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
loader [parsing] /Users/jarred/Build/astroy/node_modules/kleur/colors.mjs
loader [parsing] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/index.js
Loader [resolve] node:util
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [resolve] node:path
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [resolve] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/string-utils.js
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [resolve] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/yargs-parser.js
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [resolve] node:fs
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
loader [parsing] /Users/jarred/Build/astroy/node_modules/astro/dist/core/constants.js
Loader [fetch] node:util
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
[JSC] refCountedStringWithWasNew__anon_303760 (src/bun.js/javascript.zig:1136)
[JSC] createExternal (src/string.zig:410)
[JSC] ref (src/string.zig:107)
[JSC] ref (src/string.zig:107)
Loader [fetch] node:path
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
[JSC] refCountedStringWithWasNew__anon_303760 (src/bun.js/javascript.zig:1136)
[JSC] createExternal (src/string.zig:410)
[JSC] ref (src/string.zig:107)
[JSC] ref (src/string.zig:107)
Loader [fetch] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/string-utils.js
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
[JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651)
[CPP] JSGlobalObject__bunVM
[CPP] JSGlobalObject__bunVM
[JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600)
[ModuleLoader] transpileFile: /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/string-utils.js
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[fs] openat(0, /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/string-utils.js) = 6
[fs] stat(6) = 2084
[fs] pread(6, 2084) = 2084
[JSC] createLatin1 (src/string.zig:324)
[SYS] close(6)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [fetch] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/yargs-parser.js
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
[JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651)
[CPP] JSGlobalObject__bunVM
[CPP] JSGlobalObject__bunVM
[JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600)
[ModuleLoader] transpileFile: /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/yargs-parser.js
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[fs] openat(0, /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/yargs-parser.js) = 6
[fs] stat(6) = 46827
[fs] pread(6, 46827) = 46827
[JSC] createLatin1 (src/string.zig:324)
[SYS] close(6)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [fetch] node:fs
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
[JSC] refCountedStringWithWasNew__anon_303760 (src/bun.js/javascript.zig:1136)
[JSC] createExternal (src/string.zig:410)
[JSC] ref (src/string.zig:107)
[JSC] ref (src/string.zig:107)
loader [parsing] node:util
Loader [resolve] node:util/types
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
loader [parsing] node:path
loader [parsing] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/string-utils.js
loader [parsing] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/yargs-parser.js
Loader [resolve] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/tokenize-arg-string.js
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [resolve] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/yargs-parser-types.js
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [resolve] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/string-utils.js
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
loader [parsing] node:fs
Loader [resolve] node:events
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [resolve] node:fs/promises
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [resolve] node:stream
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [link] /Users/jarred/Build/astroy/node_modules/astro/astro.js
Loader [link] bun:main
Loader [evaluate] /Users/jarred/Build/astroy/node_modules/astro/astro.js
Loader [evaluate] bun:main
Loader [fetch] node:util/types
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
Loader [fetch] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/tokenize-arg-string.js
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
[JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651)
[CPP] JSGlobalObject__bunVM
[CPP] JSGlobalObject__bunVM
[JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600)
[ModuleLoader] transpileFile: /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/tokenize-arg-string.js
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[fs] openat(0, /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/tokenize-arg-string.js) = 6
[fs] stat(6) = 1092
[fs] pread(6, 1092) = 1092
[JSC] createLatin1 (src/string.zig:324)
[SYS] close(6)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [fetch] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/yargs-parser-types.js
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
[JSC] Bun__runVirtualModule (src/bun.js/module_loader.zig:1651)
[CPP] JSGlobalObject__bunVM
[CPP] JSGlobalObject__bunVM
[JSC] Bun__transpileFile (src/bun.js/module_loader.zig:1600)
[ModuleLoader] transpileFile: /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/yargs-parser-types.js
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[fs] openat(0, /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/yargs-parser-types.js) = 6
[fs] stat(6) = 425
[fs] pread(6, 425) = 425
[JSC] createLatin1 (src/string.zig:324)
[SYS] close(6)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [fetch] node:events
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
[JSC] refCountedStringWithWasNew__anon_303760 (src/bun.js/javascript.zig:1136)
[JSC] createExternal (src/string.zig:410)
[JSC] ref (src/string.zig:107)
[JSC] ref (src/string.zig:107)
Loader [fetch] node:fs/promises
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
Loader [fetch] node:stream
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
[JSC] refCountedStringWithWasNew__anon_303760 (src/bun.js/javascript.zig:1136)
[JSC] createExternal (src/string.zig:410)
[JSC] ref (src/string.zig:107)
[JSC] ref (src/string.zig:107)
loader [parsing] node:util/types
loader [parsing] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/tokenize-arg-string.js
loader [parsing] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/yargs-parser-types.js
loader [parsing] node:events
loader [parsing] node:fs/promises
loader [parsing] node:stream
Loader [resolve] bun:events_native
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [resolve] node:string_decoder
[JSC] resolve (src/bun.js/bindings/exports.zig:69)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] ref (src/string.zig:107)
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[JSC] deref (src/string.zig:95)
[JSC] deref (src/string.zig:95)
Loader [fetch] bun:events_native
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
Loader [fetch] node:string_decoder
[JSC] Bun__fetchBuiltinModule (src/bun.js/module_loader.zig:1574)
loader [parsing] bun:events_native
loader [parsing] node:string_decoder
Loader [link] /Users/jarred/Build/astroy/node_modules/kleur/colors.mjs
Loader [link] node:util/types
Loader [link] node:util
Loader [link] node:path
Loader [link] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/string-utils.js
Loader [link] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/tokenize-arg-string.js
Loader [link] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/yargs-parser-types.js
Loader [link] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/yargs-parser.js
Loader [link] node:events
Loader [link] node:fs/promises
Loader [link] bun:events_native
Loader [link] node:string_decoder
Loader [link] node:stream
Loader [link] node:fs
Loader [link] /Users/jarred/Build/astroy/node_modules/yargs-parser/build/lib/index.js
Loader [link] /Users/jarred/Build/astroy/node_modules/astro/dist/core/constants.js
Loader [link] /Users/jarred/Build/astroy/node_modules/astro/dist/cli/index.js
Loader [evaluate] /Users/jarred/Build/astroy/node_modules/kleur/colors.mjs
[CPP] JSGlobalObject__bunVM
[CPP] JSGlobalObject__bunVM
[CPP] JSGlobalObject__bunVM
[CPP] JSGlobalObject__bunVM
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
[CPP] JSGlobalObject__bunVM
[CPP] JSGlobalObject__bunVM
[JSC] ascii (src/bun.js/bindings/bun-simdutf.zig:105)
loader [parsing] node:events
Loader [evaluate] node:events
Stop reason: EXC_BAD_ACCESS (code=1, address=0x18) Stack trace: JSC::JSModuleNamespaceObject::getOwnPropertySlotCommon(JSC::JSGlobalObject*, JSC::PropertyName, JSC::PropertySlot&) (@JSC::JSModuleNamespaceObject::getOwnPropertySlotCommon(JSC::JSGlobalObject*, JSC::PropertyName, JSC::PropertySlot&):118)
JSC::LLInt::performLLIntGetByID(JSC::BytecodeIndex, JSC::CodeBlock*, JSC::JSGlobalObject*, JSC::JSValue, JSC::Identifier const&, JSC::GetByIdModeMetadata&) (@JSC::LLInt::performLLIntGetByID(JSC::BytecodeIndex, JSC::CodeBlock*, JSC::JSGlobalObject*, JSC::JSValue, JSC::Identifier const&, JSC::GetByIdModeMetadata&):793)
llint_slow_path_get_by_id (@llint_slow_path_get_by_id:112)
llint_entry (@llint_entry:11803) |
@Jarred-Sumner , how did you make a debug log and stack trace? I tried adding a bunfig.toml with |
Using a debug build of Bun, I set I also set Also, I ran bun with lldb which lets us see the native stack trace. It will need a build of bun with debug symbols, such as bun-profile or the debug build |
And sometimes segfaults :)
|
I've noticed that extremely simple projects work in astro dev, but anything big will segfault instantly. It could be something with how we're handling strings with the fs module but I'm not entirely sure yet (in debug build of bun it always fails an assertion) Maybe we can get this working by the next release, I'm not sure how many more issues will show up after we fix the string segfaults. |
@paperdave , for some initial support, it seems like the jsx transform pr to Astro did the trick! At least for astro@2.10.4 and up |
it appears that way but are large repos like Astro's docs actually building? i was experiencing consistent segfaults that didn't make me comfortable saying "it works" |
The only issue I find in the docs repo is when I hit a page that breaks with:
because of this: const astroInfo = await cachedFetch(`https://registry.npmjs.org/${pkg}/latest`).then((res) =>
res.json()
);
const latestAstroVersion = "astroInfo.version"; but no segfaults for the the whole site works if this version number is just added manually |
I find that there is an issue with the
|
And in the ⇣4% ➜ bun --bun run test
$ vitest
SyntaxError: Import named 'Console' not found in module 'node:console'.
error: script "test" exited with code 1 (SIGHUP) |
this is what i was referring to. this happens in development sometimes too if you mess with it enough. there can also be crashes in canvaskit-wasm. maybe these are separate issues than the goal "make astro work" but i would only feel better closing this after some larger sites work |
Update bun 0.8.1: ✅ |
Astro 3.x fresh out of the gate. Doesn't seem to change the situation. Can't run the Astro repo though, because it rely on pnpm workspaces. Also astro 3 uses sharp for image optimization. |
VSCode Astro Language Server has trouble locating svelte components after bun install. I'm not sure the best place to put this, but I found that because bun doesn't install peer dependencies, the typescript package is not installed in the project, which causes false warnings in VSCode. Took me a long time to sort this out, perhaps a note could be placed on the bun astro doc. |
Add a "trustedDependencies" property containing `sharp` (the default image processing service for Astro) because it uses custom install scripts which makes it incompatible with a normal `bun install`. For security reasons, Bun **will not** run the lifecycle scripts of installed dependencies. The "trustedDependencies" property enables developers to explicitly define an allowlist of packages that are allowed to run scripts. Steps for this workaround: - add the "trustedDependencies" property to the `package.json` - `rm -rf node_modules bun.lockb` - `bun install` See these issues and PRs: - oven-sh/bun#4549 - oven-sh/bun#2073 - oven-sh/bun#3746
@naturalethic I saw PR #6396 few days ago, I'm not sure if it's shipped yet but that will probably help |
@naturalethic , do you still have issues with the language server with the latest version of bun ( |
anything left blocking this from being marked completed? all the package.json scripts from default install work as intended and pnpm workspaces are tracked elsewhere. I see mention of a |
It's quite common at this point to use vitest with Astro, so it would cause friction for big fraction of people if that's not supported. I think that's the only thing remaining. It has its own ticket tough, so it can be tracked there with this ticket closed. |
thanks! |
Astro GitHub - Website
What version of Bun is running?
0.7.0 (canary, hash 3418feb)
What platform is your computer?
Darwin 22.5.0 arm64 arm
What steps can reproduce the bug?
bun --bun x create-astro@latest
bun i
bun --bun run dev
Can also be reproduced by following the official guide here:
https://docs.astro.build/en/recipes/bun/
What is the expected behavior?
Server start
What do you see instead?
➜ bun --bun run dev $ astro dev error: script "dev" exited with code 11 (SIGSEGV)
Additional information
Blocked by
ws
instead of the bundled one vitejs/vite#13901@babel/plugin-transform-react-jsx
is imported. withastro/astro#8007The text was updated successfully, but these errors were encountered: