-
Notifications
You must be signed in to change notification settings - Fork 657
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
--report=json
emits a non-JSON nicely formatted error
#2264
Comments
Thanks for reporting this! To set expectations:
Finally, please be patient with the core team. They are trying their best with limited resources. |
Are your sure both of those messages (the readable part and the JSON) are written to the same output stream? |
Yes, both are written to stderr:
In my experience, this happens whenever
|
Ah, I see 😢 |
So what is a proposed solution? Print the error in the json format to the stdout? Or somehow remove those additional messages? The first one is solveable in changing literally 3 symbols in the source code |
I imagine if An alternative is to send some of it to stdout and some of it to stderr, so that one of the streams still is purely JSON. |
Quick Summary:
elm make --report=json
sometimes emits errors in a non-JSON format, breaking tools like@parcel/transformer-elm
: (EDIT: they pick a second line and JSON.parse it)The text was updated successfully, but these errors were encountered: