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
Unfortunately I cannot provide the file that triggered this. This was run in a project without ruff configured, although it does have a pyproject.toml. This happens using the --isolated flag as well. Running on AArch64 macOS.
## Summary
I haven't been able to determine why / when this is happening, but in
some cases, users are reporting that this `unwrap()` is causing a panic.
It's fine to just return `None` here and fallback to "No cache",
certainly better than panicking (while we figure out the edge case).
Closes#5225.
Closes#5228.
Running
RUST_BACKTRACE=full ruff <file>
on 0.0.273 resulted in this output:My
.ruff_cache
looks like this:Unfortunately I cannot provide the file that triggered this. This was run in a project without ruff configured, although it does have a
pyproject.toml
. This happens using the--isolated
flag as well. Running on AArch64 macOS.Here is the code snippet:
ruff/crates/ruff_cli/src/commands/run.rs
Lines 109 to 112 in fde5dbc
Last modified in 17f1ecd.
The text was updated successfully, but these errors were encountered: