zed-industries/zed · error
no adapter running to send request: {request:?}
Error message
no adapter running to send request: {request:?} What it means
request_dap tried to send a DAP request over the client connection, but the adapter is not running (connection absent or already closed). The session state no longer has a live debug adapter to receive the request; typically the adapter crashed or the session was shutting down.
Source
Thrown at crates/project/src/debugger/session.rs:589
let request_clone = request.clone();
let connection = self.client.clone();
self.executor.spawn(async move {
let args = request_clone.to_dap();
let response = connection.request::<R::DapRequest>(args).await?;
request.response_from_dap(response)
})
}
}
impl SessionState {
pub(super) fn request_dap<R: LocalDapCommand>(&self, request: R) -> Task<Result<R::Response>>
where
<R::DapRequest as dap::requests::Request>::Response: 'static,
<R::DapRequest as dap::requests::Request>::Arguments: 'static + Send,
{
match self {
SessionState::Running(debug_adapter_client) => debug_adapter_client.request(request),
SessionState::Booting(_) => Task::ready(Err(anyhow!(
"no adapter running to send request: {request:?}"
))),
}
}
/// Did this debug session stop at least once?
pub(crate) fn has_ever_stopped(&self) -> bool {
match self {
SessionState::Booting(_) => false,
SessionState::Running(running_mode) => running_mode.has_ever_stopped,
}
}
fn stopped(&mut self) {
if let SessionState::Running(running) = self {
running.has_ever_stopped = true;
}
}View on GitHub (pinned to 9d272b0363)
Solutions
- Restart the debug session to relaunch the adapter
- Check the adapter's stderr/console output for a crash reason before the request
- Guard UI actions that issue DAP requests once the session enters a stopping state
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/project/src/debugger/session.rs:589 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@9d272b0363 (2026-08-20).
Data as JSON: /api/errors/deddd7ad7696b7da.
Report an issue: GitHub.