astral-sh / ruff-vscode

A Visual Studio Code extension with support for the Ruff linter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to Find Config

thatcort opened this issue · comments

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?

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

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