You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://github.com/astral-sh/ruff/issues/new?title=%5BLinter%20panic%5D
with the relevant file contents, the `pyproject.toml` settings, and the following stack trace, we'd be very appreciative!
panicked at 'byte index 18446744073709551615 is out of bounds of `ik0loc, ik1, ik2 = `', crates/ruff_python_parser/src/string.rs:321:30
Backtrace: 0: ruff_cli::panic::catch_unwind::{{closure}}
1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/alloc/src/boxed.rs:2007:9
2: std::panicking::rust_panic_with_hook
at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:709:13
3: std::panicking::begin_panic_handler::{{closure}}
at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:597:13
4: std::sys_common::backtrace::__rust_end_short_backtrace
at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:151:18
5: rust_begin_unwind
at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:593:5
6: core::panicking::panic_fmt
at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/panicking.rs:67:14
7: core::str::slice_error_fail_rt
8: core::str::slice_error_fail
at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/str/mod.rs:87:9
9: <alloc::string::String as core::ops::index::Index<core::ops::range::RangeTo<usize>>>::index
10: ruff_python_parser::string::StringParser::parse_fstring
11: ruff_python_parser::string::parse_strings
12: ruff_python_parser::python::__action708
13: ruff_python_parser::python::__parse__Top::__reduce
14: ruff_python_parser::parser::parse_tokens
15: ruff_python_parser::parser::parse_suite
16: ruff::checkers::tokens::check_tokens
17: ruff::linter::check_path
18: ruff::linter::lint_fix
19: ruff_cli::diagnostics::lint_path
20: rayon::iter::plumbing::bridge_producer_consumer::helper
21: ruff_cli::commands::check::check
22: ruff_cli::check
23: ruff_cli::run
24: ruff::main
25: std::sys_common::backtrace::__rust_begin_short_backtrace
26: main
27: __libc_start_call_main
at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
28: __libc_start_main_impl
at ./csu/../csu/libc-start.c:360:3
29: _start
Ruff 0.0.287 (latest changes from main branch)
file content:
error:
39205396.py.zip
The text was updated successfully, but these errors were encountered: