-
Notifications
You must be signed in to change notification settings - Fork 3k
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
bug reported while adding dependencies using bun add -D #17857
Labels
bun install
Something that relates to the npm-compatible client
crash
An issue that could cause a crash
windows
An issue that is known to occur on Windows
Comments
the package name was wrong and app crashed instead reporting error |
Assertion failure: Bun Debug v1.2.3 (207c6370) macOS Silicon
macOS v15.3.1
Args: "bun-debug" "add" "-D" "@eslint-community/eslint-plugin-eslint-comments/configs" "@eslint/compat" "eslint-plugin-jsdoc" "typescript-eslint" "globals" "markdownlint" "prettier-plugin-curly" "prettier-plugin-packagejson" "commitizen" "@types/bun" "@total-typescript/ts-reset" "drizzle-kit" "cspell" "@types/eslint" "@types/eslint-config-prettier" "@types/bun" "@types/color" "@eslint/js" "@eslint/compat" "@eslint-community/eslint-plugin-eslint-comments" "@commitlint/cli" "@commitlint/config-conventional" "@commitlint/cz-commitlint" "@changesets/cli" "@ianvs/prettier-plugin-sort-imports"
Elapsed: 112ms | User: 20ms | Sys: 88ms
RSS: 0.23GB | Peak: 0.23GB | Commit: 1.07GB | Faults: 4451
panic(main thread): reached unreachable code
/Users/jarred/Code/bun/src/bun.zig:3425:43: 0x1025ccab3 in assert (bun-debug)
if (comptime Environment.isDebug) unreachable;
^
/Users/jarred/Code/bun/src/install/install.zig:8350:76: 0x102818eb7 in edit (bun-debug)
defer if (comptime Environment.allow_assert) bun.assert(request.e_string != null);
^
/Users/jarred/Code/bun/src/install/install.zig:10958:47: 0x1028e24b7 in updatePackageJSONAndInstallWithManagerWithUpdates__anon_76084 (bun-debug)
try PackageJSONEditor.edit(
^
/Users/jarred/Code/bun/src/install/install.zig:10821:70: 0x1028e61e7 in updatePackageJSONAndInstallWithManagerWithUpdatesAndUpdateRequests__anon_76073 (bun-debug)
try manager.updatePackageJSONAndInstallWithManagerWithUpdates(
^
/Users/jarred/Code/bun/src/install/install.zig:10799:86: 0x1028e654f in updatePackageJSONAndInstallWithManager__anon_76040 (bun-debug)
return try updatePackageJSONAndInstallWithManagerWithUpdatesAndUpdateRequests(
^
/Users/jarred/Code/bun/src/install/install.zig:10642:90: 0x10277d533 in updatePackageJSONAndInstallAndCLI (bun-debug)
inline else => |log_level| try manager.updatePackageJSONAndInstallWithManager(ctx, original_cwd, log_level),
^
/Users/jarred/Code/bun/src/install/install.zig:10594:49: 0x10277cb9b in updatePackageJSONAndInstall (bun-debug)
return updatePackageJSONAndInstallAndCLI(ctx, subcommand, cli);
^
/Users/jarred/Code/bun/src/install/install.zig:9266:36: 0x10277dc0b in updatePackageJSONAndInstallCatchError (bun-debug)
updatePackageJSONAndInstall(ctx, subcommand) catch |err| {
^
/Users/jarred/Code/bun/src/install/install.zig:9255:50: 0x10277dd23 in add (bun-debug)
try updatePackageJSONAndInstallCatchError(ctx, .add);
^
/Users/jarred/Code/bun/src/cli/add_command.zig:7:31: 0x10277dd77 in exec (bun-debug)
try PackageManager.add(ctx);
^
fish: Job 1, 'bun-debug add -D @eslint-commun…' terminated by signal SIGTRAP (Trace or breakpoint trap) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bun install
Something that relates to the npm-compatible client
crash
An issue that could cause a crash
windows
An issue that is known to occur on Windows
How can we reproduce the crash?
Command :
bun add -D @eslint-community/eslint-plugin-eslint-comments/configs @eslint/compat eslint-plugin-jsdoc typescript-eslint globals markdownlint prettier-plugin-curly prettier-plugin-packagejson commitizen @types/bun @total-typescript/ts-reset drizzle-kit cspell @types/eslint @types/eslint-config-prettier @types/bun @types/color @eslint/js @eslint/compat @eslint-community/eslint-plugin-eslint-comments @commitlint/cli @commitlint/config-conventional @commitlint/cz-commitlint @changesets/cli @ianvs/prettier-plugin-sort-imports
Relevant log output
Stack Trace (bun.report)
Bun v1.2.4 (
fd9a5ea
) on windows x86_64 [AddCommand]panic: Internal assertion failure
js_ast.zig:3528
:asProperty
install.zig:10958
:updatePackageJSONAndInstallWithManagerWithUpdates
install.zig:10642
:updatePackageJSONAndInstallAndCLI
install.zig:10594
:updatePackageJSONAndInstall
install.zig:9266
:updatePackageJSONAndInstallCatchError
cli.zig:1823
:start
cli.zig:70
:start
main.zig:63
:main
Sentry Issue: BUN-D2W
The text was updated successfully, but these errors were encountered: