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
| Severity | Effect |
|---|
error | The command exits 1. compile and render do not write their output; collect may still have written the stores it computed. |
warning | The command succeeds; the output is written |
Warnings describe a loss that was reported, not a failure that was hidden.
Parse and source
| Code | Meaning |
|---|
parse | The parser could not continue |
mismatched-close-tag | <a> closed by </b> |
markup-in-expression | Only <fragment>…</fragment> is a value |
component-never-returns | A component has a path with no return |
no-return | A body ended without a return |
unexpanded | An interpolation survived expansion (internal) |
unresolved-name | A name was used before the phase that provides it |
Imports and modules
| Code | Meaning |
|---|
import-missing | The imported file does not exist |
import-name | The module does not export that name |
import-read | The module was found but could not be read |
import-cycle | A module imports itself, directly or indirectly |
read | A source file could not be read or parsed |
core-unknown | from "core" names something that is not a core function |
Names, types and calls
| Code | Meaning |
|---|
unknown-name | The name is not in scope |
unknown-function | A call names a function that is not in scope |
not-a-function | A call names a value that is not a function |
function-value | A function was used where a value was expected |
not-a-value | A declaration used as a value |
arity | A core function got the wrong number of arguments |
type | A value has the wrong type for its position |
if-not-bool | An if condition is not a bool |
missing-prop | A required prop was not supplied |
unknown-prop | The component declares no such prop |
no-field | The record has no such field |
not-a-record | Field access on something that is not a record |
no-index | The array has no such index |
no-key | The record has no such key |
bad-index | Indexing with the wrong key type |
print-value | A list or object was used as text |
const-missing | The const is not in scope |
const-cycle | Constants depend on each other |
component-missing | The component is not in scope |
recursion | Component nesting exceeded 64 |
bib-child | <bib> holds something other than a component instance |
bib-id | A bibliography record has no literal id |
bib-twice | A source holds more than one <bib> |
Numbering and targets
| Code | Meaning |
|---|
duplicate-id | An id is used more than once |
unnumbered | Something asks for a number, but the kind is not configured, or the target was not numbered |
scope-h1-section | h1 cannot be numbered by section |
scope-no-section | A section-scoped heading has no numbered section above it |
store-missing | collect has not run, or the store has no entry for the id |
store-not-ready | A generated store was read before collect |
unknown-target | A to names an id that is not in the store's union |
label-outside-element | label() outside any element |
label-not-heading | label() outside a heading |
label-without-id | A heading prints label() but has no id |
label-placeholder | A label is printed before it has been numbered (warning) |
dangling-link | A link points at an id nothing draws |
id-not-literal | An id did not reduce to a literal |
id-in-page-part | An id inside a header or footer |
Layout
| Code | Meaning |
|---|
no-page | The document has no <page> (warning) |
unknown-block | An unrecognized block; its children are kept (warning) |
inline-element | An element with no inline behaviour; its text is kept (warning) |
image-src | <img> has no src |
image-size | The image's size could not be read |
image-inline | An image inside a line |
rule-outside-table | <rule> outside a <table> |
indent-hanging | A text block states both indent and hanging |
math-command | An unknown math command |
missing-glyph | The face has no glyph for a character (warning) |
loose-line | Justified gaps exceeded 2.5× natural space (warning) |
loose-text | Text outside a text block was kept as a paragraph (warning) |
font | A file is not a TrueType/OpenType font |
font-fallback | A declared face could not be read; the bundled face is used (warning) |
Pagination and clipping
| Code | Meaning |
|---|
clip | A line, image or table did not fit and was clipped (warning) |
oversized | A block is taller than the page (warning) |
fixed-page-overflow | Content overflowed a fixed page (warning) |
float-clip | A float is taller than its page or column (warning) |
float-dropped | A float had nowhere to go on a fixed page (warning) |
float-cols | A float spans an intermediate number of columns (warning) |
float-width | A float is wider than the span it states (warning) |
float-placement | placement is not top or bottom |
columns-clip | An item is taller than a column (warning) |
columns-notes | Notes from a columns region did not fit the page (warning) |
row-clip | A row item is taller than the page (warning) |
table-clip | A table fragment did not fit the page (warning) |
Tables
| Code | Meaning |
|---|
table-columns | <table> has no columns |
table-align-length | align is not as long as columns |
table-overlap | Two cells claim the same grid position |
table-hole | A row does not fill all columns |
table-child | An element inside a table is not a cell or rule (warning) |
table-rule-boundary | A vertical rule names a boundary outside the grid |
table-rule-duplicate | Two rules name one boundary |
table-rule-mid-row | A horizontal rule is not at a complete row |
table-rule-range | A vertical rule's to is not after its from |
Configuration and files
| Code | Meaning |
|---|
config-read | The config file could not be read |
config-json | The config file is not valid JSON |
config-shape | A key has the wrong shape |
config-unknown | An unknown top-level key |
config-scope | A numbering scope is missing or invalid |
config-style | A numbering style is invalid |
store-write | A generated store could not be written |
write | The output file could not be written |
not-static | render 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.