Diagnostics Reference
Searchable catalog of compiler error (E), warning (W), and hint (H) codes enforced during static analysis.
The Dhi compiler performs closed-world static validation across syntax, scoping, types, layout constraints, attributes, themes, and diagram-type invariants. Filter by code, keyword, or severity below.
Complete Diagnostic Registry
284 / 284
| Code | Severity | Description |
|---|---|---|
| E001 | Error | Unexpected token, malformed statement, or multiple diagrams in one file |
| E002 | Error | Unclosed block delimiter { |
| E004 | Error | Missing ; statement terminator on non-block statement (including theme rules and let bindings) |
| E005 | Error | Unclosed block comment (//* ... *//, //? ... ?//, //! ... !// reached EOF) |
| E006 | Error | Invalid # comment — # is reserved for attributes #[...]; use // |
| E007 | Error | Unrecognized entity modifier for target keyword |
| E008 | Error | Unexpected : Type annotation on entity that does not accept external typing |
| E009 | Error | Superfluous trailing semicolon after { ... } block body |
| E010 | Error | Misplaced entity modifier placed after @Identifier instead of before it |
| E012 | Error | Missing @ sigil on entity declaration identifier |
| E100 | Error | Reference to an undeclared lifeline or module |
| E102 | Error | self used outside an execution specification block |
| E103 | Error | Invalid create / destroy lifecycle target |
| E104 | Error | Message sent to a destroyed lifeline |
| E105 | Error | Exec spec re-opened after interruption without an intervening phase milestone |
| E106 | Error | Exec spec defined in both schema and flow |
| E107 | Error | Direct call arrow (->) placed inside schema block |
| E108 | Error | Private symbol imported across module boundary |
| E109 | Error | Invalid layout attribute value |
| E110 | Error | Duplicate note name within the same diagram |
| E111 | Error | Orphan or non-layoutable layout entry — identifier not found among top-level layoutable entities |
| E112 | Error | pub modifier on anonymous exec spec |
| E113 | Error | Lifeline declared outside schema { } |
| E114 | Error | Block ordering violation — flow, layout, or theme placed before schema |
| E115 | Error | Lifeline-block syntax mixed with per-arrow spec names |
| E116 | Error | Pillar block declared outside diagram container |
| E117 | Error | Cross-diagram-type import — incompatible spatial entity imported |
| E118 | Error | Duplicate import alias — two use statements resolve to the same local name |
| E119 | Error | Re-export chain too deep — transitive pub use exceeds 3 hops |
| E120 | Error | Unknown or invalid theme property name or value |
| E121 | Error | Unresolvable local symbol in use <specifier> <name> inside a frame block |
| E122 | Error | Invalid modifier or attribute on frame block |
| E123 | Error | Invalid attribute or child entry inside frame layout block |
| E124 | Error | Private symbol referenced across module boundary |
| E125 | Error | Circular frame nesting or dependency detected |
| E126 | Error | Element assigned to more than one frame block |
| E127 | Error | pub modifier forbidden on frame block or its contents |
| E128 | Error | Orphan layout frame entry does not match any named frame or import alias |
| E129 | Error | Duplicate or split module import anchor |
| E130 | Error | Dot notation on system token (*<Id>.spec) forbidden |
| E131 | Error | Invalid modifier combination on destroy arrow |
| E132 | Error | timed combined with destroy |
| E133 | Error | Unknown or undeclared dialect header |
| E134 | Error | Duplicate dialect declaration in file |
| E135 | Error | Reserved-but-inactive dialect |
| E136 | Error | use or link statement placed outside schema { } |
| E137 | Error | Granular symbol import forbidden — import whole modules (use path as alias;) |
| E138 | Error | Unqualified reference to imported symbol — must use alias::Symbol |
| E139 | Error | ref statement placed inside execution specification |
| E140 | Error | Class, interface, enum, or frame declared outside schema { } |
| E141 | Error | Method declaration missing : ReturnType (use : void if none) |
| E142 | Error | UML visibility sigil (+, -, #, ~) used inside class body — use pub/private/protected |
| E143 | Error | Closed-world resolution error: relationship, member, or generic references undeclared type |
| E144 | Error | Duplicate enum value within enum block |
| E145 | Error | Field declaration inside interface body |
| E146 | Error | Method or field declaration inside enum body |
| E147 | Error | Orphan layout entry — type not declared in schema |
| E148 | Error | abstract method inside non-abstract class |
| E149 | Error | Reversed relationship direction (use Child -> extends Parent) |
| E150 | Error | extends used from class toward interface — use implements |
| E151 | Error | implements used with a class target or from an interface source |
| E152 | Error | Missing relation modifier after -> in class diagram |
| E153 | Error | use inside frame missing specifier keyword (use class / interface / enum) |
| E154 | Error | Member modifier (static, final, abstract) placed inside [...] instead of prefix |
| E155 | Error | Multiplicity or label written as string attributes instead of endpoint syntax |
| E156 | Error | Quoted string used as type annotation instead of native generic syntax |
| E157 | Error | Bidirectional connector (<->) used outside class associates or generic full-duplex |
| E158 | Error | Type parameter name shadows existing classifier |
| E159 | Error | Generic type argument arity mismatch |
| E160 | Error | state declaration placed outside schema { } |
| E161 | Error | region block declared outside composite state |
| E162 | Error | Mixing direct substates and region blocks at same nesting level |
| E163 | Error | Missing state initial pseudostate in region or top-level state machine |
| E164 | Error | Multiple state initial pseudostates in the same region |
| E165 | Error | Outgoing transition from state final |
| E166 | Error | state fork has <2 outgoing transitions or state join has <2 incoming transitions |
| E167 | Error | state choice or state junction missing mandatory else; branch |
| E168 | Error | state fork or state join used outside orthogonal composite state |
| E169 | Error | state history or deep_history declared in scope with no substates |
| E170 | Error | entry_point or exit_point declared outside composite state or pub schema |
| E171 | Error | Duplicate region identifier inside composite state |
| E172 | Error | internal modifier on transition with different source and target |
| E173 | Error | Transition references undeclared state identifier |
| E174 | Error | Orphan layout state entry not declared in schema |
| E175 | Error | Dot-path transition target resolves to region instead of state |
| E176 | Error | pub state declared on non-connection-point state |
| E177 | Error | Duplicate state identifier within same scope |
| E178 | Error | Transition references state from imported module |
| E179 | Error | Undeclared trigger event referenced in transition |
| E180 | Error | Duplicate event identifier within same scope |
| E181 | Error | defer attribute references undeclared event |
| E182 | Error | Unqualified reference to imported event — use alias::EventName |
| E183 | Error | self.<hook> (enter/run/exit) declared outside state block |
| E184 | Error | Duplicate self.<hook> inside same state block |
| E185 | Error | Cross-module state transition forbidden between peer modules |
| E186 | Error | Transition targets private internal substate of submachine |
| E187 | Error | [submachine: ...] references undeclared module alias |
| E188 | Error | Transition listens to imported accept event (must emit via do alias::Event;) |
| E189 | Error | Action effect emits imported produce event (must listen via : alias::Event) |
| E190 | Error | accept / produce modifier used on private event (requires pub) |
| E191 | Error | do action effect forbidden in protocol state machine transition |
| E192 | Error | State lifecycle activity forbidden in protocol state machine |
| E193 | Error | Transition from composite parent directly to own substate forbidden |
| E194 | Error | LifelineVerticalStackForbidden — column strategy applied to sequence lifelines (must use row) |
| E195 | Error | CyclicSpatialAnchor — circular joint dependency between layout assemblies |
| E196 | Error | OverconstrainedJoint — conflicting coordinate constraints or multiple reference anchors |
| E197 | Error | UndeclaredConstant — reference to undeclared let token or ${TOKEN} |
| E198 | Error | ConstantTypeMismatch — token type incompatible with target slot |
| E199 | Error | DuplicateConstantDeclaration — duplicate let identifier in same scope |
| E200 | Error | Circular module dependency |
| E201 | Error | Module not found — mod path cannot be resolved |
| E202 | Error | Circular re-export — pub use chain forms a cycle |
| E210 | Error | Linked module or reference target not found |
| E211 | Error | Linked diagram kind mismatch |
| E212 | Error | Unresolved cross-diagram symbol in linked target |
| E213 | Error | Private symbol referenced across link |
| E214 | Error | Lifeline classifier not found in linked class module |
| E215 | Error | Invalid lifeline classifier kind (e.g. enum instead of class/interface) |
| E216 | Error | Method not found on bound lifeline class |
| E217 | Error | Private/protected method called externally |
| E218 | Error | Argument count mismatch in sequence message call |
| E219 | Error | Unexpected return payload (=>) on void method |
| E220 | Error | CallEvent method not found on class |
| E221 | Error | Private method bound to public CallEvent |
| E222 | Error | Unresolved lifecycle state machine target alias |
| E223 | Error | Invalid state enum member referenced |
| E224 | Error | Circular link dependency in strict mode |
| E225 | Error | Unknown state invariant symbol in lifeline start_state |
| E226 | Error | Illegal sequence trace / state mismatch |
| E227 | Error | Lifecycle state machine does not govern lifeline class |
| E228 | Error | Direct method trigger on transition forbidden — declare CallEvent in schema |
| E229 | Error | pub link is forbidden — cross-diagram links are strictly private |
| E230 | Error | Action, control, or object node declared outside schema { } or frame { } |
| E231 | Error | Multiple control initial nodes in unpartitioned activity scope |
| E232 | Error | Incoming flow directed to control initial node |
| E233 | Error | Outgoing flow originating from control final node |
| E234 | Error | Missing else fallback branch in control decision node |
| E235 | Error | Insufficient outgoing branches on decision node (<2) |
| E236 | Error | Invalid concurrency wiring on control fork or control join (<2 branches) |
| E237 | Error | Degenerate control merge node (<2 incoming or >1 outgoing) |
| E238 | Error | Flow cycle without intervening decision or merge node |
| E239 | Error | Unknown action modifier in action <modifier> @ident |
| E240 | Error | Interrupt flow (-> interrupt) originates outside interruptible region |
| E241 | Error | Undeclared pin reference on action |
| E242 | Error | Direction mismatch on pin connection |
| E250 | Error | OrphanThemeTarget — theme selector does not resolve to any declared entity, type, or arrow ID |
| E251 | Error | DuplicateArrowId — duplicate -[id: @X]-> or =[id: @X]=> in flow |
| E252 | Error | InvalidThemeModifier — invalid Slot-2 modifier in theme selector |
| E253 | Error | DuplicateThemeSelector — duplicate selector in same theme block |
| E255 | Error | ThemeEntityKindMismatch — @ selector uses wrong entity keyword |
| E256 | Error | SpatialPropertyInTheme — layout/spatial property placed inside theme rule |
| E260 | Error | Unknown attribute identifier (#[unknown]) — closed v1 registry |
| E261 | Error | Custom macro definition (macro!) not supported in v1 |
| E262 | Error | Incompatible attribute target |
| E263 | Error | Missing required attribute parameter |
| E264 | Error | Duplicate attribute on same target |
| E265 | Error | Invalid attribute argument type |
| E266 | Error | Type mismatch in #[pre] / #[post] / #[invariant] contract expression |
| E267 | Error | Unknown class member referenced in contract expression |
| E268 | Error | NonBagSpreadForbidden — ... requires AttributeBag, found scalar |
| E269 | Error | InvalidUnpackedAttribute — attribute in spread bag invalid on target slot |
| E270 | Error | UnresolvedNodeReference — node referenced in flow or layout not declared in schema |
| E271 | Error | UnresolvedPortReference — port Node.port not declared on target node |
| E272 | Error | DuplicatePortIdentifier on node |
| E273 | Error | SelfLoopEdgeForbidden without explicit port routing |
| E274 | Error | InvalidPortDockFace — must be left, right, top, or bottom |
| E275 | Error | InvalidPortDockOffset exceeds docking face boundary |
| E276 | Error | DuplicatePortDockOffset on same face |
| E277 | Error | CyclicGroupNesting |
| E278 | Error | PortDirectionMismatch (in->in or out->out) |
| E279 | Error | PortTypeMismatch between connected typed ports |
| E289 | Error | MalformedEdgePayload |
| E290 | Error | Component, interface, port, part, or artifact declared outside schema/frame |
| E291 | Error | port declaration placed outside component body |
| E292 | Error | InvalidDelegationCrossing — delegation must bridge external port and internal part port |
| E293 | Error | IncompatiblePortConnection in component assembly |
| E294 | Error | CircularComponentContainment |
| E295 | Error | InvalidManifestationTarget — manifests must target component or subsystem |
| E296 | Error | InvalidManifestationSource — manifests must originate from artifact |
| E297 | Error | UndeclaredInterfaceReference on port, implements, or depends |
| E298 | Error | DuplicatePortIdentifier on component |
| E299 | Error | InvalidComponentModifier in flow (permitted: assembly, delegate, depends, manifests, implements) |
| E300 | Error | DuplicateProvidedInterface |
| E301 | Error | DuplicateRequiredInterface |
| E302 | Error | UnresolvedPartClassifier |
| E303 | Error | EncapsulationViolation — external connector bypasses boundary port to private internal part |
| E304 | Error | UnresolvedComponentRef in [ref: ...] or [lifecycle: ...] |
| E305 | Error | PublicPortRequiresRole — pub port must specify provides or requires |
| E306 | Error | NestedComponentDeclarationForbidden — use part name: ComponentType; |
| W001 | Warning | Exec spec blueprint in schema declared but never invoked |
| W002 | Warning | Async call combined with inline return label (=>) |
| W003 | Warning | Control block branch is empty |
| W004 | Warning | Circular call graph detected between exec specs |
| W005 | Warning | Exec spec opened twice consecutively without a phase boundary |
| W006 | Warning | loop block has an empty body |
| W007 | Warning | par block has only one branch (use also to add concurrent branches) |
| W008 | Warning | create called for a lifeline that is already active |
| W009 | Warning | Imported symbol never referenced in diagram statements |
| W010 | Warning | Unnamed note is not draggable |
| W011 | Warning | schema block missing from diagram |
| W012 | Warning | gap value exceeds 200px |
| W013 | Warning | pub item inside private schema or pub schema has no pub items |
| W014 | Warning | Duplicate return message (both inline => and manual -> reply present) |
| W015 | Warning | Lifeline offset_x clamped to enforce minimum 80px separation |
| W016 | Warning | Module-mode diagram exports no pub symbols and has no flow block |
| W019 | Warning | column_gap in frame layout is below minimum legible separation (80px) |
| W020 | Warning | Empty frame group |
| W021 | Warning | Specified frame width smaller than content; expanding boundary |
| W022 | Warning | break fragment at top level has no enclosing control fragment |
| W023 | Warning | Nested neg block is redundant |
| W024 | Warning | Lost message (-> *<Id>) missing explicit caller at top level |
| W025 | Warning | Timing constraint min or max is zero or negative |
| W026 | Warning | Timing constraint min > max (impossible range) |
| W027 | Warning | Class body is empty |
| W028 | Warning | Type declared in schema not referenced in any relationship |
| W029 | Warning | Relationship label omitted on associates or depends edge |
| W030 | Warning | Multiplicity omitted on composes or aggregates target end |
| W031 | Warning | Multiple extends arrows from same source class |
| W032 | Warning | State declared in schema never referenced in any transition |
| W033 | Warning | State has no incoming transitions and is not state initial |
| W034 | Warning | State has no outgoing transitions and is not state final |
| W035 | Warning | Transition label omitted on non-completion transition |
| W036 | Warning | Composite state has both history and deep_history |
| W037 | Warning | state terminate pseudostate destroys owning object without cleanup |
| W038 | Warning | Imported module alias never referenced in transitions |
| W039 | Warning | defer=[...] on state with no outgoing non-final transitions |
| W040 | Warning | Self-transition without internal modifier re-executes enter/exit |
| W041 | Warning | Event declared in schema never referenced in transitions |
| W042 | Warning | Ambiguous transition: multiple transitions share trigger with no discriminating guards |
| W043 | Warning | Redundant inline trigger inside scoped on Event { ... } block |
| W044 | Warning | UnanchoredLayout — branch or joint shares zero nodes with reference datum |
| W045 | Warning | Unused link import |
| W046 | Warning | Realization sequence diagram has no lifeline typed by governed class |
| W047 | Warning | Lifecycle action method mismatch against governed class |
| W048 | Warning | Relaxed trace mismatch on linked state machine ([strict: false]) |
| W050 | Warning | Unreachable action in activity diagram |
| W051 | Warning | Dead-end action in activity diagram |
| W052 | Warning | Unused object node in activity diagram |
| W053 | Warning | Trapped action in interruptible region |
| W060 | Warning | Redundant or ineffective attribute |
| W062 | Warning | Reference to #[deprecated] element |
| W070 | Warning | FloatingNode — node has 0 in-degree and 0 out-degree |
| W071 | Warning | UnconnectedPort on node |
| W072 | Warning | OverlappingPortOffsets on same docking face |
| W073 | Warning | EmptyGroupingContainer |
| W080 | Warning | UnconnectedComponent |
| W081 | Warning | UnboundPort on component |
| W082 | Warning | UnmetRequiredInterface |
| W083 | Warning | OrphanArtifact has no manifests link |
| W084 | Warning | DecomposedWithoutDelegation — parts present without boundary delegation |
| W085 | Warning | UnconsumedProvidedInterface |
| W100 | Warning | UnstyledExplicitArrowId — -[id: @...]-> unused in layout and theme |
| W101 | Warning | ShadowedThemeProperty — higher tier redundantly repeats inherited value |
| H001 | Hint | Lifeline declared in schema never referenced in flow |
| H002 | Hint | Exec spec body is empty |
| H003 | Hint | schema block is empty |
| H004 | Hint | Atomic method call without { } body block |
| H005 | Hint | Diagram has no flow block — operating in module-mode |
| H006 | Hint | Top-level exec spec has no incoming call trigger |
| H007 | Hint | Frame nesting depth exceeds 2 levels |
| H008 | Hint | Single-member frame grouping |
| H009 | Hint | Class has no explicit visibility keyword (defaults to private) |
| H010 | Hint | class abstract has no abstract methods |
| H011 | Hint | Interface body is empty |
| H012 | Hint | gap omitted before phase (automatic 32px clearance applied) |
| H013 | Hint | State machine has no transitions — operating in module-mode |
| H014 | Hint | Composite state has no enter/exit/run annotations |
| H015 | Hint | state choice used where guarded completion transition suffices |
| H016 | Hint | State machine has only initial + final states |
| H017 | Hint | Orthogonal regions without fork/join start simultaneously from initial |
| H018 | Hint | AutoDerivedCollectorRail — vertical join/fork stretched across feeder ranks |
| H019 | Hint | AutoDerivedFlankSink — terminal/zero-out-degree node placed in flank gutter |
| H020 | Hint | High-complexity action can be realized via linked sequence diagram ([ref: ...]) |
| H021 | Hint | Decision/fork branches can use Level 1 Scoped Entity syntax (Node { ... }) |
| H022 | Hint | Partitions can declare #[owner] metadata |
| H025 | Hint | NodeFanOutSimplification — suggest Level 1 Scoped Entity syntax |
| H026 | Hint | GroupEncapsulationOpportunity |
| H027 | Hint | BusTrunkOptimization — parallel flows can use bus_width: N |
| H030 | Hint | BallAndSocketSnapped — matching provided/required interfaces snapped |
| H031 | Hint | RealizationSuggested — complex component can link [ref: ...] |
| H032 | Hint | DecompositionExtraction — composite component exceeds 5 parts |
| H033 | Hint | ProtocolDocumented — ports can declare [protocol: "..."] |
| H050 | Hint | InlineStyleMoveToTheme — move fill/stroke/border into theme { } |
| H051 | Hint | ThemePresetExtractionOpportunity — extract repeated theme bags into let PRESET |