Skip to content

recipe_registry_gen aborts mid-catalogue on the README-documented numsim_material invocation #135

Description

@petlenz

From the 2026-08-02 full-repo review (finding F-07). Reproduced.

Repro: ./build/examples/recipe_registry_gen <out-dir> numsim_material (documented at README.md:98) → terminate called after throwing an instance of 'std::runtime_error' ("NumSimMaterialTarget: first increment supports exactly one scalar state variable...") when the catalogue reaches an unsupported recipe. Earlier files are left on disk; remaining recipes are never emitted. standalone and moose complete.

Fix: wrap the per-recipe emit in try/catch → print SKIPPED (<reason>) and continue; exit non-zero only if zero recipes succeeded. ~10 lines in examples/recipe_registry_gen.cpp.

Root cause note: there is no way to ask a target "can you emit this recipe?" other than catching std::runtime_error — see the companion Target::can_emit() issue. Related: #49.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions