{"record":{"id":"f57af6ea13cd17b9","repo":"zed-industries/zed","slug":"no-such-path","errorCode":null,"errorMessage":"no such path","messagePattern":"no such path","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/project.rs","lineNumber":3200,"sourceCode":"        abs_path: impl AsRef<Path>,\n        cx: &mut Context<Self>,\n    ) -> Task<Result<Entity<Buffer>>> {\n        let worktree_task = self.find_or_create_worktree(abs_path.as_ref(), false, cx);\n        cx.spawn(async move |this, cx| {\n            let (worktree, relative_path) = worktree_task.await?;\n            this.update(cx, |this, cx| {\n                this.open_buffer((worktree.read(cx).id(), relative_path), cx)\n            })?\n            .await\n        })\n    }\n\n    #[cfg(feature = \"test-support\")]\n    pub fn open_local_buffer_with_lsp(\n        &mut self,\n        abs_path: impl AsRef<Path>,\n        cx: &mut Context<Self>,\n    ) -> Task<Result<(Entity<Buffer>, lsp_store::OpenLspBufferHandle)>> {\n        if let Some((worktree, relative_path)) = self.find_worktree(abs_path.as_ref(), cx) {\n            self.open_buffer_with_lsp((worktree.read(cx).id(), relative_path), cx)\n        } else {\n            Task::ready(Err(anyhow!(\"no such path\")))\n        }\n    }\n\n    pub fn download_file(\n        &mut self,\n        worktree_id: WorktreeId,\n        path: Arc<RelPath>,\n        destination_path: PathBuf,\n        cx: &mut Context<Self>,\n    ) -> Task<Result<()>> {\n        log::debug!(\n            \"download_file called: worktree_id={:?}, path={:?}, destination={:?}\",\n            worktree_id,\n            path,","sourceCodeStart":3182,"sourceCodeEnd":3218,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/project/src/project.rs#L3182-L3218","documentation":"Raised when opening a buffer from an absolute path: the worktree-resolution task failed because no open worktree contains the absolute path ('no such path'). The file lies outside every registered project worktree.","triggerScenarios":"Thrown at crates/project/src/project.rs:3187 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the file path exists in an open worktree","Add the parent directory as a worktree"],"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"}