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: crates\biome_js_formatter\src\utils\string_utils.rs:164:33
Thread Name: biome::workspace_worker_4
Message: byte index 1 is out of bounds of ``
Stack Trace:
0: <unknown>
... same until 49
49: <unknown>
50: BaseThreadInitThunk
51: RtlUserThreadStart
test.js internalError/panic INTERNAL ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× processing panicked: byte index 1 is out of bounds of ``
! This diagnostic was derived from an internal Biome error. Potential bug, please report it if necessary.
Environment information
Details
What happened?
Try to fix a file that has
'use strict';for example save this as test.js:
`biome check` output
Expected result
should not panic
Code of Conduct