{"record":{"id":"99925854c9ada816","repo":"zed-industries/zed","slug":"no-upstream-client-and-not-local","errorCode":null,"errorMessage":"no upstream client and not local","messagePattern":"no upstream client and not local","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/lsp_store.rs","lineNumber":6684,"sourceCode":"            }\n            let request_timeout = ProjectSettings::get_global(cx)\n                .global_lsp_settings\n                .get_request_timeout();\n            cx.background_spawn(async move {\n                server\n                    .request::<lsp::request::ExecuteCommand>(\n                        lsp::ExecuteCommandParams {\n                            command,\n                            arguments,\n                            ..lsp::ExecuteCommandParams::default()\n                        },\n                        request_timeout,\n                    )\n                    .await\n                    .into_response()\n            })\n        } else {\n            Task::ready(Err(anyhow!(\"no upstream client and not local\")))\n        }\n    }\n\n    pub fn resolve_code_action(\n        &self,\n        buffer: &Entity<Buffer>,\n        mut action: CodeAction,\n        cx: &mut Context<Self>,\n    ) -> Task<Result<CodeAction>> {\n        if action.resolved {\n            return Task::ready(Ok(action));\n        }\n        if !self.can_resolve_lsp_action_for_buffer(buffer, &action, cx) {\n            action.resolved = true;\n            return Task::ready(Ok(action));\n        }\n        if let Some((upstream_client, project_id)) = self.upstream_client() {\n            let request = proto::ResolveCodeAction {","sourceCodeStart":6666,"sourceCodeEnd":6702,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/project/src/lsp_store.rs#L6666-L6702","documentation":"Sentinel guard in execute_command's final else branch: the project has neither an upstream (collab/remote) client to forward the request to nor is running in local mode. This is an impossible/unsupported project state for executing an LSP command — there is no peer to send the request to.","triggerScenarios":"Thrown at crates/project/src/lsp_store.rs:6684 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the project's mode initialization; a project should always be local or connected to an upstream client","Check that upstream_client() did not fail silently due to a dropped connection before this call","Surface the error to the caller so the LSP command invocation is reported as unavailable instead of hanging"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9d272b036335401f339d024ea94968fd51016c40","analyzedAt":"2026-09-12T19:35:53.743Z","contentChangedAt":"2026-09-12T19:35:53.743Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}