Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruff crashed when checking code in jupyter notebook. It failed to handle non-ascii characters correcly. #9575

Closed
LENAX opened this issue Jan 19, 2024 · 2 comments
Labels
question Asking for support or clarification

Comments

@LENAX
Copy link

LENAX commented Jan 19, 2024

Ruff: Lint failed (
error: Ruff crashed. If you could open an issue at:

https://github.com/astral-sh/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 /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1\library\core\src\str\mod.rs:660:13:
byte index 2 is not a char boundary; it is inside '且' (bytes 0..3) of 且类型为枚举SupportType中的类型
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
)

image

@MichaReiser
Copy link
Member

Hy @LENAX I'm sorry you ran into this issue. What ruff version are you using? It should be fixed in ruff 0.1.9 or newer (see #9146)

@charliermarsh charliermarsh added the question Asking for support or clarification label Jan 19, 2024
@LENAX
Copy link
Author

LENAX commented Jan 24, 2024

I was using version 0.1.8. Thanks for reminding me to upgrade.

@LENAX LENAX closed this as completed Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Asking for support or clarification
Projects
None yet
Development

No branches or pull requests

3 participants