Skip to content

engine: module variable errors under parent inputs are unattributed #581

Open

Description

@bpowers

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

Activity

  1. added
    bug
    engine
    on May 19, 2026
  2. 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
  3. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugengine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions