{"record":{"id":"11efb7950e5a9fbc","repo":"astral-sh/ruff","slug":"32603","errorCode":"-32603","errorMessage":"uv was not found; is it installed and on the PATH?","messagePattern":"uv was not found; is it installed and on the PATH\\?","errorType":"error_code","errorClass":"ruff_server::server::api::Error","httpStatus":null,"severity":"error","filePath":"crates/ruff_server/src/format.rs","lineNumber":315,"sourceCode":"        command.stdout(Stdio::piped());\n        command.stderr(Stdio::piped());\n\n        command\n    }\n\n    /// Execute the format command on the given source.\n    fn format(\n        &self,\n        source: &str,\n        path: &Path,\n        range_with_index: Option<(TextRange, &LineIndex)>,\n    ) -> crate::Result<FormatResult> {\n        let mut command =\n            self.build_command(path, range_with_index.map(|(r, idx)| (r, idx, source)));\n        let mut child = match command.spawn() {\n            Ok(child) => child,\n            Err(err) if err.kind() == std::io::ErrorKind::NotFound => {\n                anyhow::bail!(\"uv was not found; is it installed and on the PATH?\")\n            }\n            Err(err) => return Err(err).context(\"Failed to spawn uv\"),\n        };\n\n        let mut stdin = child\n            .stdin\n            .take()\n            .context(\"Failed to get stdin from format subprocess\")?;\n        stdin\n            .write_all(source.as_bytes())\n            .context(\"Failed to write to stdin\")?;\n        drop(stdin);\n\n        let result = child\n            .wait_with_output()\n            .context(\"Failed to get output from format subprocess\")?;\n\n        if !result.status.success() {","sourceCodeStart":297,"sourceCodeEnd":333,"githubUrl":"https://github.com/astral-sh/ruff/blob/672bb4edf04c84f8b0753346359daee4057158f2/crates/ruff_server/src/format.rs#L297-L333","documentation":"Error \"uv was not found; is it installed and on the PATH?\" thrown in astral-sh/ruff.","triggerScenarios":"Thrown at crates/ruff_server/src/format.rs:315 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":"672bb4edf04c84f8b0753346359daee4057158f2","analyzedAt":"2026-08-16T08:54:05.464Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}