Skip to content

Errors and warnings

A line with a mistake shows its message in place of an answer and is underlined. Other lines keep working.

MessageCause 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 =.
5 m and 3 kg are different kindsMixing dimensions with +, -, to, or a comparison.
"hours" refers to itself. Use another nameA name shadows a unit it uses (hours = 12.5 hours).
These lines depend on each otherTwo or more names that refer to each other in a loop.
Nothing above to add upA total with no numbers above it.
cannot divide 10 by zeroDivision by zero.
expected Real(Length), got Integer(dimensionless)A plain number where a unit is required. Add the unit.
Needs b != 0A when guard rejected the call; the guard is quoted.
Not allowed: mod by zeroA built-in refused the value, with its reason.
These can't be combinedNo 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 lineSyntax smoot cannot read, such as 2024-02-29 without @.
does not have enough information to solve for …A formula was given too few properties.
the equation is inconsistentToo many properties, and they disagree.
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.