{"record":{"id":"7bf0734568a172e4","repo":"zed-industries/zed","slug":"dap-config-to-scenario-not-available-prior-to-v0","errorCode":null,"errorMessage":"`dap_config_to_scenario` not available prior to v0.6.0","messagePattern":"`dap_config_to_scenario` 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":1175,"sourceCode":"            Extension::V0_6_0(ext) => {\n                let config: latest::DebugConfig = config.into();\n                let dap_binary = ext\n                    .call_dap_config_to_scenario(store, &config.into())\n                    .await?\n                    .map_err(|e| anyhow!(\"{e:?}\"))?;\n\n                let dap_binary: latest::DebugScenario = dap_binary.into();\n                Ok(Ok(dap_binary.try_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_config_to_scenario` not available prior to v0.6.0\");\n            }\n        }\n    }\n\n    pub async fn call_dap_locator_create_scenario(\n        &self,\n        store: &mut Store<WasmState>,\n        locator_name: String,\n        build_config_template: TaskTemplate,\n        resolved_label: String,\n        debug_adapter_name: String,\n    ) -> Result<Option<DebugScenario>> {\n        match self {\n            Extension::V0_8_0(ext) => {\n                let build_config_template = build_config_template.into();\n                let dap_binary = ext\n                    .call_dap_locator_create_scenario(\n                        store,","sourceCodeStart":1157,"sourceCodeEnd":1193,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/extension_host/src/wasm_host/wit.rs#L1157-L1193","documentation":"call_dap_config_to_scenario converts a Zed debug config into a DebugScenario inside the extension, an export available only from WIT v0.6.0. Extensions on v0.0.1 through v0.5.0 reach the bail arm of this dispatch.","triggerScenarios":"Zed converts a debug configuration for an adapter provided by an extension built with zed_extension_api < 0.6.0.","commonSituations":"Debug-adapter extensions predating the v0.6.0 interface; users with auto-updated Zed but manually-managed old extensions.","solutions":["Raise zed_extension_api to >= 0.6.0, rebuild, and republish/reinstall the extension.","Use the adapter's latest published release.","As a stopgap, define the debug scenario manually in the user's Zed settings."],"exampleFix":"# before (extension Cargo.toml)\n[dependencies]\nzed_extension_api = \"0.4.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 convert config to scenario in-extension; build the scenario from user settings\n    return scenario_from_user_settings(config);\n}","typeGuard":"fn supports_dap_config_to_scenario(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":["Rebuild debug extensions when adopting the v0.6.0 config-to-scenario API.","Validate api-version before dispatch and degrade to user-defined debug scenarios.","Version-bump and republish extensions together with the features that need them."],"tags":["wasm","extension","api-version","dap","debug-scenario"],"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"}