Skip to content

🐛 [v2.4.5] processing panicked: called Option::unwrap() on a None value #9314

@daniele-orlando

Description

@daniele-orlando

Environment information

Details ```bash biome rage ```

CLI:
Version: 2.4.5
Color support: true

Platform:
CPU Architecture: aarch64
OS: macos

Environment:
BIOME_LOG_PATH: unset
BIOME_LOG_PREFIX_NAME: unset
BIOME_LOG_LEVEL: unset
BIOME_LOG_KIND: unset
BIOME_CONFIG_PATH: unset
BIOME_THREADS: unset
BIOME_WATCHER_KIND: unset
BIOME_WATCHER_POLLING_INTERVAL: unset
NO_COLOR: unset
TERM: xterm-256color
JS_RUNTIME_VERSION: v25.6.1
JS_RUNTIME_NAME: node
NODE_PACKAGE_MANAGER: npm/11.9.0

Biome Configuration:
Status: Loaded successfully
Path: biome.jsonc
Formatter enabled: true
Linter enabled: true
Assist enabled: true
VCS enabled: true
HTML full support enabled: unset

Workspace:
Open Documents: 0

What happened?

RUST_BACKTRACE=1 npx -p @biomejs/biome@2.4.5 biome check "$Dir"/*

Biome encountered an unexpected error

This is a bug in Biome, not an error in your code, and we would appreciate it if you could report it to https://github.com/biomejs/biome/issues/ along with the following information to help us fixing the issue.

When opening the issue, please provide a minimal reproduction, or identify and share the file/code that triggers it. Without a way to reproduce the error, the error can't be fixed:

Source Location: /Users/runner/work/biome/biome/crates/biome_analyze/src/options.rs:27:35
Thread Name: biome::workspace_worker_0
Message: called Option::unwrap() on a None value
Stack Trace: Re-run with RUST_BACKTRACE=1 to capture the stack trace

demo.html internalError/panic INTERNAL

✖ processing panicked: called Option::unwrap() on a None value

⚠ This diagnostic was derived from an internal Biome error. Potential bug, please report it if necessary.

Reproduction

  1. Download and extract Reproduction 2.zip
  2. cd "Reproduction 2"
  3. sh ./demo.sh
  4. See the world falling apart.

If you are unable to reproduce using previous procedure, try with this:

  1. https://codesandbox.io/p/devbox/pzs46p
  2. npx -p @biomejs/biome@2.4.5 biome check demo.html demo/

NOTE: this CodeSanbox instance will be deleted after reproduction confirmation from one the maintainers.

Expected result

It should not fail.

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-Needs triageStatus: this issue needs to be triaged

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions