Repository navigation
Sync ako/mxcli: git merge refuses another version's mx; @size and call ml model; MDL109-112; alter OnChange and layout-grid fixes - #1981
Merged
Merged
Conversation
ResolveMxForVersion treats the project's version as a preference: an mx on PATH first, then the newest installed one, then any cached download. So on a Linux container or CI runner with only another version cached, `mxcli git merge` ran that version's `mx merge`, which wrote the project's merged model, and nothing said so. A model merge (and the mx diff behind its conflict review) now runs only on an mx of the project's own release, checked with MxBinaryVersion and SameMendixRelease. Another version, or an mx whose version cannot be told, is refused before it runs; the existing abort path restores the tree, and the message names `mxcli setup mxbuild --version <project version>`. --mxbuild-path is the deliberate override and only warns, the rule `marketplace package` already applies. Test: cmd/mxcli/gitmerge_mx_version_test.go. Control: with the check stubbed out, all three merge tests fail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…merge engine Integrates upstream PR mendixlabs#1977 (fixes mendixlabs#1976, mirrored as #2644). CHANGELOG conflict resolved by keeping both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QiMsnXa9crge2qnSk9S7Zn
…ld one (#2644) Two holes left by the version check integrated from mendixlabs#1977, both from ResolveMxForVersion's preference order: - it tries PATH before an exact-version install or cache, so with the project's mx cached and another version on PATH the merge was refused although the right engine was there. Without --mxbuild-path the lookup now takes docker.LocalMxForVersion (exact, never PATH) first. - when the --mxbuild-path folder holds no mx it falls back to PATH, and the override then ran that unnamed mx with only a warning. The override now covers only an mx under the named path (a file path stands for its folder); anything else is "no mx in <path>". A project whose version cannot be read now warns that the mx was not checked, as marketplace package does. The PR's test stub also stubs the exact-version lookup, so an mx cached on the test machine cannot leak in. Tests: cmd/mxcli/gitmerge_mx_resolve_2644_test.go (exact install beats PATH; --mxbuild-path without an mx refused, with one warned; the mx diff refused too; unknown project version warns; pathWithin). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QiMsnXa9crge2qnSk9S7Zn
git merge: refuse another Mendix version's mx merge engine (integrates mendixlabs#1977, #2644)
…th must hold one (#2652) The holes #2644 closed for git merge, in marketplace package: the version check ran after ResolveMxForVersion, which tries PATH before an exact install and falls back to PATH when --mxbuild-path holds no mx. - without --mxbuild-path, packageMxPath takes docker.LocalMxForVersion (exact, never PATH) first, so another version's mx on PATH no longer blocks an export the right toolchain is installed for; - with it, an mx outside the named path is refused ("no mx in <path>") rather than exporting with the PATH one under the override (pathWithin, shared with git merge). The test fake now returns an mx inside --mxbuild-path and stubs the exact-version lookup, so an mx cached on the test machine cannot leak in. Tests: cmd_marketplace_package_mx_2652_test.go; with both guards disabled both fail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QiMsnXa9crge2qnSk9S7Zn
In a project with a layout-config.yaml every flow mxcli laid out gained an `@mxcli-layout: ...` line in its Documentation, even in the project style, and the next write appended it again so MDL could not remove it. The style is no longer stored in the flow. DESCRIBE reads an unmarked flow in the project style, the one create or modify rebuilds in, so derived positions are judged against what exec will do and the round trip stays exact; a flow drawn in another style prints the @position lines that keep it. A line written by an older release is honoured once and removed by the next write or `mxcli layout flows`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…DL109) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
marketplace package: take the exact mx before PATH; --mxbuild-path must hold one (#2652)
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
check: reject a split type the build rejects (CE0090/CE0774/CE0771)
# Conflicts: # CHANGELOG.md
…lse (#2636) Under if-else: true-right-else-column an `if` without `else` whose THEN carries on kept the default shape: TRUE in a lane below the split, the empty FALSE on the main line. It is now laid out as one with an empty ELSE (in the builder and the measurer alike): TRUE on the line, FALSE from the split's bottom into the merge's bottom. The model is the same, so describe still prints no `else`; a guard is left to the guard setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…24rqgv fix: stop writing @mxcli-layout into flow documentation (#2635)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…2650) Each ELSE column started BranchGap under the TRUE body's whole measured height, which includes the columns of IFs nested in it, so nested guards made a staircase (the outermost at y=1080 with the decisions at 200). The column now starts on the first row under its decision, and lower only when an object the TRUE body actually drew stands in the column's band. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…24rqgv fix: true-right-false-down keeps TRUE on the line for an if without else (#2636)
…24rqgv fix: true-right-false-down nested false branches share the first row (#2650)
…te (CE5013, MDL110) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
The nightly went red on the Mendix 11.15.0 and 11.16.0 legs in TestTestAttach_KeepsTheHostingAppsPageBundles: every `mxcli test --attach` was refused with "this change compiles to other Java classes, which the running runtime cannot load without a restart", although it only injects a test microflow. The project.jar guard of #2640 counted any changed entry as new Java. Mendix generates a call stub per microflow in each module's proxies/microflows/Microflows class, and on 11.15/11.16 the attach's build recompiles it: a diagnostic build of the guard showed exactly one of 163 entries differing, mxtest/proxies/microflows/Microflows.class 860 -> 1128 bytes. The runtime runs microflows by name (the test endpoint calls Core.microflowCall), and Java that calls a new stub is a changed class of its own, so jarEntries now leaves microflow proxies out of the comparison. The running app's jar is still put back either way. Control: the unit test's proxy-only case fails with the filter stubbed (changed=true); a proxy change beside a real class change is still refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Java Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…binary # Conflicts: # CHANGELOG.md
`set (OnChange: call microflow ...) on txtAmount` was refused by check and exec as "not a pluggable widget and has no named action slots", though create page writes and describe prints the text box's OnChangeAction, and the refusal pointed at `set (Action: ...)`, which a text box does not have. OnEnter / OnLeave / OnEnterKeyPress were in the same state. A built-in widget's event action is now written into its stored key (OnChangeAction, OnEnterAction, OnLeaveAction, OnEnterKeyPressAction), by the MDL name or the stored one, and only where the stored widget holds that key; otherwise the refusal names the event actions it has. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…s (CE7251, MDL111) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
…5joqyu fix(test): --attach no longer refuses a microflow proxy as a Java change
…ternal-action # Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
A Studio Pro-resized activity or decision is stored as its Size. Describe printed nothing for it and MDL could not set it, so drop + create from the description reset every box to the default and a generated flow could not be sized. @SiZe, until now a loop's box, now sizes an activity or a decision too; describe prints it for a box that is not the builder's default. In place, `create or modify` resizes the stored box when the script states another @SiZe (a new Resize mutator op that keeps the centre), and a statement without one keeps its stored box, as one without @position keeps its place. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…service's type (CE6616/CE6621, MDL112) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
…24rqgv fix: alter page set (OnChange: ...) on a built-in input (#2602)
SUB_Feedback_SendToServer's first activity is resized in Studio Pro, so its description now carries @SiZe(130, 60) between @position and @Curve. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…binary # Conflicts: # CHANGELOG.md
check: reject a published OData service that exposes a Binary attribute (CE5013)
…ternal-action # Conflicts: # CHANGELOG.md # mdl/executor/validate_program.go
A Call ML model activity described as "-- Unsupported action: Microflows$MLModelCallAction", so describe -> exec removed it. `[$Out =] call ml model Module.MLModelMapping($In) [on error ...];` now builds the action with Studio Pro's stored keys (ErrorHandlingType, InputVariableName, MlMappingDocument, VariableName) and describe prints it back. The output variable is typed as the mapping's output entity, check --references refuses a mapping that does not exist (mxbuild CE1613), and a nanoflow refuses the statement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…rioritization-24rqgv # Conflicts: # CHANGELOG.md
check -p: reject call external action naming an action the service does not have (CE7251)
…odify-attribute # Conflicts: # CHANGELOG.md # mdl/executor/validate_program.go
…rioritization-24rqgv # Conflicts: # CHANGELOG.md
check -p: reject modify attribute on an external entity that leaves the service's type (CE6616/CE6621)
…rioritization-24rqgv # Conflicts: # CHANGELOG.md
…24rqgv feat: call ml model statement for Microflows$MLModelCallAction (#2623)
A bare `column { ... }` was written at weight 1, one twelfth of the row: a
project before Mendix 11.12 failed the row with CE0535 ("must add up to
12"), 11.12 drew it one twelfth wide, and check was clean.
Bare columns now share what the row's stated widths leave of 12 in equal
whole shares, as Studio Pro's row presets do (one 12, two 6 and 6), and
are auto-fill when there is no whole share. check warns (MDL-GRID01) about
a row whose widths do not add up to 12 in a project below 11.12, where
mxbuild reports CE0535 (measured on 11.6.6; 11.12.6 accepts it).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…24rqgv fix: a layout-grid column with no DesktopWidth shares the row
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Syncs
ako/mxcli:maininto upstream: 19 commits since the last sync (#1979) —git mergeandmarketplace packagerefuse another Mendix version'smx,@sizeandcall ml modelin microflows, four new checks for build errors that passed check and exec, a layout-grid fix, and microflow layout fixes.Includes #1977 (
git mergerefuses another Mendix version's mx merge engine) with its commits unchanged, so merging this with a merge commit marks #1977 merged.Fixes #1947, fixes #1953, fixes #1964, fixes #1970, fixes #1971, fixes #1976, fixes #1978.
Mendix toolchain
git mergerefuses another Mendix version'smx mergeengine (git mergecan run a different Mendix version'smx mergeengine without a warning #1976, fix(git merge): refuse another Mendix version's mx merge engine #1977). The lookup treated the project's version as a preference, so on a machine with only another version cached,mxcli git mergeran that version'smx merge, which wrote the merged model, and nothing said so. A model merge and its conflict diff now run only on an mx of the project's own release; any other is refused before it runs, the tree is restored, and the message namesmxcli setup mxbuild --version <version>.--mxbuild-pathmust hold one. The lookup tried PATH first, so another version on PATH blocked a merge the right engine was installed for; and a--mxbuild-pathfolder without an mx fell back to the PATH one under the override. Now the exact install comes first, and an mx outside the named path is refused.marketplace packagehad the same two holes and gets the same fix.Microflows
@size(w, h)on activities and decisions (Microflow layout: support @size(w, h) on activities, splits and loops #1947). A Studio Pro-resized box was described with nothing, so drop + create reset it to the default, and a generated flow could not be sized. describe prints it for a box that is not the default size, andcreate or modifyresizes the stored box in place (keeping its centre) when the script states another, or keeps it when it states none.call ml model(Support Call ML model action (Microflows$MLModelCallAction) #1964).[$Out =] call ml model Module.MLModelMapping($In) [on error …];builds the Call ML model activity in Studio Pro's stored shape, which described as an unsupported action, so describe → exec removed it. The output is typed as the mapping's output entity;check --referencesrefuses a missing mapping (CE1613) and a nanoflow refuses the statement.@mxcli-layoutis no longer written into flow documentation (@mxcli-layout stamp lands in user-visible microflow documentation #1970). In a project with a layout config, every flow mxcli laid out gained the line in its user-visible Documentation, appended again on each write. A line from an older release is removed by the next write ormxcli layout flows.ifwithoutelsekeeps TRUE on the line (true-right-false-down: if without else puts the true branch below #1971), and nested FALSE branches share the first row instead of stepping down in a staircase (true-right-false-down: nested false branches stack below each other #1978).Pages
alter page … set (OnChange: …)on a built-in input (ALTER PAGE SET OnChange rejects built-in text boxes and suggests an unusable Action workaround #1953). check and exec refused it on a text box, suggesting anActionthe text box does not have; OnEnter, OnLeave and OnEnterKeyPress were the same. A built-in widget's event action is now written into its stored key where the widget has one; otherwise the refusal names the event actions it does have.DesktopWidthshares the row. A barecolumn { … }was written as one twelfth of the row: CE0535 ("must add up to 12") before Mendix 11.12, a sliver from 11.12. Bare columns now share what the stated widths leave, as Studio Pro's row presets do, and MDL-GRID01 warns about a row that does not add up to 12 below 11.12.New checks for build errors that passed check and exec
Each measured on MxBuild 11.16.1, one project per case, with clean controls:
split typethe build rejects — no branch for the subject's own entity (CE0090), a branch for an entity that is not the subject's or a specialization of it (CE0774), the same entity twice (CE0771). Leaving out a subtype builds clean, so it is not reported; the earlier docs that said otherwise are corrected.call external actionnaming an action the consumed service's contract lacks (CE7251), including a name in the wrong case.modify attributeon an external entity that leaves the service's type — a type class change (CE6616) or a string length other than the contract's MaxLength, longer or shorter (CE6621). Integer ↔ Long is allowed, as Mendix allows it.Testing
test --attachno longer refuses a microflow proxy as a Java change. Theproject.jarguard from the last sync counted any changed entry as new Java, and on Mendix 11.15 and 11.16 the attach's build recompiles the per-module microflow call stubs, so every attach was refused. Caught by the nightly