{"record":{"id":"bf5ece65ca8bc011","repo":"zed-industries/zed","slug":"no-such-worktree-bf5ece","errorCode":null,"errorMessage":"no such worktree","messagePattern":"no such worktree","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/worktree_store.rs","lineNumber":546,"sourceCode":"                .entry_for_id(entry_id)\n                .map(|e| (worktree.clone(), e))\n        })\n    }\n\n    pub fn entry_for_path<'a>(&'a self, path: &ProjectPath, cx: &'a App) -> Option<&'a Entry> {\n        self.worktree_for_id(path.worktree_id, cx)?\n            .read(cx)\n            .entry_for_path(&path.path)\n    }\n\n    pub fn copy_entry(\n        &mut self,\n        entry_id: ProjectEntryId,\n        new_project_path: ProjectPath,\n        cx: &mut Context<Self>,\n    ) -> Task<Result<Option<Entry>>> {\n        let Some(old_worktree) = self.worktree_for_entry(entry_id, cx) else {\n            return Task::ready(Err(anyhow!(\"no such worktree\")));\n        };\n        let Some(old_entry) = old_worktree.read(cx).entry_for_id(entry_id) else {\n            return Task::ready(Err(anyhow!(\"no such entry\")));\n        };\n        let Some(new_worktree) = self.worktree_for_id(new_project_path.worktree_id, cx) else {\n            return Task::ready(Err(anyhow!(\"no such worktree\")));\n        };\n\n        match &self.state {\n            WorktreeStoreState::Local { fs } => {\n                let old_abs_path = old_worktree.read(cx).absolutize(&old_entry.path);\n                let new_abs_path = new_worktree.read(cx).absolutize(&new_project_path.path);\n                let fs = fs.clone();\n                let copy = cx.background_spawn(async move {\n                    copy_recursive(\n                        fs.as_ref(),\n                        &old_abs_path,\n                        &new_abs_path,","sourceCodeStart":528,"sourceCodeEnd":564,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/project/src/worktree_store.rs#L528-L564","documentation":"Returned by copy_entry when worktree_for_entry finds no worktree containing the source ProjectEntryId (the entry was deleted or belongs to a removed worktree). The copy cannot proceed without the source worktree and fails with this sentinel.","triggerScenarios":"Thrown at crates/project/src/worktree_store.rs:546 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Refresh the project panel and retry the copy","Verify the source entry still exists"],"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"}