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
Keep delimiter and argument-count details in print and input errors #976
The I/O parsers replace known delimiter/string/arity failures with expected valid print/println/input. Input arity failures are generated after the call terminator, so the diagnostic can blame the following statement or closing brace.
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.
fun main() { input("{} {}"); }
"$WAVEC" --error-format=json check main.wave
Observed: expected valid input in input at the closing } (column 30), without stating that two arguments are missing. fun main() { print 1; } reports only expected valid print rather than a missing (. Also executed print(123): #942's token span is preserved, but the expected string-literal detail is still absent.
Scope
Use specific structured syntax and argument-count diagnostics for print, println and input. Preserve the first-argument span fix in #942, placeholder semantics, expression evaluation order and input policy. Do not broaden the formatting syntax.
Activity
Improve source diagnostics and reject recursive inline storage (wavef…