{"record":{"id":"80340d9b8c4b4e21","repo":"ajeetdsouza/zoxide","slug":"invalid-utf-8","errorCode":null,"errorMessage":"invalid utf-8","messagePattern":"invalid utf-8","errorType":"exception","errorClass":"ImportError","httpStatus":null,"severity":"error","filePath":"src/import/atuin.rs","lineNumber":51,"sourceCode":"    buf: Vec<u8>,\n    line_num: usize,\n\n    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    }","sourceCodeStart":33,"sourceCodeEnd":69,"githubUrl":"https://github.com/ajeetdsouza/zoxide/blob/ee594e690642c7d86edd960603dcc1950c02baab/src/import/atuin.rs#L33-L69","documentation":"Error \"invalid utf-8\" thrown in ajeetdsouza/zoxide.","triggerScenarios":"Thrown at src/import/atuin.rs:51 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ee594e690642c7d86edd960603dcc1950c02baab","analyzedAt":"2026-08-16T10:52:10.953Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}