Conversation
… positional-only, not labelled Workshop feedback: `toString(from: $Temperature)` broke, cause unclear. MDL's expression grammar has no named-argument form for function calls — `label: value` parses as a bare identifier COLON-divided by the value (COLON is the OQL division operator), not a labelled argument. Verified on mxcli v0.24.0 / Mendix 11.12.1 against a scratch probe model: `toString(from: $Temperature)` and `formatDateTime($D, pattern: 'yyyy-MM-dd')` pass `mxcli check --references` silently because the collapsed argument count still matches the function's arity; `substring(from: $S, index: 0, length: 3)` fails but with a misleading E006 that never names labelled arguments as the cause. Likely origin: labelled colon syntax is genuine MDL elsewhere (page `Attribute:`/`Action: MICROFLOW Name(Param: val)`, `@anchor(from: bottom, to: top)`) — never inside an expression. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw
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.
What changed and why (one paragraph)
Workshop feedback: a session kept writing
toString(from: $Temperature)and the build broke on thefrom:. New section inskills/learned-microflow-patterns.mdrecords the rule (every Mendix expression function is positional-only; thename: valueshape is genuine MDL in page properties, page actions and@anchor, never inside an expression) and the mechanism: mxcli's expression grammar has no named-argument production, solabel: valueparses as a bare identifier divided by the value (COLON is the OQL division operator). The trap is thatmxcli check --referencespasses it silently whenever the collapsed argument count still matches the function's arity; only an arity mismatch produces an error, and that error (E006 … got 1) never names labelled arguments as the cause. Wrong/correct pair included, plus a STOP instruction: anyname:inside a function call's parentheses is a stop regardless of a clean check.Field evidence
mxcli v0.24.0 / Mendix 11.12.1, on a scratch copy of a small PoC model:
mxcli check --referencestoString(from: $Temperature)describe microflowround-trips the labelled form verbatimformatDateTime($D, pattern: 'yyyy-MM-dd')substring(from: $S, index: 0, length: 3)substring() expects 2 to 3 argument(s), got 1. [E006]Not measured: real
mx check/ Studio Pro on the silently accepted forms (no mxbuild in the environment); the skill says so.Checklist
bin/change)🤖 Generated with Claude Code
https://claude.ai/code/session_01VJgWP5vEoAsNsJYqCDMGNw
Generated by Claude Code