{"record":{"id":"806ab62e8ad9fda0","repo":"astral-sh/ruff","slug":"32603-806ab6","errorCode":"-32603","errorMessage":"Cannot execute the '{}' command: the client does not support `workspace/applyEdit`","messagePattern":"Cannot execute the '(.+?)' command: the client does not support `workspace/applyEdit`","errorType":"error_code","errorClass":"ruff_server::server::api::Error","httpStatus":null,"severity":"error","filePath":"crates/ruff_server/src/server/api/requests/execute_command.rs","lineNumber":70,"sourceCode":"                .arguments\n                .unwrap_or_default()\n                .into_iter()\n                .next()\n                .map_or_else(\n                    || Ok(DebugCommandArgument::default()),\n                    |value| {\n                        serde_json::from_value(value).with_failure_code(ErrorCode::InvalidParams)\n                    },\n                )?;\n            return Ok(Some(serde_json::Value::String(\n                debug_information(session, argument.text_document)\n                    .with_failure_code(ErrorCode::InternalError)?,\n            )));\n        }\n\n        // check if we can apply a workspace edit\n        if !session.resolved_client_capabilities().apply_edit {\n            return Err(anyhow::anyhow!(\n                \"Cannot execute the '{}' command: \\\n                the client does not support `workspace/applyEdit`\",\n                command.label()\n            ))\n            .with_failure_code(ErrorCode::InternalError);\n        }\n\n        let mut arguments: Vec<Argument> = params\n            .arguments\n            .unwrap_or_default()\n            .into_iter()\n            .map(|value| serde_json::from_value(value).with_failure_code(ErrorCode::InvalidParams))\n            .collect::<server::Result<_>>()?;\n\n        arguments.sort_by(|a, b| a.uri.cmp(&b.uri));\n        arguments.dedup_by(|a, b| a.uri == b.uri);\n\n        let mut edit_tracker = WorkspaceEditTracker::new(session.resolved_client_capabilities());","sourceCodeStart":52,"sourceCodeEnd":88,"githubUrl":"https://github.com/astral-sh/ruff/blob/672bb4edf04c84f8b0753346359daee4057158f2/crates/ruff_server/src/server/api/requests/execute_command.rs#L52-L88","documentation":"Error \"Cannot execute the '{}' command: the client does not support `workspace/applyEdit`\" thrown in astral-sh/ruff.","triggerScenarios":"Thrown at crates/ruff_server/src/server/api/requests/execute_command.rs:70 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"672bb4edf04c84f8b0753346359daee4057158f2","analyzedAt":"2026-08-16T08:54:05.464Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}