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
class Chassis(RobotModuleTemplate):
"""底盘信息推送控制
"""\
error
error: Panicked while linting /home/rafal/test/tmp_folder/F_NAME_1069023761531669644715.py: This indicates a bug in Ruff. If you could open an issue at:
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 crates/ruff_source_file/src/locator.rs:75:34:
byte index 70 is not a char boundary; it is inside '制' (bytes 68..71) of `class Chassis(RobotModuleTemplate):
"""底盘信息推送控制
"""\
`
Backtrace: 0: ruff_cli::panic::catch_unwind::{{closure}}
1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9
2: std::panicking::rust_panic_with_hook
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:783:13
3: std::panicking::begin_panic_handler::{{closure}}
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:657:13
4: std::sys_common::backtrace::__rust_end_short_backtrace
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:170:18
5: rust_begin_unwind
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
6: core::panicking::panic_fmt
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
7: core::str::slice_error_fail_rt
8: core::str::slice_error_fail
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/str/mod.rs:88:9
9: ruff_source_file::locator::Locator::line_start
10: ruff_python_index::indexer::Indexer::preceded_by_continuations
11: ruff_linter::rules::pycodestyle::rules::trailing_whitespace::trailing_whitespace
12: ruff_linter::checkers::physical_lines::check_physical_lines
13: ruff_linter::linter::check_path
14: ruff_linter::linter::lint_fix
15: ruff_cli::diagnostics::lint_path
16: ruff_cli::panic::catch_unwind
17: ruff_cli::commands::check::lint_path
18: rayon::iter::plumbing::bridge_producer_consumer::helper
19: ruff_cli::commands::check::check
20: ruff_cli::check
21: ruff_cli::run
22: ruff::main
23: std::sys_common::backtrace::__rust_begin_short_backtrace
24: std::rt::lang_start::{{closure}}
25: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:284:13
26: std::panicking::try::do_call
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
27: std::panicking::try
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
28: std::panic::catch_unwind
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
29: std::rt::lang_start_internal::{{closure}}
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/rt.rs:148:48
30: std::panicking::try::do_call
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
31: std::panicking::try
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
32: std::panic::catch_unwind
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
33: std::rt::lang_start_internal
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/rt.rs:148:20
34: std::rt::lang_start
35: __libc_start_call_main
at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
36: __libc_start_main_impl
at ./csu/../csu/libc-start.c:360:3
37: _start
## Summary
The logic that detects continuations assumed that tokens themselves
cannot span multiple lines. However, strings _can_ -- even single-quoted
strings.
Closes#9323.
Ruff 0.1.9 (latest changes from main branch)
file content:
error
python_compressed.zip
The text was updated successfully, but these errors were encountered: