-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Failed to create cache file #9478
Comments
Ah sorry, this must be me -- fixing now. |
Can you tell me any more about your project setup? Do you use a single |
A single |
I'm able to reproduce this by trying to lint a file outside of the current working directory (which also doesn't have a ❯ ruff check ../foo.py
ruff failed
Cause: Failed to create cache file '/Users/crmarsh/workspace/ruff/.ruff_cache/0.1.12/14778054398178272117'
Cause: No such file or directory (os error 2) |
## Summary Regression from https://github.com/astral-sh/ruff/pull/9453/files#diff-80a9c2637c432502a7075c792cc60db92282dd786999a78bfa9bb6f025afab35L482. Closes #9478. ## Test Plan ``` rm -rf .ruff_cache cargo run -p ruff_cli -- check ../foo.py ``` Failed prior to this PR; passes afterwards. The file must be outside of the current working directory, and must not have a `pyproject.toml` in any parent directory.
same issue. looking forward to release |
Ever since upgrading to version 0.1.12, seeing this error when trying to run
ruff check
. Works when downgrading to0.1.11
.The text was updated successfully, but these errors were encountered: