astral-sh/uv · error
Missing `project.name` field in: {}
Error message
Missing `project.name` field in: {} What it means
Error "Missing `project.name` field in: {}" thrown in astral-sh/uv.
Source
Thrown at crates/uv/src/commands/project/version.rs:112
cache: &Cache,
workspace_cache: &WorkspaceCache,
printer: Printer,
preview: Preview,
malware_settings: MalwareCheckSettings,
) -> Result<ExitStatus> {
// Read the metadata
let project = find_target(
project_dir,
package.as_ref(),
explicit_project,
cache,
workspace_cache,
)
.await?;
let pyproject_path = project.root().join("pyproject.toml");
let Some(name) = project.project_name().cloned() else {
return Err(anyhow!(
"Missing `project.name` field in: {}",
pyproject_path.user_display()
));
};
// Short-circuit early for a frozen read
let is_read_only = value.is_none() && bump.is_empty();
if let Some(frozen_source) = frozen {
if is_read_only {
return Box::pin(print_frozen_version(
project,
&name,
frozen_source,
&settings,
client_builder,
&concurrency,
cache,
workspace_cache,View on GitHub (pinned to f1a42680ff)
When it happens
Trigger: Thrown at crates/uv/src/commands/project/version.rs:112 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/17d6730eef32fd23.
Report an issue: GitHub.