Skip to main content

Module error_list

Module error_list 

Source
Expand description

Error-list entries: the value type every error-list producer (compilation, LSP diagnostics, references, pickers) writes, tagged with which producer wrote it.

CM.3a (2026-07-22): the error entry value type, lowered from lattice-host to the protocol floor so the below-host compilation parser (lattice-compilation) and the effect payload (lattice_grammar::AppEffect::SetErrorList) share ONE type.

Only the entry + its severity live here — the list (ErrorList, with its navigation index) stays in lattice-host as core/host state alongside position_history (its consumer is generic host dispatch; see docs/dev/architecture/compilation-mode.md §3). lattice-host re-exports these two types so existing callers (lattice_host::error_list::ErrorEntry, the CM.2 tests) are unchanged.

Serialize / Deserialize are added here (the host-local definitions did not carry them) because the type now rides inside the serde-derived AppEffect enum.

Structs§

ErrorEntry
One navigable location on the error list. line / col are 0-based (the convention Editor::jump_to_file_line_col expects), matching LSP diagnostics.

Enums§

ErrorSeverity
Severity of one error entry.
ErrorSource
Which producer a run of error entries came from.
ErrorWrite
Whether a producer’s write is a fresh run or a live refresh.