astral-sh/uv · error
Failed to query Ruff version
Error message
Failed to query Ruff version
What it means
Error "Failed to query Ruff version" thrown in astral-sh/uv.
Source
Thrown at crates/uv/src/commands/project/format.rs:87
| WorkspaceErrorKind::NonWorkspace(_)
) =>
{
project_dir.to_owned()
}
Err(err) => return Err(err.into()),
}
};
// Determine the version to use and get the path to Ruff.
let ruff_path = if let Some(ruff_path) = ruff_path {
if show_version {
let output = Command::new(&ruff_path)
.arg("--version")
.output()
.await
.context("Failed to query Ruff version")?;
if !output.status.success() {
anyhow::bail!("Failed to query Ruff version");
}
write!(
printer.stderr(),
"{}",
String::from_utf8_lossy(&output.stdout)
)?;
}
ruff_path
} else {
let retry_policy = client_builder.retry_policy();
// Python downloads are performing their own retries to catch stream errors, disable the
// default retries to avoid the middleware from performing uncontrolled retries.
let client = client_builder.retries(0).build()?;
let reporter = BinaryDownloadReporter::single(printer);
let bin_version = version
.as_deref()
.map(BinVersion::from_str)View on GitHub (pinned to f1a42680ff)
When it happens
Trigger: Thrown at crates/uv/src/commands/project/format.rs:87 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of astral-sh/uv@f1a42680ff (2026-08-16).
Data as JSON: /api/errors/6cd7369e8798b27f.
Report an issue: GitHub.