{"record":{"id":"f0024b8ff4fd6348","repo":"zed-industries/zed","slug":"no-project-associated-with-editor","errorCode":null,"errorMessage":"No project associated with editor","messagePattern":"No project associated with editor","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/repl/src/session.rs","lineNumber":352,"sourceCode":"                    cx,\n                )\n            }\n            KernelSpecification::SshRemote(spec) => {\n                let project = self\n                    .editor\n                    .upgrade()\n                    .and_then(|editor| editor.read(cx).project().cloned());\n                if let Some(project) = project {\n                    SshRunningKernel::new(\n                        spec,\n                        working_directory,\n                        project,\n                        session_view,\n                        window,\n                        cx,\n                    )\n                } else {\n                    Task::ready(Err(anyhow::anyhow!(\"No project associated with editor\")))\n                }\n            }\n            KernelSpecification::WslRemote(spec) => WslRunningKernel::new(\n                spec,\n                entity_id,\n                working_directory,\n                self.fs.clone(),\n                session_view,\n                window,\n                cx,\n            ),\n        };\n\n        let pending_kernel = cx\n            .spawn(async move |this, cx| {\n                let kernel: anyhow::Result<Box<dyn crate::kernels::RunningKernel>> = kernel.await;\n\n                match kernel {","sourceCodeStart":334,"sourceCodeEnd":370,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/repl/src/session.rs#L334-L370","documentation":"Raised in session.rs start_kernel() for KernelSpecification::SshRemote: the editor's weak handle was gone or the editor has no project, and an SshRunningKernel needs the project to connect. The SSH kernel cannot be started in this state.","triggerScenarios":"Thrown at crates/repl/src/session.rs:352 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Restart the kernel from an editor that still belongs to a project"],"exampleFix":null,"handlingStrategy":"type-guard","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"}