Skip to content
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

Open
rohittiwari-dev opened this issue Mar 2, 2025 · 2 comments
Open

bug reported while adding dependencies using bun add -D #17857

rohittiwari-dev opened this issue Mar 2, 2025 · 2 comments
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

@rohittiwari-dev
Copy link

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

[0.00ms] ".env"
bun add v1.2.4 (fd9a5ea6)
============================================================
Bun v1.2.4 (fd9a5ea6) Windows x64
Windows v.win11_dt
CPU: sse42 avx avx2 avx512
Args: "C:\Users\Rohit\.bun\bin\bun.exe" "add" "-D" "@eslint-community/eslint-plugin-eslint-comments/configs" "@eslint/compat" "eslint-plugin-jsdoc" "typescript-eslint" "globals" "markdownlint" "prettier-plugin-curly" "commitizen" "@type"...
Features: dotenv 
Elapsed: 15ms | User: 15ms | Sys: 15ms
RSS: 47.64MB | Peak: 47.64MB | Commit: 93.29MB | Faults: 11810

panic(main thread): Internal assertion failure
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

 https://bun.report/1.2.4/wI1fd9a5eaAgQ+y3jG+xZm2jgDw9rlEiumnC8o9mCiz7nCuxg7F4+S45IA0eNrzzCtJLcpLzFFILC5OLSrJzM9TSEvMzCktSgUAiSkKPg

Stack Trace (bun.report)

Bun v1.2.4 (fd9a5ea) on windows x86_64 [AddCommand]

panic: Internal assertion failure

Sentry Issue: BUN-D2W

@rohittiwari-dev rohittiwari-dev added the crash An issue that could cause a crash label Mar 2, 2025
@github-actions github-actions bot added the windows An issue that is known to occur on Windows label Mar 2, 2025
@rohittiwari-dev
Copy link
Author

the package name was wrong and app crashed instead reporting error
wrong package name @eslint-community/eslint-plugin-eslint-comments/configs
it should be @eslint-community/eslint-plugin-eslint-comments

@RiskyMH RiskyMH added the bun install Something that relates to the npm-compatible client label Mar 2, 2025
@Jarred-Sumner
Copy link
Collaborator

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
Projects
None yet
Development

No branches or pull requests

3 participants