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

🐛 Message: byte index 1 is not a char boundary #4253

Closed
1 task done
YangFong opened this issue Oct 11, 2024 · 1 comment
Closed
1 task done

🐛 Message: byte index 1 is not a char boundary #4253

YangFong opened this issue Oct 11, 2024 · 1 comment
Labels
S-Needs triage Status: this issue needs to be triaged

Comments

@YangFong
Copy link

Environment information

CLI:
  Version:                      1.9.3
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           macos

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.15.1"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "pnpm/9.8.0"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Workspace:
  Open Documents:               0

What happened?

Log:

 pnpm biome check --write .
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_js_factory/src/utils.rs:34:36
Thread Name: biome::worker_10
Message: byte index 1 is not a char boundary; it is inside '' (bytes 0..3) of `丽萨`

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_js_factory/src/utils.rs:34:36
Thread Name: biome::worker_6
Message: byte index 1 is not a char boundary; it is inside '' (bytes 0..3) of `商品名称`

See the code: playground

Expected result

it should not throw an error.

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@YangFong YangFong added the S-Needs triage Status: this issue needs to be triaged label Oct 11, 2024
@Conaclos
Copy link
Member

Duplicate of #4181.
This will be fixed in the next patch release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-Needs triage Status: this issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants