astral-sh/ruff · error · ruff_server::server::api::Error
-32603
-32603
Error message
uv was not found; is it installed and on the PATH?
What it means
Error "uv was not found; is it installed and on the PATH?" thrown in astral-sh/ruff.
Source
Thrown at crates/ruff_server/src/format.rs:315
command.stdout(Stdio::piped());
command.stderr(Stdio::piped());
command
}
/// Execute the format command on the given source.
fn format(
&self,
source: &str,
path: &Path,
range_with_index: Option<(TextRange, &LineIndex)>,
) -> crate::Result<FormatResult> {
let mut command =
self.build_command(path, range_with_index.map(|(r, idx)| (r, idx, source)));
let mut child = match command.spawn() {
Ok(child) => child,
Err(err) if err.kind() == std::io::ErrorKind::NotFound => {
anyhow::bail!("uv was not found; is it installed and on the PATH?")
}
Err(err) => return Err(err).context("Failed to spawn uv"),
};
let mut stdin = child
.stdin
.take()
.context("Failed to get stdin from format subprocess")?;
stdin
.write_all(source.as_bytes())
.context("Failed to write to stdin")?;
drop(stdin);
let result = child
.wait_with_output()
.context("Failed to get output from format subprocess")?;
if !result.status.success() {View on GitHub (pinned to 672bb4edf0)
When it happens
Trigger: Thrown at crates/ruff_server/src/format.rs:315 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of astral-sh/ruff@672bb4edf0 (2026-08-16).
Data as JSON: /api/errors/11efb7950e5a9fbc.
Report an issue: GitHub.