astral-sh / ruff

An extremely fast Python linter and code formatter, written in Rust.
https://docs.astral.sh/ruff
MIT License
32.85k stars 1.1k forks source link

[Panic] index out of bounds #3385

Closed Radiergummi closed 1 year ago

Radiergummi commented 1 year ago

I just experienced a reproducible crash. This seems to be caused by the combination of +D and -D212; it also prints the following warning: 'one-blank-line-before-class' (D203) and 'no-blank-line-before-class' (D211) are incompatible. Ignoring 'one-blank-line-before-class'.

charliermarsh commented 1 year ago

Thanks so much! Do you happen to know which file is triggering this? Are you able to include a snippet to reproduce it (or a link to the repo)?

Radiergummi commented 1 year ago

Unfortunately no, I accidentally ran black after this and cannot reproduce the bug anymore :( Feel free to close the issue if this isn't helpful without a repro...

charliermarsh commented 1 year ago

Blerg ok. I'll close for now, but please ping back here if you see this again, I'd love to help!