]> khamidou — GitHub mirrors - arcanist.git/commit
Make sure no one ever misunderstand the "unkonwn symbol" lint message ever again
authorepriestley <git@epriestley.com>
Tue, 10 Dec 2013 16:33:35 +0000 (08:33 -0800)
committerepriestley <git@epriestley.com>
Tue, 10 Dec 2013 16:33:35 +0000 (08:33 -0800)
commite0b4eef9de171472e3a9be7e4ce699111107b368
treebfbec125c9170ba50af41d9be566f59cd0b70b16
parent4fdb87761bceddf0d9f90686c5432776592048f8
Make sure no one ever misunderstand the "unkonwn symbol" lint message ever again

Summary: A lot of new contributors don't resolve this. Make it easier to resolve, more comprehensive, and more explicit about not being ignorable.

Test Plan:
  >>> orbital ~/devtools/arcanist $ arc lint
  >>> Lint for src/lint/linter/ArcanistPhutilLibraryLinter.php:

     Error  (PHL1) Unknown Symbol
      Use of unknown class 'BlerpBarp'. Common causes are:

        - Your libphutil/ is out of date.
          This is the most common cause.
          Update this copy of libphutil: /INSECURE/devtools/libphutil

        - Some other library is out of date.
          Update the library this symbol appears in.

        - This symbol is misspelled.
          Spell the symbol name correctly.
          Symbol name spelling is case-sensitive.

        - This symbol was added recently.
          Run `arc liberate` on the library it was added to.

        - This symbol is external. Use `@phutil-external-symbol`.
          Use `grep` to find usage examples of this directive.

      *** ALTHOUGH USUALLY EASY TO FIX, THIS IS A SERIOUS ERROR.
      *** THIS ERROR IS YOUR FAULT. YOU MUST RESOLVE IT.

               181               "*** THIS ERROR IS YOUR FAULT. YOU MUST RESOLVE IT.");
               182
               183             if (false) {
      >>>      184               new BlerpBarp();
               185             }
               186           }
               187         }
  >>> orbital ~/devtools/arcanist $

Reviewers: btrahan, chad

Reviewed By: chad

CC: aran
Differential Revision: https://secure.phabricator.com/D7752
src/lint/linter/ArcanistPhutilLibraryLinter.php