-
Notifications
You must be signed in to change notification settings - Fork 61
Ruff extension can't find the pyproject.toml config when reading some files and not others #713
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
Comments
Thanks for the kind words and the detailed write up. I believe the relevant lines in the log are:
Note how the workspace uses |
Another difference is that I think the path with lowercase |
The directory is uppercase Everything else in the path is lowercase, including the project name. |
Hi @MichaReiser and @dhruvmanila, this issue is still tagged as "Needs info", but to the best of my knowledge, I have provided the information that you requested. Is there anything else that I can provide? |
Looking at the logs again it seems that the settings don't work for paths starting with file:///c%3A/Source/ instead of c:\ but I don't know why the paths are different. You aren't using WSL or a remote server by chance? |
I opened vscode from Git Bash with the command A couple other potential pieces of puzzle:
I have this in my It's the podman command executing from this folder that is holding the WSLhost.exe open. Maybe there is some crazy interaction between this and ruff language server/ruff? I can make Source lowercase and call this issue closed if you would like. It does seem likely that I might have done something wrong somewhere. |
Hey all,
Thank you for maintaining the VSCode ruff extension. I love using ruff in my editor!
However, I've got a problem that I just can't figure out for the life of me...
The Ruff LSP throws
2025-03-06 16:02:55.146835200 WARN No settings available for file:///c%3A/Source/.../database_access.py - falling back to default settings
for some files and not others in my project. Sometimes the files that work and don't work change. I'm not sure why.My project has a
pyproject.toml
at the top level folder. If I runuv run ruff format .
it works perfectly.VSCode info:
Extension Installation:
Ruff settings:
In the case of this log file, I literally have two files open in VSCode,

data_structures.py
formats as I would expect and matches the CLI.etl_database_access.py
formats with the default config and makes hundreds of changes.I did change the project name in this log file, since it's work proprietary:
my_ruff.log
Any help or guidance would be greatly appreciated! Thank you so much for making something so cool and helpful for the python community.
The text was updated successfully, but these errors were encountered: