{"record":{"id":"7376aec1078d7192","repo":"biomejs/biome","slug":"bogus-members-are-not-supported-in-the-error-global","errorCode":null,"errorMessage":"bogus members are not supported in the Error global","messagePattern":"bogus members are not supported in the Error global","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"xtask/codegen/src/generate_global_types/lower.rs","lineNumber":2530,"sourceCode":"                lower_optional_error_member_reference(&name, type_reference)?\n            } else {\n                type_reference\n            };\n            Ok(Some(LoweredTypeMember {\n                name,\n                kind: LoweredMemberKind::Named { optional },\n                type_reference,\n            }))\n        }\n        AnyTsTypeMember::TsMethodSignatureTypeMember(_) => {\n            bail!(\"method signatures are not supported in the Error global\")\n        }\n        AnyTsTypeMember::TsCallSignatureTypeMember(_)\n        | AnyTsTypeMember::TsConstructSignatureTypeMember(_) => {\n            bail!(\"Error global signatures must be declared on ErrorConstructor\")\n        }\n        AnyTsTypeMember::JsBogusMember(_) => {\n            bail!(\"bogus members are not supported in the Error global\")\n        }\n        AnyTsTypeMember::JsMetavariable(_) => {\n            bail!(\"metavariable members are not supported in the Error global\")\n        }\n        AnyTsTypeMember::TsGetterSignatureTypeMember(_) => {\n            bail!(\"getter signatures are not supported in the Error global\")\n        }\n        AnyTsTypeMember::TsIndexSignatureTypeMember(_) => {\n            bail!(\"index signatures are not supported in the Error global\")\n        }\n        AnyTsTypeMember::TsSetterSignatureTypeMember(_) => {\n            bail!(\"setter signatures are not supported in the Error global\")\n        }\n    }\n}\n\n/// Validates supported optional `Error` members.\nfn lower_optional_error_member_reference(","sourceCodeStart":2512,"sourceCodeEnd":2548,"githubUrl":"https://github.com/biomejs/biome/blob/3835945f0638c88162351318b7bc8b64c5f2fba7/xtask/codegen/src/generate_global_types/lower.rs#L2512-L2548","documentation":"Emitted by the Error-global lowering (a sibling of lower_disposable_type_member around lower.rs:2530) when a member of the Error interface declaration parses as a bogus (unparseable) type member. The Error global lowering expects a strict set of member shapes and refuses anything the parser cannot classify.","triggerScenarios":"Editing the Error global declaration fixture so its interface body contains syntactically invalid or truncated member text, then running `cargo run -p xtask codegen`.","commonSituations":"A merge conflict inside the Error d.ts fixture, a typo like `message: string` missing its separator, or copy-paste damage leaves an unparseable member in the Error interface body.","solutions":["Open the Error declaration fixture at the reported line and fix or delete the unparseable member.","Restore the member to a valid form matching the expected Error interface shape (e.g. `message: string;`, `name: string;`, `stack?: string;`).","Re-run the codegen and confirm the Error global lowers without errors."],"exampleFix":"// before (fixture)\ninterface Error {\n  name string;\n}\n// after\ninterface Error {\n  name: string;\n}","handlingStrategy":"validation","validationCode":"// Confirm the Error fixture parses cleanly before codegen:\n// cargo run -p xtask codegen 2>&1 | grep -i bogus\n// Additionally check for merge markers:\n//   grep -nE '^(<<<<<<<|=======|>>>>>>>)' error.d.ts","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Fix merge conflicts in declaration fixtures fully before running codegen.","Keep Error interface members in the exact expected shape (message/name/stack properties) and avoid exotic member syntax.","Run `cargo run -p xtask codegen` locally before pushing any change to global declaration fixtures."],"tags":["codegen","parser","build-time","fixture"],"backgroundTag":"schema-validation-failed","analyzedSha":"3835945f0638c88162351318b7bc8b64c5f2fba7","analyzedAt":"2026-09-13T15:11:16.919Z","contentChangedAt":"2026-09-13T15:11:16.919Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}