Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15450767
D9865.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
727 B
Referenced Files
None
Subscribers
None
D9865.diff
View Options
diff --git a/src/lint/linter/ArcanistPhutilLibraryLinter.php b/src/lint/linter/ArcanistPhutilLibraryLinter.php
--- a/src/lint/linter/ArcanistPhutilLibraryLinter.php
+++ b/src/lint/linter/ArcanistPhutilLibraryLinter.php
@@ -64,7 +64,14 @@
$symbols = array();
foreach ($libs as $lib) {
$root = phutil_get_library_root($lib);
- $symbols[$lib] = id(new PhutilLibraryMapBuilder($root))->buildMap();
+
+ try {
+ $symbols[$lib] = id(new PhutilLibraryMapBuilder($root))->buildMap();
+ } catch (XHPASTSyntaxErrorException $ex) {
+ // If the library contains a syntax error then there isn't much that we
+ // can do.
+ continue;
+ }
}
$all_symbols = array();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 29, 6:09 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7376418
Default Alt Text
D9865.diff (727 B)
Attached To
Mode
D9865: Allow the `ArcanistPhutilLibraryLinter` to recover from PHP syntax errors
Attached
Detach File
Event Timeline
Log In to Comment