You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unify structured source-read failures across checking and AST output #985
Checking hides the underlying filesystem/encoding error, while AST-only output bypasses JSON diagnostics entirely for the same unreadable input. Consumers therefore cannot reliably classify or parse source-read failures.
Reproduction
Audited canonical master 42b65e426ad45bf896623b5bce814312b694a0c7 on Linux amd64 with Rust 1.89 and LLVM 21.1.8. Reproductions use the checkout-built target/debug/wavec and matching checkout std. The local head d2f58962 has an identical file tree to that canonical merge. Commands below assume WAVEC names that binary.
Executed: check emits JSON saying only failed to read file, with help about existence/permissions even though the file exists but is not UTF-8. AST output emits a plain cannot read ... stream did not contain valid UTF-8 line. A nonexistent .wave file and a directory named directory.wave receive the same generic check explanation.
Scope
Route source-reading failures through a consistent structured diagnostic with input path and underlying I/O or encoding cause, including the AST input-protection prepass and other current source read entry points. Keep current exit categories and output/input preservation rules.
Activity
Improve source diagnostics and reject recursive inline storage (wavef…