You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
engine: module variable errors under parent inputs are unattributed #581
A variable in a module's model that fails to compile only under the inputs its parent supplies is reported as one unattributed message, "failed to compile fragments for variables: ...", not as an error on that variable.
Every other compile failure, including one in a SMOOTH/DELAY helper, now shows up as a per-variable error in the list the CLI, MCP and simlin_project_get_errors read.
The error check compiles each model's variables with no module inputs bound.
For the root model that matches the real build; for a module's model it can miss a failure that depends on the parent's input bindings.
Errors recorded while the real build assembles a module (assemble_module) are never collected, so that failure keeps only the batch message.
Seen only by reading the code; no real model is known to hit it.
Fix
Collect the errors recorded under assemble_module into the error list, or check each module's model under the input sets it is actually instantiated with.
Then update the two comments that call this path "dormant (GH #581)".
Pointers
src/simlin-engine/src/db/diagnostic.rs: model_all_diagnostics (the comment near line 206 describes the gap), collect_all_diagnostics
src/simlin-engine/src/db/fragment_compile.rs: comment near line 816
changed the title [-]engine: assembly-stage CompilationDiagnostics are silently discarded (IN_TRACKED_CONTEXT never set true)[/-][+]engine: assembly-stage compile errors are missing from the error list[/+]on Oct 12, 2026
changed the title [-]engine: assembly-stage compile errors are missing from the error list[/-][+]engine: module variable errors under parent inputs are unattributed[/+]on Oct 12, 2026
Activity
[-]engine: assembly-stage CompilationDiagnostics are silently discarded (IN_TRACKED_CONTEXT never set true)[/-][+]engine: assembly-stage compile errors are missing from the error list[/+][-]engine: assembly-stage compile errors are missing from the error list[/-][+]engine: module variable errors under parent inputs are unattributed[/+]