-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slice.Tools JSON error #4043
Comments
This is due to the compiler emitting non JSON diagnostics:
|
It used to be (I think) that JSON output was emitted to stdout and the filed summary was sent to stderr. IIRC rust does something similar. I thought that we used to only read from stdout, or at least not emit errors if JSON unmarshaling failed. |
No quite correct. We used to only emit JSON to STDERR for error messages. But now with I guess the simple is to ignore this non JSON messages from STDOUT as we did before, and just collect the STDOUT JSON messages that has the expected telemetry data. |
It's the other way around with |
Another, maybe easier fix is to change And this would be a one-line change in icerpc-csharp/tools/slicec-cs/src/main.rs Lines 74 to 76 in b1be545
eprintln instead.
|
Seems wrong to emit non error data to stderr |
Yeah, I'd rather just ignore non-JSON output in the tools. |
Fair enough, I agree it'd be weirder, was just pitching ideas! |
I am getting this error whenever I get a redefinition error in a Slice file:
The text was updated successfully, but these errors were encountered: