{"record":{"id":"3477826e50186871","repo":"astral-sh/ruff","slug":"deprecated-meta-is-not-supported-by-ruff-s-op","errorCode":null,"errorMessage":"Deprecated meta {:?} is not supported by ruff's option macro.","messagePattern":"Deprecated meta (.+?) is not supported by ruff's option macro\\.","errorType":"exception","errorClass":"syn::Error","httpStatus":null,"severity":"error","filePath":"crates/ruff_macros/src/config.rs","lineNumber":261,"sourceCode":"\nfn parse_field_attributes(attribute: &Attribute) -> syn::Result<FieldAttributes> {\n    let mut default = None;\n    let mut value_type = None;\n    let mut example = None;\n    let mut scope = None;\n\n    attribute.parse_nested_meta(|meta| {\n        if meta.path.is_ident(\"default\") {\n            default = Some(get_string_literal(&meta, \"default\", \"option\")?.value());\n        } else if meta.path.is_ident(\"value_type\") {\n            value_type = Some(get_string_literal(&meta, \"value_type\", \"option\")?.value());\n        } else if meta.path.is_ident(\"scope\") {\n            scope = Some(get_string_literal(&meta, \"scope\", \"option\")?.value());\n        } else if meta.path.is_ident(\"example\") {\n            let example_text = get_string_literal(&meta, \"value_type\", \"option\")?.value();\n            example = Some(dedent(&example_text).trim_matches('\\n').to_string());\n        } else {\n            return Err(syn::Error::new(\n                meta.path.span(),\n                format!(\n                    \"Deprecated meta {:?} is not supported by ruff's option macro.\",\n                    meta.path.get_ident()\n                ),\n            ));\n        }\n\n        Ok(())\n    })?;\n\n    let Some(default) = default else {\n        return Err(syn::Error::new(\n            attribute.span(),\n            \"Mandatory `default` field is missing in `#[option]` attribute. Specify the default using `#[option(default=\\\"..\\\")]`.\",\n        ));\n    };\n","sourceCodeStart":243,"sourceCodeEnd":279,"githubUrl":"https://github.com/astral-sh/ruff/blob/26f38c119cac42e4d320ba08f09224fdec74af2c/crates/ruff_macros/src/config.rs#L243-L279","documentation":"A syn compile error from parse_field_attributes in the #[option(...)] macro: an unrecognized meta item was found in the attribute. Only default, value_type, scope, and example are accepted; older spellings are deliberately rejected with this message.","triggerScenarios":"Thrown at crates/ruff_macros/src/config.rs:261 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the unsupported key from the #[option(...)] attribute","Use one of the supported keys: default, value_type, scope, example"],"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-14T05:17:10.506Z"}