{"record":{"id":"c45e15e1a425333f","repo":"zed-industries/zed","slug":"missing-hostname","errorCode":null,"errorMessage":"missing hostname","messagePattern":"missing hostname","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/remote/src/transport/ssh.rs","lineNumber":1751,"sourceCode":"                if let Some((rest, p)) = input.rsplit_once(\"]:\") {\n                    input = rest.strip_prefix('[').unwrap_or(rest);\n                    port = p.parse().ok();\n                } else if input.ends_with(']') {\n                    input = input.strip_prefix('[').unwrap_or(input);\n                    input = input.strip_suffix(']').unwrap_or(input);\n                }\n            } else if let Some((rest, p)) = input.rsplit_once(':')\n                && !rest.contains(\":\")\n            {\n                input = rest;\n                port = p.parse().ok();\n            }\n\n            hostname = Some(input.to_string())\n        }\n\n        let Some(hostname) = hostname else {\n            anyhow::bail!(\"missing hostname\");\n        };\n\n        let port_forwards = match port_forwards.len() {\n            0 => None,\n            _ => Some(port_forwards),\n        };\n\n        Ok(Self {\n            host: hostname.into(),\n            username,\n            port,\n            port_forwards,\n            args: Some(args),\n            password: None,\n            nickname: None,\n            upload_binary_over_ssh: false,\n            connection_timeout: None,\n        })","sourceCodeStart":1733,"sourceCodeEnd":1769,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/remote/src/transport/ssh.rs#L1733-L1769","documentation":"Thrown by the SSH URL/host-string parser after all token handling: neither a hostname nor an option-consumed value produced a host. The input contained options (like -l or -L) but no non-option token remained to use as the destination host, so there is nothing to connect to.","triggerScenarios":"Thrown at crates/remote/src/transport/ssh.rs:1751 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Supply a hostname in the SSH string, e.g. user@host or host:port","Check for typos like a leading '@' or missing host after the port"],"exampleFix":null,"handlingStrategy":"validation","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-14T00:17:10.932Z"}