ajeetdsouza/zoxide · error · anyhow::Error
path not found in database: {path}
Error message
path not found in database: {path} What it means
Error "path not found in database: {path}" thrown in ajeetdsouza/zoxide.
Source
Thrown at src/cmd/remove.rs:16
use anyhow::{Result, bail};
use crate::cmd::{Remove, Run};
use crate::db::Database;
use crate::util;
impl Run for Remove {
fn run(&self) -> Result<()> {
let mut db = Database::open()?;
for path in &self.paths {
if !db.remove(path) {
let path_abs = util::resolve_path(path)?;
let path_abs = util::path_to_str(&path_abs)?;
if path_abs == path || !db.remove(path_abs) {
bail!("path not found in database: {path}")
}
}
}
db.save()
}
}
View on GitHub (pinned to 8a3f76da90)
Solutions
- Verify the path exists in the database with 'zoxide query'
- Add the path first with 'zoxide add <path>'
When it happens
Trigger: Thrown at src/cmd/remove.rs:16 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/9d10c6c5f7041a9f.
Report an issue: GitHub.