From 61da381c30917b11271490dc21c798d325e92891 Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 6 Jul 2012 10:05:49 -0700 Subject: [PATCH] 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 --- scripts/arcanist.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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'."); } -- 2.43.0