Skip to content

errors reported inside pyproject.toml/ruff.toml are not reported in the language server #27088

Description

@DetachHead

Summary

# ruff.toml

target-version = "py314"
preview = true

[lint]
extend-select = ["rule-codes-in-selectors"]
ignore = [
  "N818",
]
> ruff check .\ruff.toml
rule-codes-in-selectors: [*] Rule code used instead of name in `lint.ignore`
 --> ruff.toml:7:4
  |
5 | extend-select = ["rule-codes-in-selectors"]
6 | ignore = [
7 |   "N818",
  |    ^^^^
8 | ]
  |
help: Replace rule code with `error-suffix-on-exception-name`
  |
6 | ignore = [
  -   "N818",
7 +   "error-suffix-on-exception-name",
8 | ]
  |

Found 1 error.
[*] 1 fixable with the `--fix` option.

in vscode however the error is not reported:

Image

(that JSON schema error is a separate issue: SchemaStore/schemastore#6082)

output from Ruff Language Server Trace:

[Trace - 4:48:00 PM] Sending notification 'workspace/didChangeWatchedFiles'.
Params: {
    "changes": [
        {
            "uri": "file:///c%3A/Users/user/project/ruff.toml",
            "type": 2
        }
    ]
}


[Trace - 4:48:00 PM] Received request 'workspace/diagnostic/refresh - (1)'.
[Trace - 4:48:00 PM] Sending response 'workspace/diagnostic/refresh - (1)'. Processing request took 1ms
No result returned.

Version

ruff 0.15.22 (0177a7e 2026-07-16)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

previewRelated to preview-mode featuresserverRelated to the Ruff or ty LSP server

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions