astral-sh/ruff
Documented errors, page 2 of 4. Back to astral-sh/ruff
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Expression not found | panic | error | rust, panic, semantic-model, flake8-type-checking |
| Invalid alias for module | validation | error | configuration, python, unicode |
PermissionDenied external commands are disabled in an untrusted workspace | error_code | error | lsp, workspace-trust, permissions, subprocess, security |
| Failed to send response for request | console | error | lsp, channel, transport, response, ruff-server |
| expected a doc comment | exception | error | proc-macro, compile-time, rust, doc-comment |
| Expected a valid noqa code corresponding to a rule | panic | error | rust, panic, sarif, rule-code, reporting |
| Invalid type ignore tag | exception | info | ruff, pygrep-hooks, type-ignore, mypy, comments |
| Tried to open unavailable document | exception | error | lsp, notebook, documents |
| `initLogging` to only be called at most once. | panic | error | wasm, javascript, logging, panic, double-initialization |
| scope offset should point to ExprCall | panic | error | rust, panic, expect, ty, dynamic-class, node-index, invariant |
| Expected outer with to have indented body | exception | error | ruff, autofix, flake8-simplify, fixer |
| `else` is expected to be on its own line | exception | warning | ruff, autofix, pylint, indentation, elif |
| Required import specified in `lint.isort.required-imports`… | validation | error | |
| Empty `else` clause | exception | info | ruff, autofix, pylint, loop, else-clause |
| failed to resolve uv executable | exception | error | uv, environment, path, io |
| failed to deserialize diagnostic data | exception | error | rust, lsp, serialization, serde, diagnostics |
| Reading a notebook from the vendored file system is not… | error_code | error | filesystem, notebooks, unsupported |
| Expected dictionary argument to be kwarg | panic | critical | rust, panic, flake8-comprehensions, autofix, c408 |
| Expected indented block to have at least one statement | exception | error | ruff, autofix, flake8-simplify, fixer |
| Notebook document path does not point to a notebook document | exception | error | lsp, notebook, rust, state-mismatch |
| could not find task named | console | error | cli, fixtures, task-lookup, benchmark |
| Multiple sections with `[project]` dependencies in the same… | validation | error | testing, mdtest, configuration, parse-error |
| should be set because `extract_if` only yields elements… | panic | error | rust, ty, diagnostics, fixes, panic, purity |
| cannot be converted to EmptyStringCmpOp | exception | error | ruff, pylint, autofix, comparison |
| Definition value should be a call expression | panic | error | rust, panic, expect, ty, dynamic-class, call-expression, invariant |
| Expected uv to create a lockfile at | exception | error | testing, uv, lockfile, environment |
| Text document URI does not point to a text document | exception | error | lsp, documents, notebook |
| Failed to collapse `with | exception | info | ruff, flake8-simplify, sim117, autofix |
| Notebook document expected from notebook source kind | exception | error | ruff, lsp, notebook, internal-invariant |
InvalidParams Invalid command | error_code | error | lsp, execute-command, ruff-server, invalid-params |
| else clause | panic | error | |
| Calling `find_name_in_mro` on dynamic type should return… | panic | error | rust, ty, super, mro, member-lookup, panic |
| Expected all submodule imports to contain a '.' | panic | error | |
| Own line docstring must have indentation | panic | error | |
| Expected a Type::Dynamic variant | panic | error | rust, ty, types, enum, panic, variant-mismatch |
| Expected an import binding to have a non-empty qualified… | panic | error | |
InvalidInput Input is not a text document | error_code | error | lsp, notebook, virtual-path, io, type-mismatch |
| Could not diff paths | panic | error | windows, paths, gitlab-ci, output-format, panic |
| Expected a UTF-8 working directory | panic | error | rust, panic, utf-8, cli, filesystem |
| i is bounded by INLINE_MAX_SEGMENTS | panic | error | internal, invariant, panic, bit-packing, member-access |
| Expected at least one import | panic | error | rust, panic, empty-collection, imports |
| No such file or directory | error_code | error | filesystem, memory-fs, not-found |
| Expected colon after test | exception | warning | ruff, autofix, flake8-simplify, parser |
| Missing argument `expr` | exception | error | autofix, flake8-pytest-style, internal, ruff |
| could not find any ` ` directives in any of the files in | console | error | rust, fixtures, completion-eval, configuration |
| Cannot fix | exception | info | ruff, flake8-pytest-style, autofix, pytest |
| Expected container to use a key as the first element | exception | warning | rust, ruff, lint-autofix, flake8-comprehensions |
| Expected two arguments | exception | warning | rust, ruff, lint-autofix, flake8-comprehensions |
| Invalid command | exception | warning | rust, lsp, server, command |
| The meta-type of an instance-like type should always have… | panic | error | rust, ty, types, mro, member-lookup, metaclass, panic |
| Notebook document URI does not point to a notebook document | exception | error | lsp, notebook, documents |
| Attempted to add edits for a document that was already… | exception | error | rust, lsp, server, edits |
| Expected outer if to have indented body and no else | exception | info | ruff, flake8-simplify, sim102, elif |
| cannot contain newline characters | exception | error | cli, suppression, arguments, ruff |
| invalid micro version | exception | error | ruff, pyupgrade, up036, version-check |
| Transformed content out of bounds | panic | error | |
| Expected comparison operator | panic | error | |
| optional field cannot be sequence or slice | validation | error | codegen, rust-ast, optional-fields, developer-tooling |
| truth source directory | console | error | rust, utf-8, filesystem, completion-eval |
| argument index should be valid | panic | error | rust, ty, call-inference, index-out-of-bounds, panic |
| expected class | panic | error | internal, scope, ast, panic, invariant |
| For an mdtest with external dependencies, a Python platform… | validation | error | testing, mdtest, configuration, uv |
| truth source directory | console | error | rust, path, configuration, completion-eval |
| InvalidUtf8 | validation | error | cli, encoding, utf8 |
| We shouldn't be attempting an autofix if a sequence has < 2… | panic | error | |
| expected function | panic | error | internal, scope, ast, panic, invariant |
| Stack to never be empty | panic | critical | rust, panic, flake8-commas, token-scanning, invariant |
| {} | console | error | |
| could not find `pyproject.toml` in any ancestor of | console | error | path, project-discovery, pyproject-toml, cli |
| directory listings are only supported for system paths | error_code | error | filesystem, directory, unsupported |
| Failed to fix invalid comparison | exception | error | ruff, autofix, pyflakes, f632 |
| Positional argument is missing | exception | error | rust, pyupgrade, format-strings, linter |
| project directory ` ` does not contain a base name | console | error | rust, path, configuration, completion-eval |
| Expected a call or lambda | exception | warning | rust, ruff, lint-autofix, flake8-comprehensions |
| Expected : pattern | validation | error | cli, extension-mapping, argument-parsing, ruff-linter |
| Failed to read notebook file | exception | error | rust, jupyter, notebook, file-io |
| expected a valid rule name | panic | error | rust, panic, sarif, rule-name, reporting |
| Expected container to use a value as the second element | exception | error | |
| Arguments should be non-empty | panic | critical | rust, panic, flake8-comprehensions, autofix, c408 |
| tried to close document that didn't exist at | exception | error | lsp, documents, state |
| Expected `NamedTuple` definition r.h.s. to be a call… | panic | error | rust, panic, expect, ty, namedtuple, call-expression, invariant |
| redefined_loop_name called on Statement that is not a… | panic | error | |
| Detected project directory | console | error | unicode, path-resolution, benchmark |
| Expected ImportNames::Aliases | ImportNames::Star | panic | error | |
MethodNotFound Unknown request | error_code | warning | rust, lsp, server, method-not-found |
| non-terminal constraint set should have a source_order | panic | error | rust, panic, expect, ty, constraints, owned-set, source-order, merge |
| The current working directory | error_code | error | |
| Working directory does not exist | console | error | cli, filesystem, configuration, ruff |
| Invalid UTF-8 in JUnit report | error_code | error | io, encoding, utf8, reporting |
| Failed to convert path to URL | exception | error | sarif, output-format, paths, ruff |
| Unsupported serialization format for statistics | console | error | cli, statistics, output-format, ruff |
| Expected at least one path to search for Python files | console | error | cli, path-resolution, argument-validation |
| Failed to get the current working directory while creating… | error_code | error | |
| Missing argument `text` | exception | error | linter, rust, pytest-style, argument-missing, regex |
| Missing argument `second` | exception | error | linter, rust, pytest-style, argument-missing |
| Lockfile is out of date. Use one of these commands to… | validation | error | testing, mdtest, lockfile, uv, stale-dependencies |
| Cannot autofix: reference in the source code | exception | error | |
| Expected | validation | error | ruff, configuration, cli, parsing |
| Selection of deprecated rule | validation | error | |
| Circular configuration detected | exception | error | configuration, extends, recursion |