{"record":{"id":"310d9d1e20d06160","repo":"astral-sh/ruff","slug":"invalid-extend-value-e","errorCode":null,"errorMessage":"Invalid `extend` value: {e}","messagePattern":"Invalid `extend` value: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/ruff_workspace/src/configuration.rs","lineNumber":572,"sourceCode":"                .map_err(|e| anyhow!(\"Invalid `cache-dir` value: {e}\"))?,\n\n            exclude: options.exclude.map(|paths| {\n                paths\n                    .into_iter()\n                    .map(|pattern| {\n                        let absolute = GlobPath::normalize(&pattern, project_root);\n                        FilePattern::User(pattern, absolute)\n                    })\n                    .collect()\n            }),\n            extend: options\n                .extend\n                .map(|extend| {\n                    let extend = shellexpand::full(&extend);\n                    extend.map(|extend| PathBuf::from(extend.as_ref()))\n                })\n                .transpose()\n                .map_err(|e| anyhow!(\"Invalid `extend` value: {e}\"))?,\n            extend_exclude: options\n                .extend_exclude\n                .map(|paths| {\n                    paths\n                        .into_iter()\n                        .map(|pattern| {\n                            let absolute = GlobPath::normalize(&pattern, project_root);\n                            FilePattern::User(pattern, absolute)\n                        })\n                        .collect()\n                })\n                .unwrap_or_default(),\n            extend_include: options\n                .extend_include\n                .map(|paths| {\n                    paths\n                        .into_iter()\n                        .map(|pattern| {","sourceCodeStart":554,"sourceCodeEnd":590,"githubUrl":"https://github.com/astral-sh/ruff/blob/26f38c119cac42e4d320ba08f09224fdec74af2c/crates/ruff_workspace/src/configuration.rs#L554-L590","documentation":"An anyhow error raised while resolving the `extend` option in a Ruff configuration file: the value failed shell expansion or path resolution, so the referenced configuration file cannot be located. This is a user-configuration error surfaced when settings are loaded.","triggerScenarios":"Thrown at crates/ruff_workspace/src/configuration.rs:572 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the `extend` path exists and is readable","Fix any invalid shell variables or syntax in the `extend` value"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"26f38c119cac42e4d320ba08f09224fdec74af2c","analyzedAt":"2026-09-05T10:32:37.492Z","contentChangedAt":"2026-09-05T10:32:37.492Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}