{"record":{"id":"dd2c8aefa1940460","repo":"zed-industries/zed","slug":"dap-locator-create-scenario-not-available-prior","errorCode":null,"errorMessage":"`dap_locator_create_scenario` not available prior to v0.6.0","messagePattern":"`dap_locator_create_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":1227,"sourceCode":"                        &build_config_template.into(),\n                        &resolved_label,\n                        &debug_adapter_name,\n                    )\n                    .await?;\n\n                Ok(dap_binary\n                    .map(|s| latest::DebugScenario::from(s).try_into())\n                    .transpose()?)\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_locator_create_scenario` not available prior to v0.6.0\");\n            }\n        }\n    }\n\n    pub async fn call_run_dap_locator(\n        &self,\n        store: &mut Store<WasmState>,\n        locator_name: String,\n        resolved_build_task: SpawnInTerminal,\n    ) -> Result<Result<DebugRequest, String>> {\n        match self {\n            Extension::V0_8_0(ext) => {\n                let build_config_template = resolved_build_task.try_into()?;\n                let dap_request = ext\n                    .call_run_dap_locator(store, &locator_name, &build_config_template)\n                    .await?\n                    .map_err(|e| anyhow!(\"{e:?}\"))?;\n","sourceCodeStart":1209,"sourceCodeEnd":1245,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/extension_host/src/wasm_host/wit.rs#L1209-L1245","documentation":"call_dap_locator_create_scenario lets a debug locator extension turn a resolved build task into a DebugScenario; the export exists only from WIT v0.6.0. Dispatching against an extension on v0.0.1 through v0.5.0 bails.","triggerScenarios":"A debug-locator entry point is invoked on an extension compiled with zed_extension_api < 0.6.0 (declared via [debug_locators] in its manifest).","commonSituations":"Build-task-to-debug-session flows (e.g. 'debug this build task') with an outdated locator extension; extension templates pinned to old API versions.","solutions":["Bump zed_extension_api to >= 0.6.0 in the extension, rebuild, and reinstall/republish.","Update the installed locator extension to its newest version.","Remove the [debug_locators] manifest entry if the extension cannot be rebuilt yet, so the host stops dispatching it."],"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    // locator unsupported; do not surface the entry point\n    return Ok(None);\n}","typeGuard":"fn supports_dap_locator_create_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":["Only declare [debug_locators] in manifests of extensions built with zed_extension_api >= 0.6.0.","Hide locator entry points for extensions below the required api-version.","Rebuild and republish locator extensions alongside host upgrades."],"tags":["wasm","extension","api-version","dap","debug-locator"],"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-14T05:17:10.506Z"}