{"record":{"id":"e6251e282749e9bc","repo":"ajeetdsouza/zoxide","slug":"invalid-entry-line-e6251e","errorCode":null,"errorMessage":"invalid entry: {line}","messagePattern":"invalid entry: (.+?)","errorType":"exception","errorClass":"ImportError","httpStatus":null,"severity":"error","filePath":"src/import/autojump.rs","lineNumber":45,"sourceCode":"    line_num: usize,\n    path: PathBuf,\n}\n\nimpl<R: BufRead> Iter<R> {\n    fn new(reader: R, path: PathBuf) -> Self {\n        Self { reader, buf: Vec::new(), line_num: 0, path }\n    }\n\n    fn err(&self, source: anyhow::Error) -> ImportError {\n        ImportError { path: Some(self.path.clone()), 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 (rank, path) =\n            line.split_once('\\t').ok_or_else(|| self.err(anyhow!(\"invalid entry: {line}\")))?;\n        let rank = rank\n            .parse::<f64>()\n            .map_err(|e| self.err(anyhow!(e).context(format!(\"invalid rank: {rank}\"))))?;\n\n        // Normalize the rank using a sigmoid function. Don't import actual ranks from\n        // autojump, since its scoring algorithm is very different and might\n        // take a while to normalize.\n        let rank = sigmoid(rank);\n\n        Ok(Dir { path: Cow::Owned(path.to_string()), rank, last_accessed: 0 })\n    }\n}\n\nimpl<R: BufRead> Iterator for Iter<R> {\n    type Item = Result<Dir<'static>, ImportError>;\n\n    fn next(&mut self) -> Option<Self::Item> {\n        loop {","sourceCodeStart":27,"sourceCodeEnd":63,"githubUrl":"https://github.com/ajeetdsouza/zoxide/blob/ee594e690642c7d86edd960603dcc1950c02baab/src/import/autojump.rs#L27-L63","documentation":"Error \"invalid entry: {line}\" thrown in ajeetdsouza/zoxide.","triggerScenarios":"Thrown at src/import/autojump.rs:45 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"}