{"record":{"id":"c85e6c698d8031e1","repo":"zed-industries/zed","slug":"remote-worktrees-can-t-yet-load-files","errorCode":null,"errorMessage":"remote worktrees can't yet load files","messagePattern":"remote worktrees can't yet load files","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/worktree/src/worktree.rs","lineNumber":926,"sourceCode":"        match self {\n            Worktree::Local(this) => this.wait_for_snapshot(scan_id).boxed(),\n            Worktree::Remote(this) => this.wait_for_snapshot(scan_id).boxed(),\n        }\n    }\n\n    #[cfg(feature = \"test-support\")]\n    pub fn has_update_observer(&self) -> bool {\n        match self {\n            Worktree::Local(this) => this.update_observer.is_some(),\n            Worktree::Remote(this) => this.update_observer.is_some(),\n        }\n    }\n\n    pub fn load_file(&self, path: &RelPath, cx: &Context<Worktree>) -> Task<Result<LoadedFile>> {\n        match self {\n            Worktree::Local(this) => this.load_file(path, cx),\n            Worktree::Remote(_) => {\n                Task::ready(Err(anyhow!(\"remote worktrees can't yet load files\")))\n            }\n        }\n    }\n\n    pub fn load_binary_file(\n        &self,\n        path: &RelPath,\n        cx: &Context<Worktree>,\n    ) -> Task<Result<LoadedBinaryFile>> {\n        match self {\n            Worktree::Local(this) => this.load_binary_file(path, cx),\n            Worktree::Remote(_) => {\n                Task::ready(Err(anyhow!(\"remote worktrees can't yet load binary files\")))\n            }\n        }\n    }\n\n    pub fn write_file(","sourceCodeStart":908,"sourceCodeEnd":944,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/worktree/src/worktree.rs#L908-L944","documentation":"Returned by Worktree::load_file when the worktree is the Remote variant. Reading file contents from a remote (collab) worktree is not implemented yet, so the task resolves immediately with this capability-gap sentinel.","triggerScenarios":"Thrown at crates/worktree/src/worktree.rs:920 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Open the file from the local project instead","Wait for remote file loading support"],"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"}