{"record":{"id":"07f510a5dd203801","repo":"ajeetdsouza/zoxide","slug":"invalid-entry-line","errorCode":null,"errorMessage":"invalid entry: {line}","messagePattern":"invalid entry: (.+?)","errorType":"console","errorClass":"ImportError","httpStatus":null,"severity":"error","filePath":"src/import/atuin.rs","lineNumber":54,"sourceCode":"    child: Child,\n    prev_cwd: Option<String>,\n}\n\nimpl Iter {\n    fn new(reader: BufReader<ChildStdout>, child: Child) -> Self {\n        Self { reader, buf: Vec::new(), line_num: 0, child, prev_cwd: None }\n    }\n\n    fn err(&self, source: anyhow::Error) -> ImportError {\n        ImportError { path: None, line_num: self.line_num, source }\n    }\n\n    fn parse_line(&self, line: &[u8]) -> Result<Dir<'static>, ImportError> {\n        let line =\n            str::from_utf8(line).map_err(|e| self.err(anyhow!(e).context(\"invalid utf-8\")))?;\n\n        let (timestamp, path) =\n            line.split_once('\\t').ok_or_else(|| self.err(anyhow!(\"invalid entry: {line}\")))?;\n\n        let timestamp_format =\n            time::macros::format_description!(\"[year]-[month]-[day] [hour]:[minute]:[second]\");\n        let timestamp = time::PrimitiveDateTime::parse(timestamp, timestamp_format)\n            .map_err(|e| self.err(anyhow!(e).context(format!(\"invalid timestamp: {timestamp:?}\"))))?\n            .assume_utc()\n            .unix_timestamp();\n\n        let dir = Dir {\n            path: Cow::Owned(path.to_string()),\n            rank: 1.0,\n            last_accessed: timestamp as Epoch,\n        };\n        Ok(dir)\n    }\n}\n\nimpl Iterator for Iter {","sourceCodeStart":36,"sourceCodeEnd":72,"githubUrl":"https://github.com/ajeetdsouza/zoxide/blob/8a3f76da90cc12547b593ca210b8fdfb1631d07f/src/import/atuin.rs#L36-L72","documentation":"Error \"invalid entry: {line}\" thrown in ajeetdsouza/zoxide.","triggerScenarios":"Thrown at src/import/atuin.rs:54 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the atuin history file format; the line does not match the expected entry format","Skip or fix the malformed line shown in the error"],"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-23T08:17:48.524Z"}