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

🐛 Panic range end index 6 out of range for slice of length 2 #4565

Closed
1 task done
qarmin opened this issue Nov 18, 2024 · 3 comments
Closed
1 task done

🐛 Panic range end index 6 out of range for slice of length 2 #4565

qarmin opened this issue Nov 18, 2024 · 3 comments
Assignees
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@qarmin
Copy link

qarmin commented Nov 18, 2024

Environment information

CLI:
  Version:                      1.9.4
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           unset
  JS_RUNTIME_NAME:              unset
  NODE_PACKAGE_MANAGER:         unset

Biome Configuration:
  Status:                       unset

Workspace:
  Open Documents:               0

What happened?

timeout -v 150 biome lint TEST___FILE.ts

crashes with

Source Location: crates/biome_js_analyze/src/lint/suspicious/no_control_characters_in_regex.rs:127:50
Thread Name: biome::worker_0
Message: range end index 6 out of range for slice of length 2

File - compressed.zip
Broken file - compressed.zip

Expected result

No crash

Code of Conduct

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

Hi! Thanks for reporting this bug! I am getting a different error:

Source Location: crates/biome_diagnostics/src/display/frame.rs:242:57
Thread Name: main
Message: byte index 3 is not a char boundary; it is inside '¡' (bytes 2..4) of `\u¡`

Could you confirm that this is the error you got?

@Conaclos Conaclos added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug and removed S-Needs triage Status: this issue needs to be triaged labels Nov 18, 2024
@Conaclos Conaclos self-assigned this Nov 18, 2024
@qarmin
Copy link
Author

qarmin commented Nov 18, 2024

I got my files mixed up and uploaded the incorrect one - I've corrected it now

@Conaclos
Copy link
Member

Fixed in 5a86f3c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

No branches or pull requests

2 participants