{"record":{"id":"506bb69e6ecc2d33","repo":"zed-industries/zed","slug":"adapter-is-not-a-valid-adapter-name","errorCode":null,"errorMessage":"{adapter}: is not a valid adapter name","messagePattern":"(.+?): is not a valid adapter name","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/debugger_ui/src/session/running.rs","lineNumber":1260,"sourceCode":"                            .map(|err| err.to_string())\n                            .unwrap_or_default())\n                    })?;\n                let request = dap_store\n                    .update(cx, |this, cx| {\n                        this.run_debug_locator(&locator_name, task, cx)\n                    })?\n                    .await?;\n\n                let zed_config = ZedDebugConfig {\n                    label: label.clone(),\n                    adapter: adapter.clone(),\n                    request,\n                    stop_on_entry: None,\n                };\n\n                let scenario = dap_registry\n                    .adapter(&adapter)\n                    .with_context(|| anyhow!(\"{adapter}: is not a valid adapter name\"))?.config_from_zed_format(zed_config)\n                    .await?;\n                config = scenario.config;\n                util::merge_non_null_json_value_into(extra_config, &mut config);\n\n                Self::substitute_variables_in_config(&mut config, &task_context);\n            } else {\n                let Err(e) = request_type else {\n                    unreachable!();\n                };\n                anyhow::bail!(\"Zed cannot determine how to run this debug scenario. `build` field was not provided and Debug Adapter won't accept provided configuration because: {e}\");\n            };\n\n            Ok(DebugTaskDefinition {\n                label,\n                adapter: DebugAdapterName(adapter),\n                config,\n                tcp_connection,\n            })","sourceCodeStart":1242,"sourceCodeEnd":1278,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/debugger_ui/src/session/running.rs#L1242-L1278","documentation":"resolve_scenario failed to resolve the debug scenario's adapter name to a configured debug adapter; the message names the unknown adapter. The `adapter` field in the scenario/task JSON does not match any registered adapter.","triggerScenarios":"Thrown at crates/debugger_ui/src/session/running.rs:1260 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the adapter name in the task/scenario to a registered one (e.g. 'lldb', 'python')","Install or enable the extension providing that adapter"],"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"}