{"record":{"id":"63130c850862a87d","repo":"zed-industries/zed","slug":"couldn-t-find-any-locator-for-task-specify-t","errorCode":null,"errorMessage":"Couldn't find any locator for task `{}`. Specify the `attach` or `launch` arguments in your debug scenario definition","messagePattern":"Couldn't find any locator for task `(.+?)`\\. Specify the `attach` or `launch` arguments in your debug scenario definition","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/debugger/dap_store.rs","lineNumber":420,"sourceCode":"                let executor = cx.background_executor().clone();\n\n                if let Some(locator) = locator.cloned() {\n                    cx.background_spawn(async move {\n                        let result = locator\n                            .run(build_command.clone(), executor)\n                            .await\n                            .log_with_level(log::Level::Error);\n                        if let Some(result) = result {\n                            return Ok(result);\n                        }\n\n                        anyhow::bail!(\n                            \"None of the locators for task `{}` completed successfully\",\n                            build_command.label\n                        )\n                    })\n                } else {\n                    Task::ready(Err(anyhow!(\n                        \"Couldn't find any locator for task `{}`. Specify the `attach` or `launch` arguments in your debug scenario definition\",\n                        build_command.label\n                    )))\n                }\n            }\n            DapStoreMode::Remote(remote) => {\n                let request = remote.upstream_client.request(proto::RunDebugLocators {\n                    project_id: remote.upstream_project_id,\n                    build_command: Some(build_command.to_proto()),\n                    locator: locator_name.to_owned(),\n                });\n                cx.background_spawn(async move {\n                    let response = request.await?;\n                    DebugRequest::from_proto(response)\n                })\n            }\n            DapStoreMode::Collab => {\n                Task::ready(Err(anyhow!(\"Debugging is not yet supported via collab\")))","sourceCodeStart":402,"sourceCodeEnd":438,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/project/src/debugger/dap_store.rs#L402-L438","documentation":"run_debug_locator ran the configured build command through every locator for the task, and none produced a runnable debug target (PID or binary path). Additionally, the definition lacks explicit `attach`/`launch` arguments that could serve as a fallback, so the scenario cannot be resolved.","triggerScenarios":"Thrown at crates/project/src/debugger/dap_store.rs:420 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add explicit `attach` or `launch` arguments to the debug scenario definition","Fix the build command so it succeeds and emits the locator's expected output (e.g. cargo JSON messages)","Check the locator logs (logged at error level) for why each locator failed"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"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"}