CLI:
Version: 1.8.0
Color support: true
Platform:
CPU Architecture: x86_64
OS: linux
Environment:
BIOME_LOG_DIR: unset
NO_COLOR: unset
TERM: "foot"
JS_RUNTIME_VERSION: "v22.2.0"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: "npm/10.8.1"
Biome Configuration:
Status: unset
Workspace:
Open Documents: 0
This is an error I extracted from #342
Here a reproduction:
β― cat ./1058S11.8.3_A107522.js
if (eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\uπͺ²029>\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20290") !== true) {
β― npx biome lint ./1058S11.8.3_A107522.js
./1058S11.8.3_A107522.js:1:61 parse ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β invalid digits after unicode escape sequence
> 1 β if (eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\uπͺ²029>\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20290") !== true) {
β 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:
Source Location: crates/biome_diagnostics/src/display/frame.rs:242:57
Thread Name: main
Message: byte index 62 is not a char boundary; it is inside 'πͺ²' (bytes 61..65) of `if (eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\uπͺ²029>\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20290") !== true) {`
Biome should not crash
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too