summaryrefslogtreecommitdiff
path: root/src/cli/diagnostics.zig
AgeCommit message (Collapse)Author
2025-10-03Zig 0.15: zig build test Mitchell Hashimoto
2025-03-12Lots of 0.14 changesMitchell Hashimoto
2024-11-27config: need to dupe filepath for diagnosticsMitchell Hashimoto
Fixes #2800 The source string with the filepath is not guaranteed to exist beyond the lifetime of the parse operation. We must copy it.
2024-11-26config: clone should copy diagnosticsMitchell Hashimoto
Fixes #2800
2024-10-18cli: positional arguments are invalid when parsing configurationMitchell Hashimoto
2024-10-18apprt/gtk: support new config diagnostics APIMitchell Hashimoto
2024-10-18c: remove the config load string APIMitchell Hashimoto
It was unused and doesn't match our diagnostic API.
2024-10-18config: richer diagnostics for errorsMitchell Hashimoto
Rather than storing a list of errors we now store a list of "diagnostics." Each diagnostic has a richer set of structured information, including a message, a key, the location where it occurred. This lets us show more detailed messages, more human friendly messages, and also let's us filter by key or location. We don't take advantage of all of this capability in this initial commit, but we do use every field for something.