Page MenuHomePhabricator

Send arcanist error output to STDERR
ClosedPublic

Authored by joshuaspence on May 27 2015, 11:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 2, 9:04 PM
Unknown Object (File)
Mon, Apr 1, 9:58 PM
Unknown Object (File)
Mar 5 2024, 5:04 AM
Unknown Object (File)
Feb 16 2024, 11:22 AM
Unknown Object (File)
Feb 11 2024, 5:42 PM
Unknown Object (File)
Dec 26 2023, 6:49 PM
Unknown Object (File)
Dec 17 2023, 5:05 AM
Unknown Object (File)
Dec 14 2023, 2:03 AM
Subscribers
Tokens
"Love" token, awarded by avivey.

Details

Summary

Currently, arcanist error output is sent to STDOUT instead of STDOUT. This is annoying because I am running arc lint --everything --never-apply-patches --output=xml > checkstyle.xml and the checkstyle.xml file is not valid XML.

Test Plan

Forced a linter to throw an exception and ran arc lint >/dev/null... saw error output.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Send arcanist error output to STDERR.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.

I think these should probably be fwrite() instead of fprintf() -- particularly, fprintf() will probably fail/error/something if the string has unescaped percent symbols?

That is, these are fine:

fwrite(STDERR, "Give 110%!");
fprintf(STDERR, "%s", "Give 100%!");

...but this is probably an error/warning?

fprintf(STDERR, "Give 110%!");
This revision now requires changes to proceed.May 27 2015, 11:16 PM
joshuaspence edited edge metadata.

Change to fwrite

epriestley edited edge metadata.
This revision is now accepted and ready to land.May 27 2015, 11:25 PM
This revision was automatically updated to reflect the committed changes.