If there is a PHP syntax error in a file, ArcanistXHPASTLinter correctly lints the file (i.e. identifies the syntax error), but ArcanistPhutilLibraryLinter just fails miserably.
> arc lint >>> Lint for src/applications/maniphest/mail/ManiphestReplyHandler.php: Error (XHP1) PHP Syntax Error! This file contains a syntax error: XHPAST Parse Error: syntax error, unexpected '}' on line 182 179 )); 180 $event->setUser($user); 181 PhutilEventEngine::dispatchEvent($event) >>> 182 } 183 184 } Exception Some linters failed: - ArcanistPhutilLibraryLinter: CommandException: Command failed with error #1! COMMAND php '/home/joshua/dotfiles/modules/phabricator/libphutil/scripts/phutil_rebuild_map.php' --show --quiet --ugly -- '/home/joshua/workspace/github.com/phacility/phabricator/src' STDOUT SYNTAX ERROR! File: src/applications/maniphest/mail/ManiphestReplyHandler.php Line: 182 XHPAST Parse Error: syntax error, unexpected '}' on line 182 STDERR (empty) (Run with --trace for a full exception trace.)