astral-sh / ruff-vscode

A Visual Studio Code extension with support for the Ruff linter.
Other
1.06k stars 53 forks source link

Fails to Find Config #377

Closed thatcort closed 9 months ago

thatcort commented 9 months ago

I get the following error in VSCode when opening a Python file:

Ruff: Lint failed (ruff failed Cause: Failed to parse `/development/explore/"/development/explore/.ruff.toml"`: No such file or directory (os error 2) )

It seems to be adding the workspace location as a prefix to the full path to the config file. /development/explore/.ruff.toml is the correct path and the config file exists there. I'm not sure why it is doing this. Is there a setting somewhere that could be affecting this?

charliermarsh commented 9 months ago

That's odd, do you have anything in your settings.json?

thatcort commented 9 months ago

I found the problem. It was in one of the many settings.json files but didn't show up in the settings UI.