{"record":{"id":"88899f2ae34d31ce","repo":"astral-sh/uv","slug":"failed-to-find-the-name-s-version-in-the-frozen","errorCode":null,"errorMessage":"Failed to find the {name}'s version in the frozen lockfile","messagePattern":"Failed to find the (.+?)'s version in the frozen lockfile","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/uv/src/commands/project/version.rs","lineNumber":519,"sourceCode":"    )\n    .await\n    {\n        Ok(result) => result.into_lock(),\n        Err(ProjectError::Operation(err)) => {\n            return diagnostics::OperationDiagnostic::default()\n                .report(err)\n                .map_or(Ok(ExitStatus::Failure), |err| Err(err.into()));\n        }\n        Err(err) => return Err(err.into()),\n    };\n\n    // Try to find the package of interest in the lock\n    let Some(package) = lock\n        .packages()\n        .iter()\n        .find(|package| package.name() == name)\n    else {\n        return Err(anyhow!(\n            \"Failed to find the {name}'s version in the frozen lockfile\"\n        ));\n    };\n    let Some(version) = package.version() else {\n        return Err(anyhow!(\n            \"Failed to find the {name}'s version in the frozen lockfile\"\n        ));\n    };\n\n    // Finally, print!\n    let old_version = ProjectVersionInfo::new(Some(name), version);\n    print_version(old_version, None, short, output_format, printer)?;\n\n    Ok(ExitStatus::Success)\n}\n\n/// Re-lock and re-sync the project after a series of edits.\nasync fn lock_and_sync(","sourceCodeStart":501,"sourceCodeEnd":537,"githubUrl":"https://github.com/astral-sh/uv/blob/f1a42680ff5272232d65748acf338b19778dde24/crates/uv/src/commands/project/version.rs#L501-L537","documentation":"Error \"Failed to find the {name}'s version in the frozen lockfile\" thrown in astral-sh/uv.","triggerScenarios":"Thrown at crates/uv/src/commands/project/version.rs:519 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":"f1a42680ff5272232d65748acf338b19778dde24","analyzedAt":"2026-08-16T04:51:47.599Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}