Error codes › old-range

Error codes

old-range

error Parse and files

What it means#

From edition 1.1, a range says whether its end is in: a..<b leaves it out, a...b keeps it. The old a..b (left out in a body's for, kept in a range) is an error there; its fix, archec fix and archec fmt --edition 1.1 write ..< in a for and ... in a range, which mean what .. meant. Before 1.1, and without an edition, .. keeps its meaning.

How to fix it#

The message says what is wrong and where, and often what was meant (Did you mean …?). Change the model so that what this page describes no longer holds, then check again: archec check main.arche.

An error: archec builds nothing until it is fixed.

archec check --beginner says the most common messages in plain words, with the names that exist.

The automatic fix#

archec has no fix of its own for this code. When the message says Did you mean …?, VS Code offers that change (Quick Fix).

In the terminal#

archec explain old-range prints this explanation; archec explain parse lists the codes of its area.