lingua-franca
lingua-franca copied to clipboard
Reaction number in diagram doesn't match messages
The reaction number in the diagrams starts with 1, but at least in the C target, it starts with 0. This means there is an off-by-one mismatch between error messages and the diagram. Can we change the diagram to start at 0? Do other targets also start at 0?
I wasn't aware of this issue before. In C++ target, reaction names start at 1 (because they are displayed this way in the diagrams). I don't know about the other targets.
How should we handle this? Should we change the diagrams and the numbering in targets that currently start counting at 1 (as proposed by @soerendomroes in #1950), or should we change the numbering in the C target?