{"record":{"id":"4c1362373216c4de","repo":"astral-sh/uv","slug":"could-not-find-an-index-named-name","errorCode":null,"errorMessage":"Could not find an index named `{name}`","messagePattern":"Could not find an index named `(.+?)`","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/uv-cli/src/lib.rs","lineNumber":1394,"sourceCode":"                let mut index = index.clone();\n                // Keep relative paths anchored to their configuration file without marking them\n                // as absolute when CLI settings are rebased or written back to a project.\n                if let IndexUrl::Path(url) = index.url()\n                    && !url.was_given_absolute()\n                {\n                    index.url = IndexUrl::from(VerbatimUrl::from_url(index.raw_url().clone()));\n                }\n\n                return Ok(Index {\n                    default,\n                    explicit: false,\n                    origin: Some(Origin::Cli),\n                    ..index\n                });\n            }\n\n            if preview_enabled && !path_exists {\n                return Err(anyhow!(\"Could not find an index named `{name}`\"));\n            }\n        }\n\n        Ok(Index {\n            default,\n            origin: Some(Origin::Cli),\n            ..Index::from_str(name.as_ref())?\n        })\n    }\n}\n\n/// A potentially unresolved index.\n#[expect(clippy::large_enum_variant)]\n#[derive(Debug, Clone, PartialEq, Eq)]\npub enum IndexArg {\n    /// A usable index with a URL.\n    Resolved(Index),\n    /// An unresolved index specification.","sourceCodeStart":1376,"sourceCodeEnd":1412,"githubUrl":"https://github.com/astral-sh/uv/blob/f1a42680ff5272232d65748acf338b19778dde24/crates/uv-cli/src/lib.rs#L1376-L1412","documentation":"Error \"Could not find an index named `{name}`\" thrown in astral-sh/uv.","triggerScenarios":"Thrown at crates/uv-cli/src/lib.rs:1394 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"}