zed-industries/zed · error
no permalink available
Error message
no permalink available
What it means
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.
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
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at crates/project/src/git_store.rs:2173 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@916fc2b8cb (2026-08-20).
Data as JSON: /api/errors/91d41aaabf4238be.
Report an issue: GitHub.
Appendix: source
Thrown at crates/project/src/git_store.rs:2179
&self,
checkpoint: GitStoreCheckpoint,
cx: &mut App,
) -> Task<Result<()>> {
let repositories_by_work_dir_abs_path = self
.repositories
.values()
.map(|repo| (repo.read(cx).snapshot.work_directory_abs_path.clone(), repo))
.collect::<HashMap<_, _>>();
let mut tasks = Vec::new();
for (work_dir_abs_path, checkpoint) in checkpoint.checkpoints_by_work_dir_abs_path {
if let Some(repository) = repositories_by_work_dir_abs_path.get(&work_dir_abs_path) {
let restore = repository.update(cx, |repository, _| {
repository.restore_checkpoint(checkpoint)
});
tasks.push(async move { restore.await? });
}
}
cx.background_spawn(async move {
future::try_join_all(tasks).await?;
Ok(())
})
}
/// Compares two checkpoints, returning true if they are equal.
pub fn compare_checkpoints(
&self,
left: GitStoreCheckpoint,
mut right: GitStoreCheckpoint,
cx: &mut App,
) -> Task<Result<bool>> {
let repositories_by_work_dir_abs_path = self
.repositories
.values()
.map(|repo| (repo.read(cx).snapshot.work_directory_abs_path.clone(), repo))
.collect::<HashMap<_, _>>();View on GitHub (pinned to 916fc2b8cb)