{"record":{"id":"122d83b66cfc9c78","repo":"zed-industries/zed","slug":"unsupported-architecture-unsupported","errorCode":null,"errorMessage":"unsupported architecture {unsupported}","messagePattern":"unsupported architecture (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dap_adapters/src/codelldb.rs","lineNumber":59,"sourceCode":"\n        Ok(dap::StartDebuggingRequestArguments {\n            request,\n            configuration,\n        })\n    }\n\n    async fn fetch_latest_adapter_version(\n        &self,\n        delegate: &Arc<dyn DapDelegate>,\n    ) -> Result<AdapterVersion> {\n        let release =\n            latest_github_release(\"vadimcn/codelldb\", true, false, delegate.http_client()).await?;\n\n        let arch = match std::env::consts::ARCH {\n            \"aarch64\" => \"arm64\",\n            \"x86_64\" => \"x64\",\n            unsupported => {\n                anyhow::bail!(\"unsupported architecture {unsupported}\");\n            }\n        };\n        let platform = match std::env::consts::OS {\n            \"macos\" => \"darwin\",\n            \"linux\" => \"linux\",\n            \"windows\" => \"win32\",\n            unsupported => {\n                anyhow::bail!(\"unsupported operating system {unsupported}\");\n            }\n        };\n        let asset_name = format!(\"codelldb-{platform}-{arch}.vsix\");\n        let ret = AdapterVersion {\n            tag_name: release.tag_name,\n            url: release\n                .assets\n                .iter()\n                .find(|asset| asset.name == asset_name)\n                .with_context(|| format!(\"no asset found matching {asset_name:?}\"))?","sourceCodeStart":41,"sourceCodeEnd":77,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/dap_adapters/src/codelldb.rs#L41-L77","documentation":"fetch_latest_adapter_version in the codelldb adapter maps std::env::consts::ARCH to a VSIX asset suffix (aarch64->arm64, x86_64->x64) before looking for 'codelldb-{platform}-{arch}.vsix' in the vadimcn/codelldb latest GitHub release. Any other arch bails with 'unsupported architecture {unsupported}', stopping the adapter install before any download starts.","triggerScenarios":"Zed attempts to install/update codelldb on a machine whose arch is not aarch64/x86_64 (32-bit ARM, riscv64, etc.), so the asset-name match would always fail and the code bails early with the arch name.","commonSituations":"32-bit OSes on ARM boards; niche architectures with community Zed builds; containers reporting unusual uname/arch personalities.","solutions":["Use a 64-bit aarch64/x86_64 system for LLDB debugging via codelldb","Switch the debugger config to use a locally installed lldb/gdb via a custom adapter instead of codelldb","Build codelldb from source for the arch and reference it via a custom adapter command"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"fn codelldb_arch_supported() -> bool {\n    matches!(std::env::consts::ARCH, \"aarch64\" | \"x86_64\")\n}\n\nif !codelldb_arch_supported() {\n    // choose a custom adapter backed by a local lldb instead of installing codelldb\n}","typeGuard":"fn is_supported_codelldb_arch(arch: &str) -> bool {\n    matches!(arch, \"aarch64\" | \"x86_64\")\n}","tryCatchPattern":null,"preventionTips":["Check arch/OS support before offering codelldb in the UI on niche platforms","Maintain a fallback adapter (system lldb) for unsupported architectures"],"tags":["dap","codelldb","architecture","lldb","install","rust"],"backgroundTag":"unsupported-cpu-architecture","analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}