Skip to main content

Module error_list

Module error_list 

Source
Expand description

CM.2 (2026-07-22): the error list — a persistent, cross-file list of navigable locations with an index, walked by generic host dispatch (:cnext / :cprev / :cc and the Builtin ]q / [q chords).

Placement mirrors position_history on crate::editor::Editor: this is core/host state, NOT owned by any mode. By the substrate-vs-mode-helper rule (uniform-host consumer ⟹ core), its consumer is generic navigation dispatch, so it lives on the host like the jump ring. Compilation (CM.3), diagnostics, and search are all producers that populate it via crate::editor::Editor::set_error_list.

See docs/dev/architecture/compilation-mode.md §3.

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.
ErrorList
The error list: an ordered set of entries plus a cursor (index) into them. :cnext / ]q walk the index (wrapping vim-style); :cc N jumps to the Nth (1-based). Empty by default.

Enums§

ErrorSeverity
Severity of one error entry.
ErrorSource
Which producer a run of error entries came from.