{"record":{"id":"c9ee488ffc36bcc8","repo":"astral-sh/uv","slug":"package-name-not-found-in-workspace","errorCode":null,"errorMessage":"Package `{name}` not found in workspace","messagePattern":"Package `(.+?)` not found in workspace","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/uv/src/commands/project/check.rs","lineNumber":114,"sourceCode":"                workspace_cache,\n                name.clone(),\n            )\n            .await\n        } else {\n            VirtualProject::discover(\n                project_dir,\n                &DiscoveryOptions::default(),\n                cache,\n                workspace_cache,\n            )\n            .await\n        };\n\n        match discovery {\n            Ok(project) => {\n                for name in &package {\n                    if !project.workspace().packages().contains_key(name) {\n                        anyhow::bail!(\"Package `{name}` not found in workspace\");\n                    }\n                }\n                Some(project)\n            }\n            Err(err) => {\n                if let WorkspaceErrorKind::NoSuchMember(name, _) = err.as_ref() {\n                    anyhow::bail!(\"Package `{name}` not found in workspace\");\n                }\n                if !all_packages\n                    && package.is_empty()\n                    && matches!(\n                        err.as_ref(),\n                        WorkspaceErrorKind::MissingPyprojectToml\n                            | WorkspaceErrorKind::MissingProject(_)\n                            | WorkspaceErrorKind::NonWorkspace(_),\n                    )\n                {\n                    None","sourceCodeStart":96,"sourceCodeEnd":132,"githubUrl":"https://github.com/astral-sh/uv/blob/f1a42680ff5272232d65748acf338b19778dde24/crates/uv/src/commands/project/check.rs#L96-L132","documentation":"Error \"Package `{name}` not found in workspace\" thrown in astral-sh/uv.","triggerScenarios":"Thrown at crates/uv/src/commands/project/check.rs:114 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"}