Expand description
The canonical machine-readable diagnostic surface: logos-diagnostic/1.
One Diagnostic JSON shape, produced here and consumed identically by
largo check --json, largo run --json, the MCP server, and (for code and
severity identity) the language server. Every ParseErrorKind variant
decides its stable kebab-case code, its
severity, and a one-line
headline in wildcard-free matches — a new
error kind does not compile until it has all three.
The catalog enumerates one rendered sample per variant and is the
single source for the generated error catalog and largo explain.
Structs§
- Catalog
Entry - One rendered sample per
ParseErrorKindvariant — the source of the generated error catalog andlargo explain <code>. - Diag
Span - A source span in both byte offsets and 1-based, char-counted line/column.
- Diagnostic
- One
logos-diagnostic/1object. - Related
Info - A secondary location attached to a diagnostic.
Enums§
- Diag
Severity - How severely a diagnostic should be presented.
Functions§
- catalog
- The full rendered catalog, one entry per variant.
- catalog_
json - The catalog as
errors.json(schemalogos-errors/1): one object per variant, pretty-printed, newline-terminated. - catalog_
markdown - The catalog as the reference guide
docs/ERROR_CATALOG.md: one section per code (variants sharing a code share a section), each sample headline fenced astext, never aslogos. - diagnostic_
for - Render one parse error into the canonical
logos-diagnostic/1shape. - guide_
url - The quickguide URL for an anchor — same rendering the LSP ships in
codeDescription. - line_
col - 1-based
(line, column)for a byte offset; columns count characters. - sample_
kinds - One representative
(variant name, kind)perParseErrorKindvariant.