{"record":{"id":"8c516ec514fb0dc5","repo":"DioxusLabs/dioxus","slug":"static-op-id-exceeds-packed-op-capacity","errorCode":null,"errorMessage":"static op id exceeds packed op capacity","messagePattern":"static op id exceeds packed op capacity","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core-template/src/op.rs","lineNumber":40,"sourceCode":"\n    /// Create a packed static attribute op.\n    pub(crate) const fn attr(namespace: bool) -> Self {\n        if namespace {\n            Self(Self::ATTR_CUSTOM_NS_CODE)\n        } else {\n            Self(Self::ATTR_CODE)\n        }\n    }\n\n    /// Create a packed text marker op.\n    pub(crate) const fn text() -> Self {\n        Self(Self::TEXT_CODE)\n    }\n\n    /// Create a packed static string reference op.\n    pub(crate) const fn static_text(id: u16) -> Self {\n        if id as usize >= Self::MAX_CAP {\n            panic!(\"static op id exceeds packed op capacity\");\n        }\n        Self(Self::STATIC_BASE + id)\n    }\n\n    /// Decode this packed op.\n    pub(crate) const fn decode(self) -> DecodedTemplateOp {\n        if self.0 <= Self::ENTER_MAX_CODE {\n            DecodedTemplateOp::Enter {\n                skip: self.0 >> 1,\n                namespace: self.0 & 1 == 1,\n            }\n        } else if self.0 == Self::ATTR_CODE {\n            DecodedTemplateOp::Attr { namespace: false }\n        } else if self.0 == Self::ATTR_CUSTOM_NS_CODE {\n            DecodedTemplateOp::Attr { namespace: true }\n        } else if self.0 == Self::TEXT_CODE {\n            DecodedTemplateOp::Text\n        } else {","sourceCodeStart":22,"sourceCodeEnd":58,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/core-template/src/op.rs#L22-L58","documentation":"TemplateOp::static_text packs a static string's index into a u16 with a limited capacity (MAX_CAP). A template referencing more static strings than the packed op can address triggers this panic during template lowering in the macro.","triggerScenarios":"Thrown at packages/core-template/src/op.rs:40 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Internal template packing limit hit. Split the component into smaller templates; if a normal template triggers this, report a bug to dioxus."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}