Reference · errors

Error codes

Every message the program prints carries a code, such as dt::type, and an address that lands on its own page here: what happened, what to do, a broken document and its fix, and a link on to the rule in the guide.

Every code

An error shows its code, then the address of its page (explain: …/e/type) and the command that prints the same words from your own copy of the docs (dharmatiles explain dt::type). In the editor, a message with a code has an Explain link that opens the copy served with the program. The table is written from the program’s list of codes, so a new code appears here when it is added. The codes whose rule has no other home are explained below the table; the rest are explained in the section the code’s own page links to.

CodeWhoseWhat happened
dt::format-0a mistake in the documentA document with no header line is format 0, which this program does not read
dt::format-newera mistake in the documentThe document is of a newer format than this program reads
dt::headera mistake in the documentThe header line takes version= and nothing else
dt::header-versiona mistake in the documentThe header line has no version, or one that cannot be read
dt::header-twicea mistake in the documentA document has one header line
dt::header-firsta mistake in the documentThe header line must be the first node of the file
dt::syntaxa mistake in the documentDocuments are KDL v2: a bare true, false or null is KDL v1
dt::tilea mistake in the documentA file holds one tile
dt::tile-namea mistake in the documentA tile takes no name: its file name is its name
dt::abouta mistake in the documentabout takes one string
dt::seeda mistake in the documentA tile's seed is a whole number from 0
dt::stacka mistake in the documentA tile or a definition has one stack
dt::parama mistake in the documentA tile has no parameters: only a definition does
dt::definea mistake in the documentdefine takes only a name
dt::missing-namea mistake in the documentThis node needs a name
dt::linea mistake in the documentThat name is a tile edge or corner, so a line cannot take it
dt::seama mistake in the documentA line crosses a square's edge where no seam is, so it would not meet the next tile's
dt::near-edgea mistake in the documentA point is within a millimetre of a side of the tile but not on it
dt::edge-rangea mistake in the documentA point on a side of the tile has a range, so each seed would put it somewhere else on the side
dt::seamsa mistake in the documentThe seam table in the edge contract cannot be read, or is missing
dt::unknown-controla mistake in the documentThe element has no control by that name
dt::unknown-elementa mistake in the documentNo element or definition is called that
dt::unknown-nodea mistake in the documentThat line is not one this kind of document holds
dt::missing-controla mistake in the documentA body needs a top= it has no default for
dt::positionala mistake in the documentThe element takes name=value controls, not a bare value
dt::control-nodea mistake in the documentA control written as its own line has no block
dt::groupa mistake in the documentThat control is a group of controls, not a value
dt::experta mistake in the documentThat control is an expert control, not for a tile
dt::choicea mistake in the documentThe control takes one of a few words, and this is not one
dt::duplicatea mistake in the documentA control is set twice on one line
dt::ida mistake in the documentAnother entry of that element already has that id=
dt::scattera mistake in the documentThat element cannot be scattered
dt::weighta mistake in the documentweight= is a scatter child's share of the mix
dt::percenta mistake in the documentThe control is a share written as a percent, such as 20%
dt::expra mistake in the documentA formula in quotes could not be read
dt::namea mistake in the documentA plain name is declared twice or is a word of the language
dt::unita mistake in the documentA length or angle has no unit, or a unit that is not one
dt::typea mistake in the documentKinds do not agree: a length mixed with a plain number, or a place of the wrong kind
dt::valuea mistake in the documentA value cannot be read or is not allowed here
dt::unknown-namea mistake in the documentNothing declares or sets that name
dt::rangea mistake in the documentA number is outside the limits of its weighting
dt::weightinga mistake in the documentA weighting is written wrongly, or the control takes none
dt::clouda mistake in the documentA top with odds (a cloud) is used in arithmetic it does not have
dt::pointa mistake in the documentA point is outside the tile or the region it is written in
dt::ata mistake in the documentNo point is called that
dt::regiona mistake in the documentA region cannot be made: it names a place that is not there, or leads back to itself
dt::unknown-regiona mistake in the documentNo region has that name
dt::empty-regiona mistake in the documentA region covers nothing
dt::placea mistake in the documentThat place is not one the element can use
dt::basea mistake in the documentbase takes no settings yet
dt::base-ordera mistake in the documentThe base is the first line of the stack, and there is one
dt::ordera mistake in the documentThe stack lists something before what it stands on
dt::plana mistake in the documentThe stack asks for something the plan cannot give yet
dt::pina mistake in the documentA pin needs top= and at=, and belongs on a body
dt::emptya mistake in the documentA pin's place covers nothing
dt::thina mistake in the documentA layer can never be as thick as the printer's skin
dt::bandthe program failed, not the documentA piece misses its band: a bug in the element, not in the document
dt::calma mistake in the documentThe water's calm level cannot be read
dt::steepa note: nothing is refusedPins force the dirt past its slope
dt::shadoweda note: nothing is refusedA pin wins nowhere because later pins cover all of its place
dt::edgea note: nothing is refusedA body meets the tile's edge at a height of its own, so it no longer butts a standard tile
dt::looka mistake in the documentAn element cannot build what a control or the place asks for
dt::elementa mistake in the documentAn element refused its controls
dt::crowna note: nothing is refusedThe crown of one piece reaches over a taller neighbour
dt::usea mistake in the documentFiles use each other round to themselves
dt::loopa mistake in the documentDefinitions call each other too deeply
dt::nestinga mistake in the documentThat entry cannot go inside this one
dt::too-manya mistake in the documentThe stack expands to more entries than a tile may hold
dt::not-yeta mistake in the documentThat is not available yet
dt::systema mistake in the documentThe build target is not one the program knows
dt::printera mistake in the documentA printer profile is not found or does not read
dt::no-tilea mistake in the documentThe file has no tile to build
dt::palettea mistake in the documentThe palette does not read, so the tile is shown in the default paint
dt::mapa mistake in the documentA map or print list names a tile that cannot be read
dt::platesa mistake in the documentPlates are not made from a draft build
dt::slotsa mistake in the documentA piece needs more filaments than the printer has slots
dt::gatethe program failed, not the documentA piece fails the printability gate
dt::groupinga note: nothing is refusedGrouping plates by filament set takes more plates than packing by size
dt::verifya note: nothing is refusedA machine's numbers are not yet checked against the maker
dt::inventorythe program failed, not the documentThe inventory file cannot be read or written
dt::viewthe program failed, not the documentThe view of a print list could not be prepared
dt::sourcethe program failed, not the documentA file could not be read
dt::writethe program failed, not the documentA file could not be written
dt::buildthe program failed, not the documentThe build failed in the program, not in the document
dt::panicthe program failed, not the documentThe program stopped on a bug of its own
dt::payloadthe program failed, not the documentThe page sent something the program could not read
dt::internalthe program failed, not the documentThe program reached a state it should not
dt::bugthe program failed, not the documentAn element reached a case it does not build: a bug in the program

Controls and lines

The mistakes in how a line is written, before what it says is checked.

dt::choice
A control that takes one of a few words (clods some, leaves bare) was given a word it does not have. The message lists the words the control takes.
dt::duplicate
A control is written twice on one line, top set twice for example. One of them would win without a word, so the document is refused: keep one.
dt::expert
Some controls are an element’s inner workings, kept for the library’s own tiles. A tile may not write them; the element’s page lists the controls a tile may.
dt::missing-name
let, point, line, region, define and param each need a name straight after the keyword.
dt::unknown-node
A line this kind of document does not hold at this place: a plates line holds pin lines and nothing else, a tile holds the nodes of section 1. The message says what is allowed there.

Definitions and expansion

Mistakes found when the program reads a whole tile, its parts and its definitions together.

dt::loop
Definitions call each other, or themselves, more deeply than the program follows. A definition may build on others, never round to itself.
dt::nesting
An entry was written inside one that does not take it. A pin goes inside a body, a thing inside a scatter; terrain goes in the stack.
dt::too-many
The stack expands to more than 10 000 entries once every definition is called and every scatter is counted. Scatter fewer things, or call a definition fewer times.
dt::not-yet
The word is in the language’s plan and is not built. The message says what to write instead.
dt::element
An element looked at its controls together and refused them, for a reason the message gives. The element’s page has its rules.
dt::no-tile
build was asked for a file with no tile in it: a parts file, a printer profile or a level file. These are only checked.

When the program fails

These are not mistakes in a document. The program shows them loudly, with what it knows, and a report of one is welcome (Errors says why they are kept apart from document mistakes).

dt::build
A build failed inside the program, not in the document. The message holds the cause.
dt::panic
The program stopped on a bug of its own while building. The message says what it was doing.
dt::payload
The editor’s page sent something the program could not read. Reloading the page is the first thing to try.
dt::internal
The program reached a state that the language’s own tables rule out, such as a body that has no body. It is a bug in the program.
dt::bug
An element reached a case it does not build. It is a bug in the program, and the message names the element.

Files

dt::source
A file could not be read: it is not there, or the program may not read it. The message has the path and the system’s reason.
dt::write
A file could not be written: the folder is missing, or the program may not write there. The message has the path and the reason.