{"record":{"id":"9d10c6c5f7041a9f","repo":"ajeetdsouza/zoxide","slug":"path-not-found-in-database-path","errorCode":null,"errorMessage":"path not found in database: {path}","messagePattern":"path not found in database: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/cmd/remove.rs","lineNumber":16,"sourceCode":"use anyhow::{Result, bail};\n\nuse crate::cmd::{Remove, Run};\nuse crate::db::Database;\nuse crate::util;\n\nimpl Run for Remove {\n    fn run(&self) -> Result<()> {\n        let mut db = Database::open()?;\n\n        for path in &self.paths {\n            if !db.remove(path) {\n                let path_abs = util::resolve_path(path)?;\n                let path_abs = util::path_to_str(&path_abs)?;\n                if path_abs == path || !db.remove(path_abs) {\n                    bail!(\"path not found in database: {path}\")\n                }\n            }\n        }\n\n        db.save()\n    }\n}\n","sourceCodeStart":1,"sourceCodeEnd":24,"githubUrl":"https://github.com/ajeetdsouza/zoxide/blob/8a3f76da90cc12547b593ca210b8fdfb1631d07f/src/cmd/remove.rs#L1-L24","documentation":"Error \"path not found in database: {path}\" thrown in ajeetdsouza/zoxide.","triggerScenarios":"Thrown at src/cmd/remove.rs:16 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the path exists in the database with 'zoxide query'","Add the path first with 'zoxide add <path>'"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8a3f76da90cc12547b593ca210b8fdfb1631d07f","analyzedAt":"2026-08-19T03:25:13.308Z","contentChangedAt":"2026-08-19T03:25:13.308Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}