Page MenuHomePhabricator

lint
Closed, ResolvedPublic

Description

when we use phabricator lint,There are always tips like this:"Failed to load phutil library at location '/d/install/arcanist/libphutil/src'",we are puzzled by this so much, we use svn on windows xp. Could you please help me? There are about 1000 people in our company using phabricator, we all want to resolve this problem . I am not very good at english. Thank you so much!

Event Timeline

xuyulong raised the priority of this task from to Needs Triage.
xuyulong updated the task description. (Show Details)
xuyulong added a subscriber: xuyulong.

this my .arcconfig content:
{
"project_id" : "test0719",
"conduit_uri" : "http://172.16.0.207/",
"lint.engine" : "CppLintEngine",
"phutil_libraries" : {
"library_a" : "/d/install/arcanist/libphutil/src",
"library_b" : "libcustom"
},
"load" : ["libcustom/"]
}

chad raised the priority of this task from High to Needs Triage.Dec 13 2013, 6:25 AM

Remove the phutil_libraries key from that config?

I have removed phutil_libraries key,but it is also tips::"Failed to load phutil library at location '/d/install/arcanist/libphutil/src'",when I run "arc lint" commad.
I am a novice, I just want to add the most simple Linter function for my project , can you help me achieve this function?Thank you very much!
Now I have implemented the "arc diff" to review the function of the code.

Welcome to Git (version 1.8.3-preview20130601)
error:

Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.

johnson@2013-20131118DI ~
$ cd /e/test4jenkins/

johnson@2013-20131118DI /e/test4jenkins
$ arc lint --trace
libphutil loaded from 'D:\install\arcanist\libphutil\src'.
arcanist loaded from 'D:\install\arcanist\arcanist\src'.
Working Copy: Reading .arcconfig from "E:\test4jenkins/.arcconfig".
Working Copy: Path "e:\test4jenkins" is part of svn working copy "E:\test4jenk
ins".
Working Copy: Project root is at "E:\test4jenkins".
Loading phutil library from 'E:\test4jenkins\libcustom'...

[0] <exec> $ svn --xml status

<<< [0] <exec> 265,625 us

[2013-12-14 01:43:27] EXCEPTION: (PhutilMissingSymbolException) Failed to load c
lass or interface 'ExampleLintEngine.php': the class or interface 'ExampleLintEn
gine.php' is not defined in the library map for any loaded phutil library. If th
is symbol was recently added or moved, your library map may be out of date. You
can rebuild the map by running 'arc liberate'. For more information, see: http:/
/www.phabricator.com/docs/phabricator/article/libphutil_Libraries_User_Guide.htm
l at [D:\install\arcanist\libphutil\src\__phutil_library_init__.php:378]

#0 __phutil_autoload(ExampleLintEngine.php)
#1 spl_autoload_call(ExampleLintEngine.php)
#2 class_exists(ExampleLintEngine.php) called at [D:\install\arcanist\arcanist

\src\workflow\ArcanistLintWorkflow.php:255]

#3 ArcanistLintWorkflow::run() called at [D:\install\arcanist\arcanist\scripts

\arcanist.php:321]

Something in your config specifies ExampleLintEngine.php as a lint engine class. The class should just be ExampleLintEngine (i.e., no .php).

btrahan claimed this task.

I think this is resolved with @epriestley's last comment, but do let us know if you're still having problems. =D