astral-sh/ruff

Documented errors, page 3 of 4. Back to astral-sh/ruff

Code / MessageTypeSeverityTags
Expected one inner with statement
exception error ruff, autofix, flake8-simplify, fixer
Failed to collapse `if
exception info ruff, flake8-simplify, sim102, autofix
path ` ` is not valid UTF-8
console error rust, utf-8, filesystem, completion-eval
RuleSelector::specificity doesn't yet support codes with so…
panic error
Expected Expression::ListComp | Expression::SetComp
exception error
Document controller not available at
exception error lsp, documents, state
Expected assert statement to be a composite condition
exception error
Expected import bindings
exception error ruff, autofix, pyflakes, f401, unused-import
`require-lazy` and `ban-lazy` must not overlap after…
validation error
` ` should have one argument
panic error
Invalid `cache-dir` value
validation error ruff, configuration, env-var, cache-dir
No files found under the given path
console error cli, configuration, ruff, paths
Workspace not found
error_code error
expected python code
panic error
expected type alias
panic error internal, scope, ast, panic, invariant, type-alias
Invalid `extend` value
validation error
Calling `find_name_in_mro` on Unknown should return `Some`
panic error rust, ty, super, mro, unknown, panic
cannot set default value for variadic parameter
panic error
Expected statement to be embedded in a function definition
exception error
Failed to convert workspace URI to file path
exception error lsp, ruff, workspace, uri
index is bounded by INLINE_MAX_SEGMENTS
panic error internal, invariant, panic, bit-packing, member-access
bindings must not be empty
panic error rust, ty, call-inference, union, empty-iterator, panic
Vendored file not found
exception error
Expected each argument to be a tuple of length two
exception warning rust, ruff, lint-autofix, flake8-comprehensions
Expected `Option ` or `Vec ` as type.
exception error
Tried to remove non-existent workspace URI
exception error lsp, ruff, workspace, state
Unable to rename any references to
exception error autofix, rename, linter, ruff
expected body to end in an expression
exception error
Fix introduced a syntax error
exception error autofix, syntax-error, linter, ruff
Content not correctly formatted
exception error ruff, formatter, cli, check-mode
Expected tuple or list for dictionary comprehension
exception warning rust, ruff, lint-autofix, flake8-comprehensions
Ranges must be inserted in sorted order
panic error
`&T*` is unsupported; use `Box<[T]>
validation error codegen, rust-ast, ownership, developer-tooling
The installed version of uv does not support `uv format`…
exception error ruff, lsp, formatting, uv, version
`uv sync` failed with exit code
exception error testing, mdtest, uv, dependency-install, process-failure
Lockfile not found at
validation error testing, mdtest, lockfile, uv
Rule ` ` was removed and cannot be selected.
validation error
Expected Expression::ListComp | Expression:SetComp |…
exception warning rust, ruff, lint-autofix, flake8-comprehensions
Tried to close unavailable document
exception error lsp, documents, lifecycle
Expected one argument in outer function call
exception warning rust, ruff, lint-autofix, flake8-comprehensions
File already exists
error_code error filesystem, memory-fs, conflict
Unclosed collection type
validation error codegen, rust-ast, syntax, developer-tooling
Unrecognized language
validation error ruff, configuration, parsing, language
Can only write to stdout when formatting from stdin, but…
exception error ruff, formatter, cli, stdin
Expected doc attribute.
exception error
Provided project path
console error cli, path-resolution, type-checker
The argument `--config=
exception error cli, configuration, flags, ruff
{e}
console error cli, lint-registry, unknown-identifier
uv was not found; is it installed and on the PATH?
exception error ruff, lsp, formatting, uv, path
Deprecated meta is not supported by ruff's option macro.
exception error
Input is not a text document
exception error
expected ipy notebook
panic error
expected last expression to be `Some(match (..)
exception error
Expected at least one argument in outer function call
exception warning rust, ruff, lint-autofix, flake8-comprehensions
-32601
Unknown request
error_code error
Missing argument `obj`
exception error linter, rust, pytest-style, argument-missing
Expected container to include two elements
exception warning rust, ruff, lint-autofix, flake8-comprehensions
Missing argument `member`
exception error linter, rust, pytest-style, argument-missing
Selection of deprecated rules is not allowed when preview…
validation error
Missing argument `regex`
exception error linter, rust, pytest-style, argument-missing, regex
expected markdown text
panic error
this variant already has another prefix starting with the…
exception error
external commands are disabled in an untrusted workspace
exception error
Flame layer to be created
panic error logging, profiling, env-var, panic, file-permissions
Cannot offer a fix when there are multiple __all__…
exception warning ruff, autofix, pyflakes, f401, dunder-all
Unknown `cache_field` argument
exception error
only named fields are supported
exception error
Cannot update non-system files (vendored files are…
exception error
Missing argument `container`
exception error linter, rust, pytest-style, argument-missing
Failed to fix invalid comparison due to missing op
exception error ruff, autofix, pyflakes, f632
does not exist: ty's completion evaluation must be run from…
console error working-directory, missing-data, evaluation
Unknown option
exception error cli, configuration, ruff
could not find any tasks matching the given criteria
console error cli, task-selection, empty-result
`?` must be at the end
validation error codegen, rust-ast, optional-fields, developer-tooling
Required version ` ` does not match the running version
validation error
The `--range` option is only supported when formatting a…
exception error cli, formatter, arguments, ruff
Workspace path is not valid UTF-8
error_code error
You cannot specify more than one configuration file on the…
exception error cli, configuration, flags, ruff
expected attribute to be a string: ` = "...
exception error
The following rules have been removed and cannot be…
validation error
Can only derive ConfigurationOptions from structs with…
exception error
Can only derive CombineOptions from structs with named…
exception error
`*` must be at the end
validation error codegen, rust-ast, syntax, developer-tooling
Workspace URI is not a file or directory
error_code error
unexpected suffix ` ` on string literal
exception error
Expected `Option ` as type.
exception error
Expected one simple statement
exception error
Invalid `dummy-variable-rgx` value
validation error
Invalid value `0` for `position.line`. The line index is…
validation error
Missing documentation for field
exception error
Workspace URI is not valid UTF8
error_code error
Can only derive Combine from structs.
exception error
Failed to format document
exception error ruff, lsp, formatting, uv, subprocess
expected attribute to be in the form of [#prefix = "..."]
exception error
A new type index cannot have any fields.
exception error
CacheKey does not support unions. Only structs and enums…
exception error
Missing argument `cls`
exception error linter, rust, pytest-style, argument-missing
Expected type.
exception error
Mandatory `default` field is missing in `#[option]`…
exception error
Temporary directory path is not valid UTF-8
console error unicode, temp-directory, environment