Skip to main content

Diagnostics

Every complaint carries a stable code. The code is the part to grep for; the message is written to be read once.

error[unknown-prop]: `Figure` declares no prop `srcset`
--> paper.mtx:12:5
= help: check the component body
SeverityEffect
errorThe command exits 1. compile and render do not write their output; collect may still have written the stores it computed.
warningThe command succeeds; the output is written

Warnings describe a loss that was reported, not a failure that was hidden.

Parse and source​

CodeMeaning
parseThe parser could not continue
mismatched-close-tag<a> closed by </b>
markup-in-expressionOnly <fragment>…</fragment> is a value
component-never-returnsA component has a path with no return
no-returnA body ended without a return
unexpandedAn interpolation survived expansion (internal)
unresolved-nameA name was used before the phase that provides it

Imports and modules​

CodeMeaning
import-missingThe imported file does not exist
import-nameThe module does not export that name
import-readThe module was found but could not be read
import-cycleA module imports itself, directly or indirectly
readA source file could not be read or parsed
core-unknownfrom "core" names something that is not a core function

Names, types and calls​

CodeMeaning
unknown-nameThe name is not in scope
unknown-functionA call names a function that is not in scope
not-a-functionA call names a value that is not a function
function-valueA function was used where a value was expected
not-a-valueA declaration used as a value
arityA core function got the wrong number of arguments
typeA value has the wrong type for its position
if-not-boolAn if condition is not a bool
missing-propA required prop was not supplied
unknown-propThe component declares no such prop
no-fieldThe record has no such field
not-a-recordField access on something that is not a record
no-indexThe array has no such index
no-keyThe record has no such key
bad-indexIndexing with the wrong key type
print-valueA list or object was used as text
const-missingThe const is not in scope
const-cycleConstants depend on each other
component-missingThe component is not in scope
recursionComponent nesting exceeded 64
bib-child<bib> holds something other than a component instance
bib-idA bibliography record has no literal id
bib-twiceA source holds more than one <bib>

Numbering and targets​

CodeMeaning
duplicate-idAn id is used more than once
unnumberedSomething asks for a number, but the kind is not configured, or the target was not numbered
scope-h1-sectionh1 cannot be numbered by section
scope-no-sectionA section-scoped heading has no numbered section above it
store-missingcollect has not run, or the store has no entry for the id
store-not-readyA generated store was read before collect
unknown-targetA to names an id that is not in the store's union
label-outside-elementlabel() outside any element
label-not-headinglabel() outside a heading
label-without-idA heading prints label() but has no id
label-placeholderA label is printed before it has been numbered (warning)
dangling-linkA link points at an id nothing draws
id-not-literalAn id did not reduce to a literal
id-in-page-partAn id inside a header or footer

Layout​

CodeMeaning
no-pageThe document has no <page> (warning)
unknown-blockAn unrecognized block; its children are kept (warning)
inline-elementAn element with no inline behaviour; its text is kept (warning)
image-src<img> has no src
image-sizeThe image's size could not be read
image-inlineAn image inside a line
rule-outside-table<rule> outside a <table>
indent-hangingA text block states both indent and hanging
math-commandAn unknown math command
missing-glyphThe face has no glyph for a character (warning)
loose-lineJustified gaps exceeded 2.5× natural space (warning)
loose-textText outside a text block was kept as a paragraph (warning)
fontA file is not a TrueType/OpenType font
font-fallbackA declared face could not be read; the bundled face is used (warning)

Pagination and clipping​

CodeMeaning
clipA line, image or table did not fit and was clipped (warning)
oversizedA block is taller than the page (warning)
fixed-page-overflowContent overflowed a fixed page (warning)
float-clipA float is taller than its page or column (warning)
float-droppedA float had nowhere to go on a fixed page (warning)
float-colsA float spans an intermediate number of columns (warning)
float-widthA float is wider than the span it states (warning)
float-placementplacement is not top or bottom
columns-clipAn item is taller than a column (warning)
columns-notesNotes from a columns region did not fit the page (warning)
row-clipA row item is taller than the page (warning)
table-clipA table fragment did not fit the page (warning)

Tables​

CodeMeaning
table-columns<table> has no columns
table-align-lengthalign is not as long as columns
table-overlapTwo cells claim the same grid position
table-holeA row does not fill all columns
table-childAn element inside a table is not a cell or rule (warning)
table-rule-boundaryA vertical rule names a boundary outside the grid
table-rule-duplicateTwo rules name one boundary
table-rule-mid-rowA horizontal rule is not at a complete row
table-rule-rangeA vertical rule's to is not after its from

Configuration and files​

CodeMeaning
config-readThe config file could not be read
config-jsonThe config file is not valid JSON
config-shapeA key has the wrong shape
config-unknownAn unknown top-level key
config-scopeA numbering scope is missing or invalid
config-styleA numbering style is invalid
store-writeA generated store could not be written
writeThe output file could not be written
not-staticrender was given dynamic source

Fixing the common ones​

store-missing or store-not-ready — run collect before compile, or check that generated.dir points where the imports look.

unnumbered — either add numbering.<kind> to the config, or stop printing the number. An unnumbered thing has no label; that is deliberate.

dangling-link — the target id is not drawn anywhere. Check that the element carrying the id is actually in the document, and that the id is spelled the same.

scope-no-section — an h2 numbered by section needs a numbered h1 above it. Either number the h1 or use document scope for the h2.

table-hole — a row's spans do not sum to columns. Add a cell or widen a span; the engine does not pad.

unknown-block — the tag is not a block the engine knows. Its children are still laid out, which is why this is a warning.