Open MaikuMori opened 9 years ago
Currently there is no standard way to pass errors between toolchains, srclib and the caller.
Since all communication is already done using JSON we should probably stick to that.
In general, this sounds like a good thing to do!
This seems like it'd be useful for a combination of source code issues (e.g., lint-style output) and toolchain errors (e.g., errors in the way you configured your toolchain). Which is this intended for?
@sqs, I was thinking it could be used for both of those cases and possibly more cases. Basically standardize non-data communication. That's why I included type
into issues
list. Later on it's easy to filter down just the information your specific code needs. Plugins can show different errors in different way (underline in source or show popup or something). On console you can hide some issues based on verbosity setting and so on.
Currently there is no standard way to pass errors between toolchains, srclib and the caller.
Since all communication is already done using JSON we should probably stick to that.
I propose something like:
Actual fields are obviously open to discussion. Need to gather some real output to come up with better fields/types.
Output is merged from multiple tools until it is presented to the caller. Communication is done over stderr, leaving stdout open for data communications as before. If the caller is a person we can also render the JSON to text.
Severity:
Ideas, comments?
Related issues: