{"record":{"id":"91d41aaabf4238be","repo":"zed-industries/zed","slug":"no-permalink-available","errorCode":null,"errorMessage":"no permalink available","messagePattern":"no permalink available","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/git_store.rs","lineNumber":2179,"sourceCode":"        &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?;\n            Ok(())\n        })\n    }\n\n    /// Compares two checkpoints, returning true if they are equal.\n    pub fn compare_checkpoints(\n        &self,\n        left: GitStoreCheckpoint,\n        mut right: GitStoreCheckpoint,\n        cx: &mut App,\n    ) -> Task<Result<bool>> {\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<_, _>>();","sourceCodeStart":2161,"sourceCodeEnd":2197,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/project/src/git_store.rs#L2161-L2197","documentation":"Neither a git repo nor any known permalink provider matched the buffer's file, so no URL can be constructed for the selected lines. The file is not in a repository and not a Cargo-registry source that would have an alternative permalink scheme.","triggerScenarios":"Thrown at crates/project/src/git_store.rs:2173 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Open the file from within its git repository so a remote permalink can be built","For dependency sources, use go-to-definition from a project file so registry-path detection applies"],"exampleFix":null,"handlingStrategy":"fallback","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"}