From: epriestley Date: Fri, 6 Jul 2012 17:05:49 +0000 (-0700) Subject: Print out the locations of libphutil and arcanist when arc is run with --trace X-Git-Tag: conduit-6~209 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=61da381c30917b11271490dc21c798d325e92891;p=arcanist.git Print out the locations of libphutil and arcanist when arc is run with --trace Summary: We currently print //additional// libraries, but not the core libraries, which makes diagnosing include problems more difficult than necessary. Test Plan: ran `arc derp --trace`, got libphutil/arcanist locations Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D2929 --- diff --git a/scripts/arcanist.php b/scripts/arcanist.php index 88344341..dfc9e01d 100755 --- a/scripts/arcanist.php +++ b/scripts/arcanist.php @@ -62,9 +62,17 @@ $argv = $args->getUnconsumedArgumentVector(); $args = array_values($argv); $working_directory = getcwd(); +$console = PhutilConsole::getConsole(); try { + if ($config_trace_mode) { + $phutil_location = phutil_get_library_root('phutil'); + $arcanist_location = phutil_get_library_root('arcanist'); + $console->writeErr("libphutil loaded from '{$phutil_location}'.\n"); + $console->writeErr("arcanist loaded from '{$arcanist_location}'.\n"); + } + if (!$args) { throw new ArcanistUsageException("No command provided. Try 'arc help'."); }