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
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 run uv run ruff format . it works perfectly.
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:
Zeddicus414
changed the title
Ruff Extension randomly can't find the pyproject.toml config when reading some files and not others
Ruff extension can't find the pyproject.toml config when reading some files and not others
Mar 6, 2025
Thanks for the kind words and the detailed write up.
I believe the relevant lines in the log are:
2025-03-06 16:41:06.086695000 DEBUG Indexing settings for workspace: c:\source\PROJECTNAME
2025-03-06 16:41:06.098413500 DEBUG Ignored path via `exclude`: c:\source\PROJECTNAME\.git
2025-03-06 16:41:06.104849700 DEBUG Ignored path via `exclude`: c:\source\PROJECTNAME\.ruff_cache
2025-03-06 16:41:06.117166100 INFO Registering workspace: c:\source\PROJECTNAME
2025-03-06 16:41:06.177908300 WARN No settings available for file:///c%3A/Source/PROJECTNAME/etl/database/etl_database_access.py - falling back to default settings
Note how the workspace uses source in lowercase, whereas the warning message uses Source in uppercase. Can you tell me what the casing of C:\source is on disk? Is it C:\source or C:\Source? I'm not sure why VS code gives us once one path and than the other but I suspect that we may have to do some normalization on our end or change the setting lookup to be case-insensitive on case-insensitive file systems (windows, macos)
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: