Reference

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
CodeSeverityDescription
E001ErrorUnexpected token, malformed statement, or multiple diagrams in one file
E002ErrorUnclosed block delimiter {
E004ErrorMissing ; statement terminator on non-block statement (including theme rules and let bindings)
E005ErrorUnclosed block comment (//* ... *//, //? ... ?//, //! ... !// reached EOF)
E006ErrorInvalid # comment — # is reserved for attributes #[...]; use //
E007ErrorUnrecognized entity modifier for target keyword
E008ErrorUnexpected : Type annotation on entity that does not accept external typing
E009ErrorSuperfluous trailing semicolon after { ... } block body
E010ErrorMisplaced entity modifier placed after @Identifier instead of before it
E012ErrorMissing @ sigil on entity declaration identifier
E100ErrorReference to an undeclared lifeline or module
E102Errorself used outside an execution specification block
E103ErrorInvalid create / destroy lifecycle target
E104ErrorMessage sent to a destroyed lifeline
E105ErrorExec spec re-opened after interruption without an intervening phase milestone
E106ErrorExec spec defined in both schema and flow
E107ErrorDirect call arrow (->) placed inside schema block
E108ErrorPrivate symbol imported across module boundary
E109ErrorInvalid layout attribute value
E110ErrorDuplicate note name within the same diagram
E111ErrorOrphan or non-layoutable layout entry — identifier not found among top-level layoutable entities
E112Errorpub modifier on anonymous exec spec
E113ErrorLifeline declared outside schema { }
E114ErrorBlock ordering violation — flow, layout, or theme placed before schema
E115ErrorLifeline-block syntax mixed with per-arrow spec names
E116ErrorPillar block declared outside diagram container
E117ErrorCross-diagram-type import — incompatible spatial entity imported
E118ErrorDuplicate import alias — two use statements resolve to the same local name
E119ErrorRe-export chain too deep — transitive pub use exceeds 3 hops
E120ErrorUnknown or invalid theme property name or value
E121ErrorUnresolvable local symbol in use <specifier> <name> inside a frame block
E122ErrorInvalid modifier or attribute on frame block
E123ErrorInvalid attribute or child entry inside frame layout block
E124ErrorPrivate symbol referenced across module boundary
E125ErrorCircular frame nesting or dependency detected
E126ErrorElement assigned to more than one frame block
E127Errorpub modifier forbidden on frame block or its contents
E128ErrorOrphan layout frame entry does not match any named frame or import alias
E129ErrorDuplicate or split module import anchor
E130ErrorDot notation on system token (*<Id>.spec) forbidden
E131ErrorInvalid modifier combination on destroy arrow
E132Errortimed combined with destroy
E133ErrorUnknown or undeclared dialect header
E134ErrorDuplicate dialect declaration in file
E135ErrorReserved-but-inactive dialect
E136Erroruse or link statement placed outside schema { }
E137ErrorGranular symbol import forbidden — import whole modules (use path as alias;)
E138ErrorUnqualified reference to imported symbol — must use alias::Symbol
E139Errorref statement placed inside execution specification
E140ErrorClass, interface, enum, or frame declared outside schema { }
E141ErrorMethod declaration missing : ReturnType (use : void if none)
E142ErrorUML visibility sigil (+, -, #, ~) used inside class body — use pub/private/protected
E143ErrorClosed-world resolution error: relationship, member, or generic references undeclared type
E144ErrorDuplicate enum value within enum block
E145ErrorField declaration inside interface body
E146ErrorMethod or field declaration inside enum body
E147ErrorOrphan layout entry — type not declared in schema
E148Errorabstract method inside non-abstract class
E149ErrorReversed relationship direction (use Child -> extends Parent)
E150Errorextends used from class toward interface — use implements
E151Errorimplements used with a class target or from an interface source
E152ErrorMissing relation modifier after -> in class diagram
E153Erroruse inside frame missing specifier keyword (use class / interface / enum)
E154ErrorMember modifier (static, final, abstract) placed inside [...] instead of prefix
E155ErrorMultiplicity or label written as string attributes instead of endpoint syntax
E156ErrorQuoted string used as type annotation instead of native generic syntax
E157ErrorBidirectional connector (<->) used outside class associates or generic full-duplex
E158ErrorType parameter name shadows existing classifier
E159ErrorGeneric type argument arity mismatch
E160Errorstate declaration placed outside schema { }
E161Errorregion block declared outside composite state
E162ErrorMixing direct substates and region blocks at same nesting level
E163ErrorMissing state initial pseudostate in region or top-level state machine
E164ErrorMultiple state initial pseudostates in the same region
E165ErrorOutgoing transition from state final
E166Errorstate fork has <2 outgoing transitions or state join has <2 incoming transitions
E167Errorstate choice or state junction missing mandatory else; branch
E168Errorstate fork or state join used outside orthogonal composite state
E169Errorstate history or deep_history declared in scope with no substates
E170Errorentry_point or exit_point declared outside composite state or pub schema
E171ErrorDuplicate region identifier inside composite state
E172Errorinternal modifier on transition with different source and target
E173ErrorTransition references undeclared state identifier
E174ErrorOrphan layout state entry not declared in schema
E175ErrorDot-path transition target resolves to region instead of state
E176Errorpub state declared on non-connection-point state
E177ErrorDuplicate state identifier within same scope
E178ErrorTransition references state from imported module
E179ErrorUndeclared trigger event referenced in transition
E180ErrorDuplicate event identifier within same scope
E181Errordefer attribute references undeclared event
E182ErrorUnqualified reference to imported event — use alias::EventName
E183Errorself.<hook> (enter/run/exit) declared outside state block
E184ErrorDuplicate self.<hook> inside same state block
E185ErrorCross-module state transition forbidden between peer modules
E186ErrorTransition targets private internal substate of submachine
E187Error[submachine: ...] references undeclared module alias
E188ErrorTransition listens to imported accept event (must emit via do alias::Event;)
E189ErrorAction effect emits imported produce event (must listen via : alias::Event)
E190Erroraccept / produce modifier used on private event (requires pub)
E191Errordo action effect forbidden in protocol state machine transition
E192ErrorState lifecycle activity forbidden in protocol state machine
E193ErrorTransition from composite parent directly to own substate forbidden
E194ErrorLifelineVerticalStackForbidden — column strategy applied to sequence lifelines (must use row)
E195ErrorCyclicSpatialAnchor — circular joint dependency between layout assemblies
E196ErrorOverconstrainedJoint — conflicting coordinate constraints or multiple reference anchors
E197ErrorUndeclaredConstant — reference to undeclared let token or ${TOKEN}
E198ErrorConstantTypeMismatch — token type incompatible with target slot
E199ErrorDuplicateConstantDeclaration — duplicate let identifier in same scope
E200ErrorCircular module dependency
E201ErrorModule not found — mod path cannot be resolved
E202ErrorCircular re-export — pub use chain forms a cycle
E210ErrorLinked module or reference target not found
E211ErrorLinked diagram kind mismatch
E212ErrorUnresolved cross-diagram symbol in linked target
E213ErrorPrivate symbol referenced across link
E214ErrorLifeline classifier not found in linked class module
E215ErrorInvalid lifeline classifier kind (e.g. enum instead of class/interface)
E216ErrorMethod not found on bound lifeline class
E217ErrorPrivate/protected method called externally
E218ErrorArgument count mismatch in sequence message call
E219ErrorUnexpected return payload (=>) on void method
E220ErrorCallEvent method not found on class
E221ErrorPrivate method bound to public CallEvent
E222ErrorUnresolved lifecycle state machine target alias
E223ErrorInvalid state enum member referenced
E224ErrorCircular link dependency in strict mode
E225ErrorUnknown state invariant symbol in lifeline start_state
E226ErrorIllegal sequence trace / state mismatch
E227ErrorLifecycle state machine does not govern lifeline class
E228ErrorDirect method trigger on transition forbidden — declare CallEvent in schema
E229Errorpub link is forbidden — cross-diagram links are strictly private
E230ErrorAction, control, or object node declared outside schema { } or frame { }
E231ErrorMultiple control initial nodes in unpartitioned activity scope
E232ErrorIncoming flow directed to control initial node
E233ErrorOutgoing flow originating from control final node
E234ErrorMissing else fallback branch in control decision node
E235ErrorInsufficient outgoing branches on decision node (<2)
E236ErrorInvalid concurrency wiring on control fork or control join (<2 branches)
E237ErrorDegenerate control merge node (<2 incoming or >1 outgoing)
E238ErrorFlow cycle without intervening decision or merge node
E239ErrorUnknown action modifier in action <modifier> @ident
E240ErrorInterrupt flow (-> interrupt) originates outside interruptible region
E241ErrorUndeclared pin reference on action
E242ErrorDirection mismatch on pin connection
E250ErrorOrphanThemeTarget — theme selector does not resolve to any declared entity, type, or arrow ID
E251ErrorDuplicateArrowId — duplicate -[id: @X]-> or =[id: @X]=> in flow
E252ErrorInvalidThemeModifier — invalid Slot-2 modifier in theme selector
E253ErrorDuplicateThemeSelector — duplicate selector in same theme block
E255ErrorThemeEntityKindMismatch — @ selector uses wrong entity keyword
E256ErrorSpatialPropertyInTheme — layout/spatial property placed inside theme rule
E260ErrorUnknown attribute identifier (#[unknown]) — closed v1 registry
E261ErrorCustom macro definition (macro!) not supported in v1
E262ErrorIncompatible attribute target
E263ErrorMissing required attribute parameter
E264ErrorDuplicate attribute on same target
E265ErrorInvalid attribute argument type
E266ErrorType mismatch in #[pre] / #[post] / #[invariant] contract expression
E267ErrorUnknown class member referenced in contract expression
E268ErrorNonBagSpreadForbidden — ... requires AttributeBag, found scalar
E269ErrorInvalidUnpackedAttribute — attribute in spread bag invalid on target slot
E270ErrorUnresolvedNodeReference — node referenced in flow or layout not declared in schema
E271ErrorUnresolvedPortReference — port Node.port not declared on target node
E272ErrorDuplicatePortIdentifier on node
E273ErrorSelfLoopEdgeForbidden without explicit port routing
E274ErrorInvalidPortDockFace — must be left, right, top, or bottom
E275ErrorInvalidPortDockOffset exceeds docking face boundary
E276ErrorDuplicatePortDockOffset on same face
E277ErrorCyclicGroupNesting
E278ErrorPortDirectionMismatch (in->in or out->out)
E279ErrorPortTypeMismatch between connected typed ports
E289ErrorMalformedEdgePayload
E290ErrorComponent, interface, port, part, or artifact declared outside schema/frame
E291Errorport declaration placed outside component body
E292ErrorInvalidDelegationCrossing — delegation must bridge external port and internal part port
E293ErrorIncompatiblePortConnection in component assembly
E294ErrorCircularComponentContainment
E295ErrorInvalidManifestationTarget — manifests must target component or subsystem
E296ErrorInvalidManifestationSource — manifests must originate from artifact
E297ErrorUndeclaredInterfaceReference on port, implements, or depends
E298ErrorDuplicatePortIdentifier on component
E299ErrorInvalidComponentModifier in flow (permitted: assembly, delegate, depends, manifests, implements)
E300ErrorDuplicateProvidedInterface
E301ErrorDuplicateRequiredInterface
E302ErrorUnresolvedPartClassifier
E303ErrorEncapsulationViolation — external connector bypasses boundary port to private internal part
E304ErrorUnresolvedComponentRef in [ref: ...] or [lifecycle: ...]
E305ErrorPublicPortRequiresRole — pub port must specify provides or requires
E306ErrorNestedComponentDeclarationForbidden — use part name: ComponentType;
W001WarningExec spec blueprint in schema declared but never invoked
W002WarningAsync call combined with inline return label (=>)
W003WarningControl block branch is empty
W004WarningCircular call graph detected between exec specs
W005WarningExec spec opened twice consecutively without a phase boundary
W006Warningloop block has an empty body
W007Warningpar block has only one branch (use also to add concurrent branches)
W008Warningcreate called for a lifeline that is already active
W009WarningImported symbol never referenced in diagram statements
W010WarningUnnamed note is not draggable
W011Warningschema block missing from diagram
W012Warninggap value exceeds 200px
W013Warningpub item inside private schema or pub schema has no pub items
W014WarningDuplicate return message (both inline => and manual -> reply present)
W015WarningLifeline offset_x clamped to enforce minimum 80px separation
W016WarningModule-mode diagram exports no pub symbols and has no flow block
W019Warningcolumn_gap in frame layout is below minimum legible separation (80px)
W020WarningEmpty frame group
W021WarningSpecified frame width smaller than content; expanding boundary
W022Warningbreak fragment at top level has no enclosing control fragment
W023WarningNested neg block is redundant
W024WarningLost message (-> *<Id>) missing explicit caller at top level
W025WarningTiming constraint min or max is zero or negative
W026WarningTiming constraint min > max (impossible range)
W027WarningClass body is empty
W028WarningType declared in schema not referenced in any relationship
W029WarningRelationship label omitted on associates or depends edge
W030WarningMultiplicity omitted on composes or aggregates target end
W031WarningMultiple extends arrows from same source class
W032WarningState declared in schema never referenced in any transition
W033WarningState has no incoming transitions and is not state initial
W034WarningState has no outgoing transitions and is not state final
W035WarningTransition label omitted on non-completion transition
W036WarningComposite state has both history and deep_history
W037Warningstate terminate pseudostate destroys owning object without cleanup
W038WarningImported module alias never referenced in transitions
W039Warningdefer=[...] on state with no outgoing non-final transitions
W040WarningSelf-transition without internal modifier re-executes enter/exit
W041WarningEvent declared in schema never referenced in transitions
W042WarningAmbiguous transition: multiple transitions share trigger with no discriminating guards
W043WarningRedundant inline trigger inside scoped on Event { ... } block
W044WarningUnanchoredLayout — branch or joint shares zero nodes with reference datum
W045WarningUnused link import
W046WarningRealization sequence diagram has no lifeline typed by governed class
W047WarningLifecycle action method mismatch against governed class
W048WarningRelaxed trace mismatch on linked state machine ([strict: false])
W050WarningUnreachable action in activity diagram
W051WarningDead-end action in activity diagram
W052WarningUnused object node in activity diagram
W053WarningTrapped action in interruptible region
W060WarningRedundant or ineffective attribute
W062WarningReference to #[deprecated] element
W070WarningFloatingNode — node has 0 in-degree and 0 out-degree
W071WarningUnconnectedPort on node
W072WarningOverlappingPortOffsets on same docking face
W073WarningEmptyGroupingContainer
W080WarningUnconnectedComponent
W081WarningUnboundPort on component
W082WarningUnmetRequiredInterface
W083WarningOrphanArtifact has no manifests link
W084WarningDecomposedWithoutDelegation — parts present without boundary delegation
W085WarningUnconsumedProvidedInterface
W100WarningUnstyledExplicitArrowId — -[id: @...]-> unused in layout and theme
W101WarningShadowedThemeProperty — higher tier redundantly repeats inherited value
H001HintLifeline declared in schema never referenced in flow
H002HintExec spec body is empty
H003Hintschema block is empty
H004HintAtomic method call without { } body block
H005HintDiagram has no flow block — operating in module-mode
H006HintTop-level exec spec has no incoming call trigger
H007HintFrame nesting depth exceeds 2 levels
H008HintSingle-member frame grouping
H009HintClass has no explicit visibility keyword (defaults to private)
H010Hintclass abstract has no abstract methods
H011HintInterface body is empty
H012Hintgap omitted before phase (automatic 32px clearance applied)
H013HintState machine has no transitions — operating in module-mode
H014HintComposite state has no enter/exit/run annotations
H015Hintstate choice used where guarded completion transition suffices
H016HintState machine has only initial + final states
H017HintOrthogonal regions without fork/join start simultaneously from initial
H018HintAutoDerivedCollectorRail — vertical join/fork stretched across feeder ranks
H019HintAutoDerivedFlankSink — terminal/zero-out-degree node placed in flank gutter
H020HintHigh-complexity action can be realized via linked sequence diagram ([ref: ...])
H021HintDecision/fork branches can use Level 1 Scoped Entity syntax (Node { ... })
H022HintPartitions can declare #[owner] metadata
H025HintNodeFanOutSimplification — suggest Level 1 Scoped Entity syntax
H026HintGroupEncapsulationOpportunity
H027HintBusTrunkOptimization — parallel flows can use bus_width: N
H030HintBallAndSocketSnapped — matching provided/required interfaces snapped
H031HintRealizationSuggested — complex component can link [ref: ...]
H032HintDecompositionExtraction — composite component exceeds 5 parts
H033HintProtocolDocumented — ports can declare [protocol: "..."]
H050HintInlineStyleMoveToTheme — move fill/stroke/border into theme { }
H051HintThemePresetExtractionOpportunity — extract repeated theme bags into let PRESET