{"record":{"id":"562584e9ce9a5333","repo":"zed-industries/zed","slug":"run-dap-locator-not-available-prior-to-v0-6-0","errorCode":null,"errorMessage":"`run_dap_locator` not available prior to v0.6.0","messagePattern":"`run_dap_locator` 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":1267,"sourceCode":"                let build_config_template: latest::dap::TaskTemplate =\n                    resolved_build_task.try_into()?;\n                let dap_request = ext\n                    .call_run_dap_locator(store, &locator_name, &build_config_template.into())\n                    .await?\n                    .map_err(|e| anyhow!(\"{e:?}\"))?;\n\n                let dap_request: latest::DebugRequest = dap_request.into();\n                Ok(Ok(dap_request.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!(\"`run_dap_locator` not available prior to v0.6.0\");\n            }\n        }\n    }\n}\n\ntrait ToWasmtimeResult<T> {\n    fn to_wasmtime_result(self) -> wasmtime::Result<Result<T, String>>;\n}\n\nimpl<T> ToWasmtimeResult<T> for Result<T> {\n    fn to_wasmtime_result(self) -> wasmtime::Result<Result<T, String>> {\n        Ok(self.map_err(|error| format!(\"{error:?}\")))\n    }\n}\n","sourceCodeStart":1249,"sourceCodeEnd":1282,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/extension_host/src/wasm_host/wit.rs#L1249-L1282","documentation":"call_run_dap_locator executes a locator to produce a DebugRequest from a resolved build task; like the other DAP exports it requires WIT v0.6.0. Extensions compiled for v0.0.1 through v0.5.0 hit the bail arm of this dispatch.","triggerScenarios":"Zed runs a debug locator (from the extension's [debug_locators]) against an extension whose wasm declares zed:api-version < 0.6.0.","commonSituations":"Starting a debug session from a build task with an old locator extension installed; post-upgrade mismatch between editor DAP features and extension build age.","solutions":["Rebuild the extension with zed_extension_api >= 0.6.0 (update Cargo.toml and Cargo.lock) and reinstall.","Install the extension's latest published release.","Clean the extensions directory of old versions so only the rebuilt wasm remains."],"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 run this locator; tell the user to update the extension\n    return notify_extension_update_required(extension_id);\n}","typeGuard":"fn supports_run_dap_locator(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 locator extensions with zed_extension_api >= 0.6.0 before using run-locator flows.","Check the parsed api-version before executing locators so users get an update prompt, not an error.","Purge old installed wasm versions after upgrading an extension."],"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-14T00:17:10.932Z"}