Skip to content

mxcli check --references does not detect invalid icon references to image collections on buttons #1008

Description

@acarum

Scenario:
When using the Icon: property on an actionbutton or linkbutton in an MDL script, mxcli accepts references to image collections (e.g. Module.Icons_SVG.cmdFilter24) without any error — both at parse time and during reference validation (--references). However, the Mendix model only
supports icon collections (e.g. Atlas_Core.Atlas_Filled) in the button icon field. Using an image collection reference produces a CE1613 build error at MxBuild time.

Steps to reproduce:

  1. Create an MDL script with a linkbutton or actionbutton using Icon: pointing to an image collection:
    linkbutton lnkFilter (
    Caption: 'Filter',
    Action: close_page,
    Icon: 'DesignSystem.Icons_SVG.cmdFilter24'
    )
  2. Run mxcli check script.mdl -p app.mpr --references → passes with no errors
  3. Run mxcli exec script.mdl -p app.mpr → executes successfully
  4. Run mx check app.mpr → fails with CE1613: "The selected custom icon 'DesignSystem.Icons_SVG.cmdFilter24' no longer exists."

Expected behavior:

mxcli check --references should detect that the referenced collection is an image collection, not an icon collection, and report an error — for example:

▎ "'DesignSystem.Icons_SVG' is an image collection; button Icon: requires an icon collection (e.g. Atlas_Core.Atlas_Filled)."

Actual behavior:

mxcli silently accepts the reference and writes it to the model. The error only surfaces at MxBuild time (CE1613), making it hard to diagnose.

Environment:

  • mxcli version: (0.19.0)
  • Mendix version: 11.12.0
  • OS: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions