{"record":{"id":"fee296fe7980cc9a","repo":"zed-industries/zed","slug":"buffer-has-no-file","errorCode":null,"errorMessage":"buffer has no file","messagePattern":"buffer has no file","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/git_store.rs","lineNumber":2163,"sourceCode":"                checkpoints.push(repository.checkpoint().map(|checkpoint| checkpoint?));\n            });\n        }\n\n        cx.background_executor().spawn(async move {\n            let checkpoints = future::try_join_all(checkpoints).await?;\n            Ok(GitStoreCheckpoint {\n                checkpoints_by_work_dir_abs_path: work_directory_abs_paths\n                    .into_iter()\n                    .zip(checkpoints)\n                    .collect(),\n            })\n        })\n    }\n\n    pub fn restore_checkpoint(\n        &self,\n        checkpoint: GitStoreCheckpoint,\n        cx: &mut App,\n    ) -> Task<Result<()>> {\n        let repositories_by_work_dir_abs_path = self\n            .repositories\n            .values()\n            .map(|repo| (repo.read(cx).snapshot.work_directory_abs_path.clone(), repo))\n            .collect::<HashMap<_, _>>();\n\n        let mut tasks = Vec::new();\n        for (work_dir_abs_path, checkpoint) in checkpoint.checkpoints_by_work_dir_abs_path {\n            if let Some(repository) = repositories_by_work_dir_abs_path.get(&work_dir_abs_path) {\n                let restore = repository.update(cx, |repository, _| {\n                    repository.restore_checkpoint(checkpoint)\n                });\n                tasks.push(async move { restore.await? });\n            }\n        }\n        cx.background_spawn(async move {\n            future::try_join_all(tasks).await?;","sourceCodeStart":2145,"sourceCodeEnd":2181,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/project/src/git_store.rs#L2145-L2181","documentation":"get_permalink_to_line requires a file-backed buffer, but File::from_dyn on the buffer's file returned None (untitled buffer or non-local file), so there is no repository path from which to build a permalink.","triggerScenarios":"Thrown at crates/project/src/git_store.rs:2157 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Save the buffer to a file inside a git worktree and retry","Disable permalink/copy-permalink UI actions for buffers without a local file"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"916fc2b8cb3a815cbef4a3b40e13081be72036b6","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}