RIDDL 2.8.4 Released
RIDDL 2.8.4 is now available.
release riddl compiler
RIDDL 2.8.4 is now available. This release of the RIDDL compiler and language tooling includes the following changes:
What’s New
What’s New
Features
createdelivers a creation command’s answer. Take a command that declaresyields event X. Its handling clause can now settle that obligation bycreateing an entity E, provided E’son initpublishes X on every path, either by asendortellof an X or by refusing witherror/require. This is delegation, asforwarddoes it: the answer travels from E’s outlets along the connectors back to the sender, and the creating clause yields nothing.- Before: this common shape had no legal spelling. Leaving out the
clause’s own
yieldwasmsg-yield-undeclared. Keeping it wasmsg-answer-unreachable. Where neither fired, the sender received two answers. - CM §18.7: now lists four ways to settle a declared response and
states the must-preserve: no second local answer, and a replayed
on initdoes not re-deliver the answer.
- Before: this common shape had no legal spelling. Leaving out the
clause’s own
- New Style rule
stmt-yield-duplicates-creation. It reports ayieldof the answer beside such acreate, because the receiver sees two answers with different message ids. The fix is to remove theyield. - Cardinality ranges have a source spelling:
T{n,m},T{n,}andT{,m}.- Bounds: either bound may be left out.
T{n,}has no maximum, andT{,m}has a minimum of 0. - Where: legal wherever
?,*and+are: type definitions, field types and ascriptions. - Exact counts:
T{3,3}means exactly three and is legal. - New Error
type-range-max-zero: reported forT{,0}. - Prettify: writes a bound only when it is not open, so
T{0,5}comes back asT{,5}. - Why this was needed: the range existed in the AST, BAST, JSON and the documentation, but no parser rule built one.
- Bounds: either bound may be left out.
Bug Fixes
- BAST decoded cardinality ranges as the wrong type.
- Cause: ranges shared a tag with
range(…)types, and the reader guessed which one it had by peeking at the next byte. A range overIntegeror over a named type therefore decoded as arange(…)type and corrupted everything after it. - Fix: ranges now have their own tag.
- Cause: ranges shared a tag with
- JSON could not represent an open maximum. An open maximum is now
written by omitting
max. An absentmaxreads back as open; it used to default to 1. - Severe errors named the exception on Native. A crash reported through
Exception Thrownnow names the root cause’s class and message. Scala Native used to print nothing there.
Internal
- BAST
FORMAT_REVISIONis now 39, for the new cardinality-range tag..bastfiles written by older versions are rejected, so regenerate them. - The
commandstest suites now run serially. One suite printed into another’s captured stdout and broke a JSON assertion in CI. - Census: across 191 riddl-models entry points, all 11
msg-answer-unreachablefindings are resolved, andstmt-yield-duplicates-creationappears 44 times in 30 models. Those 44 sites each carry ayieldto delete. No other rule moved. - Known issue: an intermittent crash in CI’s Linux Native corpus test on reactive-bbq, BACKLOG [1.38]. It does not reproduce on macOS. The next occurrence will name its exception.