biome: πŸ› Big pack of js/ts files that crashes biome

Environment information

CLI:
  Version:                      0.0.0
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  BIOME_LOG_DIR:                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

Discovering running Biome servers...

What happened?

Copy of issue https://github.com/rome/tools/issues/4323

I still see multiple crashes(even in playground) when linting files(probably mostly invalid)

biome lint file.js

cause this crashes

Message: assertion failed: start <= end
  Γ— processing panicked: begin <= end (1 <= 0) when slicing `/---`
Message: byte index 1 is not a char boundary; it is inside 'Ð' (bytes 0..2) of `Ð    expo`
Message: byte index 1 is out of bounds of ``

Files - https://github.com/rome/tools/files/12458119/Broken.zip

Screenshot from 2023-09-20 09-29-53

Expected result

No crashes

Code of Conduct

  • I agree to follow Biome’s Code of Conduct

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 4
  • Comments: 17 (6 by maintainers)

Most upvoted comments

This was a collective issue on many problems, so I closed it and created several separate issues to make it easier to search for them.

Your issue, although it gives the identical panic error, is completely different from what was in the first post(that problem was already fixed)

I created other issue to track this problem - https://github.com/biomejs/biome/issues/4574

2024-10-15 update - biome.zip

@dmythro I think it is a regression introduced in 1.9.3 (#4181). I recently fixed it.