{"record":{"id":"020cdeded529e69f","repo":"zed-industries/zed","slug":"dap-request-kind-not-available-prior-to-v0-6-0","errorCode":null,"errorMessage":"`dap_request_kind` not available prior to v0.6.0","messagePattern":"`dap_request_kind` not available prior to v0\\.6\\.0","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/extension_host/src/wasm_host/wit.rs","lineNumber":1137,"sourceCode":"            Extension::V0_6_0(ext) => {\n                let config =\n                    serde_json::to_string(&config).context(\"Adapter config is not a valid JSON\")?;\n                let dap_binary = ext\n                    .call_dap_request_kind(store, &adapter_name, &config)\n                    .await?\n                    .map_err(|e| anyhow!(\"{e:?}\"))?;\n\n                Ok(Ok(dap_binary.into()))\n            }\n            Extension::V0_5_0(_)\n            | Extension::V0_4_0(_)\n            | Extension::V0_3_0(_)\n            | Extension::V0_2_0(_)\n            | Extension::V0_1_0(_)\n            | Extension::V0_0_6(_)\n            | Extension::V0_0_4(_)\n            | Extension::V0_0_1(_) => {\n                anyhow::bail!(\"`dap_request_kind` not available prior to v0.6.0\");\n            }\n        }\n    }\n\n    pub async fn call_dap_config_to_scenario(\n        &self,\n        store: &mut Store<WasmState>,\n        config: ZedDebugConfig,\n    ) -> Result<Result<DebugScenario, String>> {\n        match self {\n            Extension::V0_8_0(ext) => {\n                let config = config.into();\n                let dap_binary = ext\n                    .call_dap_config_to_scenario(store, &config)\n                    .await?\n                    .map_err(|e| anyhow!(\"{e:?}\"))?;\n\n                Ok(Ok(dap_binary.try_into()?))","sourceCodeStart":1119,"sourceCodeEnd":1155,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/extension_host/src/wasm_host/wit.rs#L1119-L1155","documentation":"call_dap_request_kind asks an extension to build startDebugging request arguments, an export added at WIT v0.6.0. Dispatching it against an extension compiled for v0.0.1 through v0.5.0 bails instead of calling a missing export.","triggerScenarios":"Zed resolves the DAP request kind for a debug session whose adapter extension declares zed:api-version < 0.6.0.","commonSituations":"Old debug-adapter extension builds still installed after Zed added the request-kind API; mixed versions during extension upgrades.","solutions":["Rebuild the extension with zed_extension_api >= 0.6.0 and reinstall.","Update to the extension's latest release.","Remove stale installed copies so the host stops dispatching to the old wasm."],"exampleFix":"# before (extension Cargo.toml)\n[dependencies]\nzed_extension_api = \"0.5.0\"\n\n# after\n[dependencies]\nzed_extension_api = \"0.6.0\"","handlingStrategy":"validation","validationCode":"let api_version = extension_host::parse_wasm_extension_version(extension_id, &wasm_bytes)?;\nif api_version < semver::Version::new(0, 6, 0) {\n    // cannot ask for startDebugging request arguments; construct them host-side\n    return fallback_request_arguments();\n}","typeGuard":"fn supports_dap_request_kind(ext: &Extension) -> bool {\n    !matches!(\n        ext,\n        Extension::V0_0_1(_)\n            | Extension::V0_0_4(_)\n            | Extension::V0_0_6(_)\n            | Extension::V0_1_0(_)\n            | Extension::V0_2_0(_)\n            | Extension::V0_3_0(_)\n            | Extension::V0_4_0(_)\n            | Extension::V0_5_0(_)\n    )\n}","tryCatchPattern":null,"preventionTips":["Keep DAP extensions on zed_extension_api >= 0.6.0.","Gate DAP request-kind dispatch on the parsed api-version.","Maintain host-side fallbacks for adapters that predate the export."],"tags":["wasm","extension","api-version","dap","debug-adapter"],"backgroundTag":"api-version-unsupported","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"}