ajeetdsouza/zoxide · error · anyhow::Error

could not read from atuin

Error message

could not read from atuin

What it means

Error "could not read from atuin" thrown in ajeetdsouza/zoxide.

Solutions

  1. Ensure atuin is installed and its history file is readable
  2. Check file permissions on the atuin data directory

When it happens

Trigger: Thrown at src/import/atuin.rs:104 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ajeetdsouza/zoxide@8a3f76da90 (2026-08-19). Data as JSON: /api/errors/ff4bd014ad3eab1b. Report an issue: GitHub.

Appendix: source

Thrown at src/import/atuin.rs:104

                    if self.buf.is_empty() {
                        continue;
                    }

                    let result = self.parse_line(&self.buf);
                    match &result {
                        Ok(dir) => {
                            let path = dir.path.as_ref();
                            if self.prev_cwd.as_deref() == Some(path) {
                                continue; // dedup consecutive same-path entries
                            }
                            self.prev_cwd = Some(path.to_string());
                            return Some(result);
                        }
                        Err(_) => return Some(result),
                    }
                }
                Err(e) => {
                    return Some(Err(self.err(anyhow!(e).context("could not read from atuin"))));
                }
            }
        }
    }
}

impl Drop for Iter {
    fn drop(&mut self) {
        _ = self.child.kill();
        _ = self.child.wait();
    }
}

View on GitHub (pinned to 8a3f76da90)