{"record":{"id":"deddd7ad7696b7da","repo":"zed-industries/zed","slug":"no-adapter-running-to-send-request-request","errorCode":null,"errorMessage":"no adapter running to send request: {request:?}","messagePattern":"no adapter running to send request: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/debugger/session.rs","lineNumber":589,"sourceCode":"        let request_clone = request.clone();\n        let connection = self.client.clone();\n        self.executor.spawn(async move {\n            let args = request_clone.to_dap();\n            let response = connection.request::<R::DapRequest>(args).await?;\n            request.response_from_dap(response)\n        })\n    }\n}\n\nimpl SessionState {\n    pub(super) fn request_dap<R: LocalDapCommand>(&self, request: R) -> Task<Result<R::Response>>\n    where\n        <R::DapRequest as dap::requests::Request>::Response: 'static,\n        <R::DapRequest as dap::requests::Request>::Arguments: 'static + Send,\n    {\n        match self {\n            SessionState::Running(debug_adapter_client) => debug_adapter_client.request(request),\n            SessionState::Booting(_) => Task::ready(Err(anyhow!(\n                \"no adapter running to send request: {request:?}\"\n            ))),\n        }\n    }\n\n    /// Did this debug session stop at least once?\n    pub(crate) fn has_ever_stopped(&self) -> bool {\n        match self {\n            SessionState::Booting(_) => false,\n            SessionState::Running(running_mode) => running_mode.has_ever_stopped,\n        }\n    }\n\n    fn stopped(&mut self) {\n        if let SessionState::Running(running) = self {\n            running.has_ever_stopped = true;\n        }\n    }","sourceCodeStart":571,"sourceCodeEnd":607,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/project/src/debugger/session.rs#L571-L607","documentation":"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.","triggerScenarios":"Thrown at crates/project/src/debugger/session.rs:589 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9d272b036335401f339d024ea94968fd51016c40","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}