{"record":{"id":"459a9539dbcda23f","repo":"astral-sh/ruff","slug":"invalid-cache-dir-value-e","errorCode":null,"errorMessage":"Invalid `cache-dir` value: {e}","messagePattern":"Invalid `cache-dir` value: (.+?)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/ruff_workspace/src/configuration.rs","lineNumber":553,"sourceCode":"            lint.common = lint.common.combine(options.lint_top_level.0);\n            lint\n        } else {\n            LintOptions {\n                common: options.lint_top_level.0,\n                ..LintOptions::default()\n            }\n        };\n\n        Ok(Self {\n            builtins: options.builtins,\n            cache_dir: options\n                .cache_dir\n                .map(|dir| {\n                    let dir = shellexpand::full(&dir);\n                    dir.map(|dir| fs::normalize_path_to(dir.as_ref(), project_root))\n                })\n                .transpose()\n                .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}\"))?,","sourceCodeStart":535,"sourceCodeEnd":571,"githubUrl":"https://github.com/astral-sh/ruff/blob/672bb4edf04c84f8b0753346359daee4057158f2/crates/ruff_workspace/src/configuration.rs#L535-L571","documentation":"Error \"Invalid `cache-dir` value: {e}\" thrown in astral-sh/ruff.","triggerScenarios":"Thrown at crates/ruff_workspace/src/configuration.rs:553 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":"672bb4edf04c84f8b0753346359daee4057158f2","analyzedAt":"2026-08-16T08:54:05.464Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}