{"record":{"id":"7813cb8791d39186","repo":"zed-industries/zed","slug":"no-parent-for-path","errorCode":null,"errorMessage":"no parent for path {:?}","messagePattern":"no parent for path (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/worktree_store.rs","lineNumber":640,"sourceCode":"        };\n        let Some(old_entry) = old_worktree.read(cx).entry_for_id(entry_id).cloned() 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 abs_old_path = old_worktree.read(cx).absolutize(&old_entry.path);\n                let new_worktree_ref = new_worktree.read(cx);\n                let is_root_entry = new_worktree_ref\n                    .root_entry()\n                    .is_some_and(|e| e.id == entry_id);\n                let abs_new_path = if is_root_entry {\n                    let abs_path = new_worktree_ref.abs_path();\n                    let Some(root_parent_path) = abs_path.parent() else {\n                        return Task::ready(Err(anyhow!(\"no parent for path {:?}\", abs_path)));\n                    };\n                    root_parent_path.join(new_project_path.path.as_std_path())\n                } else {\n                    new_worktree_ref.absolutize(&new_project_path.path)\n                };\n\n                let fs = fs.clone();\n                let case_sensitive = new_worktree\n                    .read(cx)\n                    .as_local()\n                    .unwrap()\n                    .fs_is_case_sensitive();\n\n                let do_rename =\n                    async move |fs: &dyn Fs, old_path: &Path, new_path: &Path, overwrite| {\n                        fs.rename(\n                            &old_path,\n                            &new_path,","sourceCodeStart":622,"sourceCodeEnd":658,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/project/src/worktree_store.rs#L622-L658","documentation":"In WorktreeStore::rename_entry: the new path has no parent entry (worktree_for_id found nothing for new_project_path.worktree_id or the parent path is unresolvable), so the entry cannot be moved to the destination.","triggerScenarios":"Thrown at crates/project/src/worktree_store.rs:640 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the destination parent directory first","Rename into an existing directory"],"exampleFix":null,"handlingStrategy":"validation","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-14T00:17:10.932Z"}