Skip to content

MPR012 warns on every legacy image widget in a classic-client app, which Mendix 11 builds without CE0582 #1226

Description

@MendixMau

Environment

What happens

$ mxcli lint -p App.mpr | grep -c MPR012
57
  ⚠ dynamic image 'imageViewer1' in <Module>.<Page> is not supported by the React client (Mendix 10.7+, the only client on 11) — mxbuild reports CE0582 [MPR012]
  ...
$ mx check App.mpr          # same model, full copy with theme and widgets
Checking app for errors...
The app contains: 0 errors.

There are 57 warnings, each saying mxbuild reports CE0582. On this model mxbuild reports 0 errors and no CE0582.

Cause

mdl/linter/rules/legacy_image_widget.go assumes the React client is "the only client on 11" and never reads the project's Web UI setting. On 11.12.2 the classic client can still be selected (UseOptimizedClient = No), and with it these widgets are valid.

Expected

When the project does not use the React client, skip MPR012 or lower it to info, for example "will need converting before switching to the React client". The message should not claim that CE0582 is reported.

Why it matters

57 false warnings bury the rest of the lint output on exactly the kind of app mxcli is often used on: a large, older app still on the classic client.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions