{"record":{"id":"e92b3fc4f4df3596","repo":"zed-industries/zed","slug":"must-sign-in-before-using-copilot","errorCode":null,"errorMessage":"must sign in before using copilot","messagePattern":"must sign in before using copilot","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/copilot/src/copilot.rs","lineNumber":67,"sourceCode":"    copilot_edit_predictions,\n    [\n        /// Reinstalls the Copilot Edit Predictions language server.\n        #[action(deprecated_aliases = [\"copilot::Reinstall\"])]\n        Reinstall,\n    ]\n);\n\nenum CopilotServer {\n    Disabled,\n    Starting { task: Shared<Task<()>> },\n    Error(Arc<str>),\n    Running(RunningCopilotServer),\n}\n\nimpl CopilotServer {\n    fn as_authenticated(&mut self) -> Result<&mut RunningCopilotServer> {\n        let server = self.as_running()?;\n        anyhow::ensure!(\n            matches!(server.sign_in_status, SignInStatus::Authorized),\n            \"must sign in before using copilot\"\n        );\n        Ok(server)\n    }\n\n    fn as_running(&mut self) -> Result<&mut RunningCopilotServer> {\n        match self {\n            CopilotServer::Starting { .. } => anyhow::bail!(\"copilot is still starting\"),\n            CopilotServer::Disabled => anyhow::bail!(\"copilot is disabled\"),\n            CopilotServer::Error(error) => {\n                anyhow::bail!(\"copilot was not started because of an error: {error}\")\n            }\n            CopilotServer::Running(server) => Ok(server),\n        }\n    }\n}\n","sourceCodeStart":49,"sourceCodeEnd":85,"githubUrl":"https://github.com/zed-industries/zed/blob/bc538def4545534201bbfcac4e95ac34ea6501b6/crates/copilot/src/copilot.rs#L49-L85","documentation":"Error \"must sign in before using copilot\" thrown in zed-industries/zed.","triggerScenarios":"Thrown at crates/copilot/src/copilot.rs:67 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":"bc538def4545534201bbfcac4e95ac34ea6501b6","analyzedAt":"2026-08-16T07:30:46.435Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}