{"record":{"id":"f5f842e703a09bf3","repo":"zed-industries/zed","slug":"copilot-hasn-t-started-yet","errorCode":null,"errorMessage":"copilot hasn't started yet","messagePattern":"copilot hasn't started yet","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/copilot/src/copilot.rs","lineNumber":814,"sourceCode":"                                    Err(Arc::new(error))\n                                }\n                            })?\n                        })\n                        .shared();\n                    server.sign_in_status = SignInStatus::SigningIn {\n                        prompt: None,\n                        task: task.clone(),\n                    };\n                    cx.notify();\n                    task\n                }\n            };\n\n            cx.background_spawn(task.map_err(|err| anyhow!(\"{err:?}\")))\n        } else {\n            // If we're downloading, wait until download is finished\n            // If we're in a stuck state, display to the user\n            Task::ready(Err(anyhow!(\"copilot hasn't started yet\")))\n        }\n    }\n\n    pub fn sign_out(&mut self, cx: &mut Context<Self>) -> Task<Result<()>> {\n        self.update_sign_in_status(request::SignInStatus::NotSignedIn, cx);\n        match &self.server {\n            CopilotServer::Running(RunningCopilotServer { lsp: server, .. }) => {\n                let request_timeout = ProjectSettings::get_global(cx)\n                    .global_lsp_settings\n                    .get_request_timeout();\n\n                let server = server.clone();\n                cx.background_spawn(async move {\n                    server\n                        .request::<request::SignOut>(request::SignOutParams {}, request_timeout)\n                        .await\n                        .into_response()\n                        .context(\"copilot: sign in confirm\")?;","sourceCodeStart":796,"sourceCodeEnd":832,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/copilot/src/copilot.rs#L796-L832","documentation":"sign_in was called while the Copilot server state is still Starting/Downloading, so no sign-in task exists yet; the code signals callers that the language server hasn't finished starting and sign-in cannot be attempted until it is running.","triggerScenarios":"Thrown at crates/copilot/src/copilot.rs:814 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Wait for the Copilot language server to finish downloading/starting, then retry sign-in","Trigger Reinstall if the server is stuck in a starting state"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}