ajeetdsouza/zoxide · error · anyhow::Error
current database is not empty, specify --merge to continue a
Error message
current database is not empty, specify --merge to continue anyway
What it means
Error "current database is not empty, specify --merge to continue anyway" thrown in ajeetdsouza/zoxide.
Source
Thrown at src/cmd/import.rs:11
use anyhow::{Result, bail};
use crate::cmd::{Import, ImportFrom, Run};
use crate::db::Database;
use crate::import;
impl Run for Import {
fn run(&self) -> Result<()> {
let mut db = Database::open()?;
if !self.merge && !db.dirs().is_empty() {
bail!("current database is not empty, specify --merge to continue anyway");
}
match self.from {
ImportFrom::Atuin => import::run(&import::Atuin {}, &mut db)?,
ImportFrom::Autojump => import::run(&import::Autojump {}, &mut db)?,
ImportFrom::Fasd => import::run(&import::Fasd {}, &mut db)?,
ImportFrom::Z => import::run(&import::Z {}, &mut db)?,
ImportFrom::ZLua => import::run(&import::ZLua {}, &mut db)?,
ImportFrom::ZshZ => import::run(&import::ZshZ {}, &mut db)?,
}
db.save()
}
}
View on GitHub (pinned to 8a3f76da90)
Solutions
- Re-run the import with the --merge flag to merge into the existing database
- Remove the existing database file first if you want a fresh import
When it happens
Trigger: Thrown at src/cmd/import.rs:11 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/b5d9ab49842aeea7.
Report an issue: GitHub.