Skip to content

Unspecific error message from tiny typo #13022

@turkishmaid

Description

@turkishmaid

Using Ruff 0.6.1 as native server in VSCode 1.92.1, Ruff extension v2024.42.0, on MacOS 14.4 (but I guess all of that is irrelevant).

With a tiny typo like this in the ruff.toml

[lint]
ignore = [
## typo, should be "EM102"
  "ME102", # f-string in exception
]
select = ["ALL", "TD006", "TD007", "FIX"]

I am shown some unspecific Ruff error popup referring to the logs:

Error while resolving settings from workspace /(redacted). Please refer to the logs for more details.
Source: Ruff

Unfortunately, in the logs there is no trace of the actual issue:

image

Took me ages to find out and I was only successful when I commented out the whole ruff.toml and added it back line by line.

Would it be possible to have a message like so instead? In the popup if that is possible, or at least in the Ruff output...

ruff.toml(/path): line 12: [lint.ignore]: "ME102" is not a valid rule

Even better would be when Ruff would lint its own settings and issue warnings about incorrect or deprecated settings in ruff.toml or pyproject.toml.

Else: Great tool. Love lightning fast linting. Sometimes I create an issue deliberately just to see it pop up 😁

Metadata

Metadata

Assignees

Labels

serverRelated to the LSP server

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions