{"record":{"id":"a70bcf8bd436cffa","repo":"ajeetdsouza/zoxide","slug":"could-not-find-fzf-is-it-installed","errorCode":null,"errorMessage":"could not find fzf, is it installed?","messagePattern":"could not find fzf, is it installed\\?","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/util.rs","lineNumber":115,"sourceCode":"    {\n        self.0.env(key, val);\n        self\n    }\n\n    pub fn envs<I, K, V>(&mut self, vars: I) -> &mut Self\n    where\n        I: IntoIterator<Item = (K, V)>,\n        K: AsRef<OsStr>,\n        V: AsRef<OsStr>,\n    {\n        self.0.envs(vars);\n        self\n    }\n\n    pub fn spawn(&mut self) -> Result<FzfChild> {\n        match self.0.spawn() {\n            Ok(child) => Ok(FzfChild(child)),\n            Err(e) if e.kind() == io::ErrorKind::NotFound => bail!(Self::ERR_FZF_NOT_FOUND),\n            Err(e) => Err(e).context(\"could not launch fzf\"),\n        }\n    }\n}\n\npub struct FzfChild(Child);\n\nimpl FzfChild {\n    pub fn write(&mut self, dir: &Dir, now: Epoch) -> Result<Option<String>> {\n        let handle = self.0.stdin.as_mut().unwrap();\n        match write!(handle, \"{}\\0\", dir.display().with_score(now).with_separator('\\t')) {\n            Ok(()) => Ok(None),\n            Err(e) if e.kind() == io::ErrorKind::BrokenPipe => self.wait().map(Some),\n            Err(e) => Err(e).context(\"could not write to fzf\"),\n        }\n    }\n\n    pub fn wait(&mut self) -> Result<String> {","sourceCodeStart":97,"sourceCodeEnd":133,"githubUrl":"https://github.com/ajeetdsouza/zoxide/blob/8a3f76da90cc12547b593ca210b8fdfb1631d07f/src/util.rs#L97-L133","documentation":"Error \"could not find fzf, is it installed?\" thrown in ajeetdsouza/zoxide.","triggerScenarios":"Thrown at src/util.rs:115 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install fzf using your package manager (e.g. 'apt install fzf', 'brew install fzf')","Ensure fzf is on your 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-23T08:17:48.524Z"}