facebookarchive / pfff

Tools for code analysis, visualizations, or style-preserving source transformation.
http://github.com/facebook/pfff/wiki/Main
Other
2.44k stars 204 forks source link

scheck complains about "No such file or directory" for php files being tested #131

Closed truebit closed 9 years ago

truebit commented 9 years ago

I want to use scheck for my project. So I firstly generated graph file with command below: ./codegraph -lang php -build ~/Documents/work/repo/server_code -o ~/Documents/work/repo The graph_code.marshall generated in ~/Documents/work/repo/graph_code.marshall

Then I tried scheck on my project code: /scheck -with_graph_code ~/Documents/work/repo/graph_code.marshall -php_stdlib ./data/php_stdlib ~/Documents/work/repo/server_code

It failed with Fatal error: exception Sys_error("DataStruct.class.php: No such file or directory") But DataStruct.class.php is actually in root of project dir ~/Documents/work/repo/server_code

truebit commented 9 years ago

It's because codegraph finished with lots of errors, the incorrect generated graph_code.marshall should be denied by scheck. I do not know whether it would work if all errors in pfff.log fixed.