Errors and warnings
A line with a mistake shows its message in place of an answer and is underlined. Other lines keep working.
| Message | Cause and fix |
|---|---|
"x" isn't defined. Name it first: x = … | A typo, a note that mentions a defined name, or a label after a number (bread 1.20). Start notes with #; put names before =. |
"gapp" isn't defined. Did you mean gap? | A name one or two letters from one that exists, or the start of one. Up to three are suggested, each of which can stand there. Fields, arguments, and time zones are suggested the same way. |
5 m and 3 kg are different kinds | Mixing dimensions with +, -, to, or a comparison. |
"hours" refers to itself. Use another name | A name shadows a unit it uses (hours = 12.5 hours). |
These lines depend on each other | Two or more names that refer to each other in a loop. |
Nothing above to add up | A total with no numbers above it. Other words say their own verb: Nothing above to average, Nothing above to count. |
cannot divide 10 by zero | Division by zero. |
expected Real(Length), got Integer(dimensionless) | A plain number where a function argument needs a dimension, such as distance: Length. Add the unit. |
`w` should be a Mass, but the formula makes it a plain 6 | A formula property came out the wrong kind. The message says what it needs and what the formula gave it, and for a plain number suggests a unit or a unit hint. |
Needs b != 0 | A when guard rejected the call; the guard is quoted. |
Not allowed: mod by zero | A built-in refused the value, with its reason. |
These can't be combined | No operator takes these two kinds of value together. |
To solve this, start with "solve for x:" | An equation written on its own, like 3x + 7 = 22. |
Can't read this line | Syntax smoot cannot read, such as 2024-02-29 without @. |
does not have enough information to solve for … | A formula was given too few properties. |
`t * 3 = 1` is inconsistent once t is 0.3333 radian | Too many properties, and they disagree. When a formula line fails, the message quotes it and the value that decided it. When one side has a unit and the other is a plain number, it names the unit to give the plain side. A property you give that the formula disagrees with says only the equation is inconsistent. |
the solver cannot … | A shape the solver does not handle yet. |
Warnings underline a line but still show an answer: a name declared twice,
two numbers with no operator between them (2 3), an unused parameter, or
an as that a following to discards.