Skip to content

[Panic] thread 'main' panicked at 'byte index 143 is not a char boundary; when scanning file #3543

@qarmin

Description

@qarmin

Ruff 0.0.255

command

ruff .

crash

error: `ruff` crashed. This indicates a bug in `ruff`. If you could open an issue at:

https://github.com/charliermarsh/ruff/issues/new?title=%5BPanic%5D

quoting the executed command, along with the relevant file contents and `pyproject.toml` settings, we'd be very appreciative!

thread 'main' panicked at 'byte index 143 is not a char boundary; it is inside '\u{2ecdf}' (bytes 140..144) of `"""SCons.Tool.python

Regi""assert""con"]" tinue";"sters"except"  the Python scanner for the suppor󂩢ed Python source file suffixes.

""""𮳟s"`', crates/ruff_python_ast/src/str.rs:27:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

4621382747python30.py.zip

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions