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.
| Code | Whose | What happened |
|---|---|---|
dt::format-0 | a mistake in the document | A document with no header line is format 0, which this program does not read |
dt::format-newer | a mistake in the document | The document is of a newer format than this program reads |
dt::header | a mistake in the document | The header line takes version= and nothing else |
dt::header-version | a mistake in the document | The header line has no version, or one that cannot be read |
dt::header-twice | a mistake in the document | A document has one header line |
dt::header-first | a mistake in the document | The header line must be the first node of the file |
dt::syntax | a mistake in the document | Documents are KDL v2: a bare true, false or null is KDL v1 |
dt::tile | a mistake in the document | A file holds one tile |
dt::tile-name | a mistake in the document | A tile takes no name: its file name is its name |
dt::about | a mistake in the document | about takes one string |
dt::seed | a mistake in the document | A tile's seed is a whole number from 0 |
dt::stack | a mistake in the document | A tile or a definition has one stack |
dt::param | a mistake in the document | A tile has no parameters: only a definition does |
dt::define | a mistake in the document | define takes only a name |
dt::missing-name | a mistake in the document | This node needs a name |
dt::line | a mistake in the document | That name is a tile edge or corner, so a line cannot take it |
dt::seam | a mistake in the document | A line crosses a square's edge where no seam is, so it would not meet the next tile's |
dt::near-edge | a mistake in the document | A point is within a millimetre of a side of the tile but not on it |
dt::edge-range | a mistake in the document | A point on a side of the tile has a range, so each seed would put it somewhere else on the side |
dt::seams | a mistake in the document | The seam table in the edge contract cannot be read, or is missing |
dt::unknown-control | a mistake in the document | The element has no control by that name |
dt::unknown-element | a mistake in the document | No element or definition is called that |
dt::unknown-node | a mistake in the document | That line is not one this kind of document holds |
dt::missing-control | a mistake in the document | A body needs a top= it has no default for |
dt::positional | a mistake in the document | The element takes name=value controls, not a bare value |
dt::control-node | a mistake in the document | A control written as its own line has no block |
dt::group | a mistake in the document | That control is a group of controls, not a value |
dt::expert | a mistake in the document | That control is an expert control, not for a tile |
dt::choice | a mistake in the document | The control takes one of a few words, and this is not one |
dt::duplicate | a mistake in the document | A control is set twice on one line |
dt::id | a mistake in the document | Another entry of that element already has that id= |
dt::scatter | a mistake in the document | That element cannot be scattered |
dt::weight | a mistake in the document | weight= is a scatter child's share of the mix |
dt::percent | a mistake in the document | The control is a share written as a percent, such as 20% |
dt::expr | a mistake in the document | A formula in quotes could not be read |
dt::name | a mistake in the document | A plain name is declared twice or is a word of the language |
dt::unit | a mistake in the document | A length or angle has no unit, or a unit that is not one |
dt::type | a mistake in the document | Kinds do not agree: a length mixed with a plain number, or a place of the wrong kind |
dt::value | a mistake in the document | A value cannot be read or is not allowed here |
dt::unknown-name | a mistake in the document | Nothing declares or sets that name |
dt::range | a mistake in the document | A number is outside the limits of its weighting |
dt::weighting | a mistake in the document | A weighting is written wrongly, or the control takes none |
dt::cloud | a mistake in the document | A top with odds (a cloud) is used in arithmetic it does not have |
dt::point | a mistake in the document | A point is outside the tile or the region it is written in |
dt::at | a mistake in the document | No point is called that |
dt::region | a mistake in the document | A region cannot be made: it names a place that is not there, or leads back to itself |
dt::unknown-region | a mistake in the document | No region has that name |
dt::empty-region | a mistake in the document | A region covers nothing |
dt::place | a mistake in the document | That place is not one the element can use |
dt::base | a mistake in the document | base takes no settings yet |
dt::base-order | a mistake in the document | The base is the first line of the stack, and there is one |
dt::order | a mistake in the document | The stack lists something before what it stands on |
dt::plan | a mistake in the document | The stack asks for something the plan cannot give yet |
dt::pin | a mistake in the document | A pin needs top= and at=, and belongs on a body |
dt::empty | a mistake in the document | A pin's place covers nothing |
dt::thin | a mistake in the document | A layer can never be as thick as the printer's skin |
dt::band | the program failed, not the document | A piece misses its band: a bug in the element, not in the document |
dt::calm | a mistake in the document | The water's calm level cannot be read |
dt::steep | a note: nothing is refused | Pins force the dirt past its slope |
dt::shadowed | a note: nothing is refused | A pin wins nowhere because later pins cover all of its place |
dt::edge | a note: nothing is refused | A body meets the tile's edge at a height of its own, so it no longer butts a standard tile |
dt::look | a mistake in the document | An element cannot build what a control or the place asks for |
dt::element | a mistake in the document | An element refused its controls |
dt::crown | a note: nothing is refused | The crown of one piece reaches over a taller neighbour |
dt::use | a mistake in the document | Files use each other round to themselves |
dt::loop | a mistake in the document | Definitions call each other too deeply |
dt::nesting | a mistake in the document | That entry cannot go inside this one |
dt::too-many | a mistake in the document | The stack expands to more entries than a tile may hold |
dt::not-yet | a mistake in the document | That is not available yet |
dt::system | a mistake in the document | The build target is not one the program knows |
dt::printer | a mistake in the document | A printer profile is not found or does not read |
dt::no-tile | a mistake in the document | The file has no tile to build |
dt::palette | a mistake in the document | The palette does not read, so the tile is shown in the default paint |
dt::map | a mistake in the document | A map or print list names a tile that cannot be read |
dt::plates | a mistake in the document | Plates are not made from a draft build |
dt::slots | a mistake in the document | A piece needs more filaments than the printer has slots |
dt::gate | the program failed, not the document | A piece fails the printability gate |
dt::grouping | a note: nothing is refused | Grouping plates by filament set takes more plates than packing by size |
dt::verify | a note: nothing is refused | A machine's numbers are not yet checked against the maker |
dt::inventory | the program failed, not the document | The inventory file cannot be read or written |
dt::view | the program failed, not the document | The view of a print list could not be prepared |
dt::source | the program failed, not the document | A file could not be read |
dt::write | the program failed, not the document | A file could not be written |
dt::build | the program failed, not the document | The build failed in the program, not in the document |
dt::panic | the program failed, not the document | The program stopped on a bug of its own |
dt::payload | the program failed, not the document | The page sent something the program could not read |
dt::internal | the program failed, not the document | The program reached a state it should not |
dt::bug | the program failed, not the document | An 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,
topset 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-namelet,point,line,region,defineandparameach 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
pinlines 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
pingoes inside a body, a thing inside ascatter; 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-tilebuildwas 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.