Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15331939
D7752.id17534.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7752.id17534.diff
View Options
Index: src/lint/linter/ArcanistPhutilLibraryLinter.php
===================================================================
--- src/lint/linter/ArcanistPhutilLibraryLinter.php
+++ src/lint/linter/ArcanistPhutilLibraryLinter.php
@@ -152,15 +152,33 @@
continue;
}
+ $libphutil_root = dirname(phutil_get_library_root('phutil'));
+
$this->raiseLintInLibrary(
$library,
$file,
$offset,
self::LINT_UNKNOWN_SYMBOL,
- "Use of unknown {$type} '{$symbol}'. This symbol is not defined ".
- "in any loaded phutil library. It might be misspelled, or it ".
- "may have been added recently. Make sure libphutil and other ".
- "libraries are up to date.");
+ "Use of unknown {$type} '{$symbol}'. Common causes are:\n\n".
+ " - Your libphutil/ is out of date.\n".
+ " This is the most common cause.\n".
+ " Update this copy of libphutil: {$libphutil_root}\n".
+ "\n".
+ " - Some other library is out of date.\n".
+ " Update the library this symbol appears in.\n".
+ "\n".
+ " - This symbol is misspelled.\n".
+ " Spell the symbol name correctly.\n".
+ " Symbol name spelling is case-sensitive.\n".
+ "\n".
+ " - This symbol was added recently.\n".
+ " Run `arc liberate` on the library it was added to.\n".
+ "\n".
+ " - This symbol is external. Use `@phutil-external-symbol`.\n".
+ " Use `grep` to find usage examples of this directive.\n".
+ "\n".
+ "*** ALTHOUGH USUALLY EASY TO FIX, THIS IS A SERIOUS ERROR.\n".
+ "*** THIS ERROR IS YOUR FAULT. YOU MUST RESOLVE IT.");
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 8, 3:32 PM (1 d, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7382988
Default Alt Text
D7752.id17534.diff (1 KB)
Attached To
Mode
D7752: Make sure no one ever misunderstand the "unkonwn symbol" lint message ever again
Attached
Detach File
Event Timeline
Log In to Comment