Closed pauldijou closed 8 years ago
Do you think this is covered by #98? If not, how would you summarize your request in a short sentence?
Don't think so. In short: overview
and details
should be standalone rather than being forced to concatenate them to have the full message (otherwise, only one field would be enough) and not contain any styling, only the raw message (no \n
and no
).
Added to #98 with a summary of what I think the solution might be.
When reading the JSON from
elm-make
, for each warning / error, you haveoverview
anddetails
fields containing text info about the problem. Regarding the naming of the fields, I would expect the first one to be a "short" summary of the issue and the other one diving deeper on what exactly is the problem and how to eventually solve it. Sometime it's exactly that:If you only print
overview
, it's enough to understand the problem. But some other times, you are forced to use both of them or the message will not make any sense.As we can see, displaying only the
overview
will result in a truncated message missing the end. It's kind of a bummer if you are building a tool based on this report and only display theoverview
by default.Also, I might be wrong, but it feels strange to have
\n
inside the JSON. It forces how to render the result while I consider JSON to be only about raw data. I would expect to have such newlines added when actually printing the message on the shell (or somewhere else).