Improve handling of dart format stderr output #148
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously the
stdout
andstderr
from the format execution weremerged and there was special handling for 1 specific warning message
followed by a standard 2 lines of boilerplate.
Now
stdout
anstderr
are read separately.stderr
is ignored unlessthere is no output on
stdout
. This filters any warnings that didn'tprevent formatting, including the old hardcoded warning as well as a new
one around resolving
analysis_options.yaml
and any future warningsthat may come up.
When there is no
stdout
content treat thestderr
as using thediagnostic format. Ignore any lines that don't match the error format.
I'm not currently aware of any output here that we wouldn't want to
hide, but if error output becomes important for the user to see we may
need to revisit this design.
systemlist
tojob_start
which allows separating theoutput streams.
callback for when the output has been read.