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
A diagnostic loses its source label when switching from human output to JSON. Reproduced on canonical master 0c67f4c.
Reproduction:
fun main() { "\q"; }
wavec check input.wave includes the label unsupported escape sequence. wavec --error-format=json check input.wave omits it entirely. WaveError::to_json in front/error/src/error.rs serializes context, expected, found, help, and note but never serializes self.label.
Add a nullable label field using the existing JSON escaping helper. Cover labels containing quotes, backslashes and control characters, the absent-label case, and a real lexer diagnostic through the driver. Existing fields and source coordinates should remain unchanged. No new dependency is needed.
This is an implementation defect; #404 separately tracks diagnostic format documentation.
Activity