zed-industries/zed · error · anyhow::Error

No project associated with editor

Error message

No project associated with editor

What it means

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.

Source

Thrown at crates/repl/src/session.rs:352

                    cx,
                )
            }
            KernelSpecification::SshRemote(spec) => {
                let project = self
                    .editor
                    .upgrade()
                    .and_then(|editor| editor.read(cx).project().cloned());
                if let Some(project) = project {
                    SshRunningKernel::new(
                        spec,
                        working_directory,
                        project,
                        session_view,
                        window,
                        cx,
                    )
                } else {
                    Task::ready(Err(anyhow::anyhow!("No project associated with editor")))
                }
            }
            KernelSpecification::WslRemote(spec) => WslRunningKernel::new(
                spec,
                entity_id,
                working_directory,
                self.fs.clone(),
                session_view,
                window,
                cx,
            ),
        };

        let pending_kernel = cx
            .spawn(async move |this, cx| {
                let kernel: anyhow::Result<Box<dyn crate::kernels::RunningKernel>> = kernel.await;

                match kernel {

View on GitHub (pinned to f4178619ac)

Solutions

  1. Restart the kernel from an editor that still belongs to a project
Defensive patterns

Strategy: type-guard

When it happens

Trigger: Thrown at crates/repl/src/session.rs:352 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20). Data as JSON: /api/errors/f0024b8ff4fd6348. Report an issue: GitHub.