{"record":{"id":"8f193f762ded9485","repo":"zed-industries/zed","slug":"no-remote-connection","errorCode":null,"errorMessage":"no remote connection","messagePattern":"no remote connection","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/remote/src/remote_client.rs","lineNumber":967,"sourceCode":"\n    pub fn default_system_shell(&self) -> Option<String> {\n        Some(self.remote_connection()?.default_system_shell())\n    }\n\n    pub fn shares_network_interface(&self) -> bool {\n        self.remote_connection()\n            .map_or(false, |connection| connection.shares_network_interface())\n    }\n\n    pub fn has_wsl_interop(&self) -> bool {\n        self.remote_connection()\n            .map_or(false, |connection| connection.has_wsl_interop())\n    }\n\n    pub fn build_command(\n        &self,\n        program: Option<String>,\n        args: &[String],\n        env: &HashMap<String, String>,\n        working_dir: Option<String>,\n        port_forward: Option<(u16, String, u16)>,\n        interactive: Interactive,\n    ) -> Result<CommandTemplate> {\n        let Some(connection) = self.remote_connection() else {\n            return Err(anyhow!(\"no remote connection\"));\n        };\n        connection.build_command(program, args, env, working_dir, port_forward, interactive)\n    }\n\n    pub fn build_forward_ports_command(\n        &self,\n        forwards: Vec<(u16, String, u16)>,\n    ) -> Result<CommandTemplate> {\n        let Some(connection) = self.remote_connection() else {\n            return Err(anyhow!(\"no remote connection\"));\n        };","sourceCodeStart":949,"sourceCodeEnd":985,"githubUrl":"https://github.com/zed-industries/zed/blob/5a9b9558db01a6b906cec2fb70a797affdc58cdd/crates/remote/src/remote_client.rs#L949-L985","documentation":"In RemoteClient::build_command: remote_connection() returned None, so there is no active remote connection to translate the command into (no ssh/wsl/docker template). Fires when building commands for a dropped or never-established connection.","triggerScenarios":"Thrown at crates/remote/src/remote_client.rs:967 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Establish the remote connection before building commands","Retry after reconnecting"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5a9b9558db01a6b906cec2fb70a797affdc58cdd","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}