{"record":{"id":"9af30488f851fb66","repo":"zed-industries/zed","slug":"remote-worktrees-can-t-yet-load-binary-files","errorCode":null,"errorMessage":"remote worktrees can't yet load binary files","messagePattern":"remote worktrees can't yet load binary files","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/worktree/src/worktree.rs","lineNumber":939,"sourceCode":"\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(\n        &self,\n        path: Arc<RelPath>,\n        text: Rope,\n        line_ending: LineEnding,\n        encoding: &'static Encoding,\n        has_bom: bool,\n        cx: &Context<Worktree>,\n    ) -> Task<Result<Arc<File>>> {\n        match self {\n            Worktree::Local(this) => {\n                this.write_file(path, text, line_ending, encoding, has_bom, cx)\n            }\n            Worktree::Remote(_) => {","sourceCodeStart":921,"sourceCodeEnd":957,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/worktree/src/worktree.rs#L921-L957","documentation":"Returned by Worktree::load_binary_file when the worktree is the Remote variant. Binary file loading over a remote connection is not implemented yet, so the task fails immediately with this capability-gap sentinel.","triggerScenarios":"Thrown at crates/worktree/src/worktree.rs:933 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Access the binary file from the local machine"],"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-14T05:17:10.506Z"}