You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 819a29a
Browse filesBrowse the repository at this point in the historyBrowse files
{"area": "mdl/backend", "date": "2026-11-06", "symptom": "`create constant` stored ExportLevel \"\" where Studio Pro writes \"Hidden\"; mx check accepted it, but mx diff of that unit against a \"Hidden\" copy on another branch crashed (exit 129, Value cannot be null. (Parameter 'element')) and git merge lost its property report; `create or modify constant` also turned a stored API/Hidden into \"\"", "cause": "constToGen wrote c.ExportLevel verbatim, and constants have no MDL spelling for it, so the executor's model always carried \"\"; UpdateConstant was the one rewrite path not routed through keepStoredExportLevel, and so missing from TestUpdatePaths_KeepStoredExportLevel's enumeration", "file": "mdl/backend/modelsdk/constant_write.go (constToGen, UpdateConstant)", "fix": "constToGen defaults to \"Hidden\" (orDefault, as every other writer); UpdateConstant keeps the stored level via keepStoredExportLevel, which ignores a stored \"\" and so also repairs units an earlier version wrote", "insight": "An enum value mx check accepts can still break Mendix's own tooling: measure the consumer that fails (mx diff of a \"\" copy against a \"Hidden\" copy: 129; two \"Hidden\" copies: 0), not just the build. When a carry helper is enumerated by a table test, a writer missing from the table is the bug — grep the writers for SetExportLevel without orDefault", "refs": "ako/mxcli#1980, mendixlabs/mxcli#1749", "test": "mdl/backend/modelsdk/issue816_export_level_test.go (Constant case, TestConstant_ExportLevelDefaultsToHidden); mdl-examples/bug-tests/1980-constant-export-level-hidden.mdl"}
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
15
15
16
16
### Fixed
17
17
18
+
- **`create constant` writes `ExportLevel: Hidden`, as Studio Pro does** (ako/mxcli#1980, mendixlabs/mxcli#1749) — it wrote `""`, which `mx check` accepts but `mx diff` crashes on against a `Hidden` copy (exit 129), taking `git merge`'s report with it. `create or modify constant` now keeps a stored level instead of clearing it, and repairs a stored `""`.
18
19
- **`widget sync` keeps the integers it does not change as integers** (ako/mxcli#1976, mendixlabs/mxcli#1748) — syncing a widget wrote every int32 and int64 in it back as a double, a text box in the widget's slot included, whose `MaxLengthCode -1.0` Mendix reads as unlimited (CE6510). A unit already synced by an earlier version keeps its doubles; re-create the page to repair it.
19
20
- **A Marketplace Calendar written by mxcli passes a plain `mx check`** (mendixlabs/mxcli#1632) — every Calendar failed with CE0463 "The definition of this widget has changed" until `mxcli fix widgets` or Studio Pro's "Update all widgets"; `mxcli docker check` hid it, since it runs that update on a temporary copy first. The Calendar's `toolbarItems` object list declares its sub-properties directly under `<properties>`, not inside a `<propertyGroup>`, and the `.mpk` parser behind generated widget templates read only the grouped shape, so the list was stored with no definition of its items. Both shapes are now read, a direct sub-property takes its category from its own `<category>` element, and the stored Calendar equals what `mx update-widgets` writes. The other object-list widgets in `doctype-tests/32-pluggable-widget-object-lists-v010.mdl` (Accordion, PopupMenu, Maps, area and line chart, heat map) are stored unchanged.
20
21
- **`alter workflow` no longer guesses which outcome to drop** (ako/mxcli#808) — `drop X outcome 'V'` with two outcomes of value `V` dropped the first; it is refused as ambiguous now. `check --references` also resolves an activity reference by name before caption, as `exec` does, so its guards no longer go silent on a target captioned like another activity's name.
0 commit comments