Big pack of js/ts files that crashes rome
Author: qarminCreated Mar 26, 2023Updated Aug 28, 2023
LabelsS-Bug: confirmed
Environment information
Rome 763fd98ad9072a17ca2ef7ed29c6a164eedc8a6b
CLI:
Version: 0.0.0
Color support: true
Platform:
CPU Architecture: x86_64
OS: linux
Environment:
ROME_LOG_DIR: unset
NO_COLOR: unset
TERM: "xterm-256color"
JS_RUNTIME_VERSION: unset
JS_RUNTIME_NAME: unset
NODE_PACKAGE_MANAGER: unset
Rome Configuration:
Status: unset
Workspace:
Open Documents: 0
Checking multiple broken javascript/typescript files(similar to https://github.com/charliermarsh/ruff/issues/3721) with rome check file, crashes app in several ways e.g.
Message: byte index 38 is not a char boundary; it is inside '\\\u{ac257}' (bytes 35..39) of `/ Copyright (c) 212 EcmInternatonal. "true" All rights eserved.`Source Location: /home/rafal/.cargo/git/checkouts/tools-29b78d514589893f/763fd98/crates/rome_text_size/src/range.rs:48:9
Thread Name: rome::console
Message: assertion failed: start <= endSource Location: /home/rafal/.cargo/git/checkouts/tools-29b78d514589893f/763fd98/crates/rome_js_semantic/src/semantic_model/model.rs:332:19Source Location: crates/rome_js_analyze/src/analyzers/complexity/no_multiple_spaces_in_regular_expression_literals.rs:129:41
Thread Name: rome::worker_1
Message: byte index 2 is not a char boundary; it is inside '\\\u{b8a08}' (bytes 1..5) of `/ from this software without specific prior written permission.`List of files(I can easily produce more errors if needed):
- 763fd98ad9072a17ca2ef7ed29c6a164eedc8a6b - 335 files - Rome_763fd9_335.zip
- e68674ccf43c4fb940b12fb5ad8ce19eda86c545 - 2103 files - Broken_e68674c_2103.zip
Most of files is minimized, so contains max few lines of code
Source: rome/tools