{"record":{"id":"49b1b8acfe70468b","repo":"zed-industries/zed","slug":"unsupported-copilot-language-server-platform-pla","errorCode":null,"errorMessage":"unsupported Copilot language server platform: {platform}","messagePattern":"unsupported Copilot language server platform: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/copilot/src/copilot.rs","lineNumber":1397,"sourceCode":"    if should_install {\n        node_runtime\n            .npm_install_latest_packages(paths::copilot_dir(), &[PACKAGE_NAME])\n            .await?;\n    }\n\n    if fs.is_file(&binary_path).await {\n        return Ok(binary_path);\n    }\n\n    anyhow::bail!(\"GitHub Copilot native language server binary was not installed\")\n}\n\nfn copilot_lsp_native_binary_path() -> anyhow::Result<PathBuf> {\n    let platform = match env::consts::OS {\n        \"linux\" => \"linux\",\n        \"macos\" => \"darwin\",\n        \"windows\" => \"win32\",\n        platform => anyhow::bail!(\"unsupported Copilot language server platform: {platform}\"),\n    };\n    let architecture = match env::consts::ARCH {\n        \"aarch64\" => \"arm64\",\n        \"x86_64\" => \"x64\",\n        architecture => {\n            anyhow::bail!(\"unsupported Copilot language server architecture: {architecture}\")\n        }\n    };\n\n    let package_name = format!(\"copilot-language-server-{platform}-{architecture}\");\n\n    let executable_name = if cfg!(target_os = \"windows\") {\n        \"copilot-language-server.exe\"\n    } else {\n        \"copilot-language-server\"\n    };\n    Ok(paths::copilot_dir()\n        .join(\"node_modules\")","sourceCodeStart":1379,"sourceCodeEnd":1415,"githubUrl":"https://github.com/zed-industries/zed/blob/bc538def4545534201bbfcac4e95ac34ea6501b6/crates/copilot/src/copilot.rs#L1379-L1415","documentation":"Error \"unsupported Copilot language server platform: {platform}\" thrown in zed-industries/zed.","triggerScenarios":"Thrown at crates/copilot/src/copilot.rs:1397 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"}