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)
Wed, Nov 20, 12:54 PM
Unknown Object (File)
Fri, Nov 15, 5:45 PM
Unknown Object (File)
Tue, Nov 12, 7:02 AM
Unknown Object (File)
Tue, Nov 12, 4:44 AM
Unknown Object (File)
Fri, Nov 8, 1:48 PM
Unknown Object (File)
Mon, Oct 28, 10:40 PM
Unknown Object (File)
Fri, Oct 25, 11:22 AM
Unknown Object (File)
Oct 20 2024, 2:02 PM
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
Branch
master
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6325
Build 6347: [Placeholder Plan] Wait for 30 Seconds

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.