Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPLoc Task: Wrong class name in CSV Formatter #725

Closed
arruor opened this issue Jun 15, 2017 · 0 comments
Closed

PHPLoc Task: Wrong class name in CSV Formatter #725

arruor opened this issue Jun 15, 2017 · 0 comments
Milestone

Comments

@arruor
Copy link

arruor commented Jun 15, 2017

composer.json:

"require-dev": {
        "phploc/phploc": "^4.0",
        "phing/phing": "^2.16"
    },

task definition:

<target name="phploc" unless="phploc.done"
            description="Measure project size using PHPLOC and print human readable output">
        <phploc countTests="true">
            <fileset refid="phpFiles"/>
            <formatter type="cli" outfile="build/html/phploc.txt"/>
            <formatter type="cli" outfile="build/logs/phploc.txt"/>
            <formatter type="xml" outfile="build/logs/phploc.xml"/>
            <formatter type="csv" outfile="build/logs/phploc.csv"/>
        </phploc>
        <property name="phploc.done" value="true"/>
    </target>

Stack trace

[phploc] Writing report to: ./build/logs/phploc.xml
   [phploc] Writing report to: ./build/logs/phploc.csv
PHP Fatal error:  Uncaught Error: Class '\SebastianBergmann\PHPLOC\Log\CSV\Single' not found in /path/to/project/vendor/phing/phing/classes/phing/tasks/ext/phploc/PHPLocCSVFormatter.php:34
Stack trace:
#0 /path/to/project/vendor/phing/phing/classes/phing/tasks/ext/phploc/PHPLocTask.php(310): PHPLocCSVFormatter->printResult(Array, true)
#1 /path/to/project/vendor/phing/phing/classes/phing/tasks/ext/phploc/PHPLocTask.php(219): PHPLocTask->runPhpLocCheck()
#2 /path/to/project/vendor/phing/phing/classes/phing/UnknownElement.php(100): PHPLocTask->main()
#3 /path/to/project/vendor/phing/phing/classes/phing/Task.php(283): UnknownElement->main()
#4 /path/to/project/vendor/phing/phing/classes/phing/Target.php(336): Task->perform()
#5 /path/to/project/vendor/phing/phing/classes/phing/Target.php(366): Target->main()
#6 /path/to/project/vendor/phing/phing/classes/phing/Project.php( in /path/to/project/vendor/phing/phing/classes/phing/tasks/ext/phploc/PHPLocCSVFormatter.php on line 34

Fatal error: Uncaught Error: Class '\SebastianBergmann\PHPLOC\Log\CSV\Single' not found in /path/to/project/vendor/phing/phing/classes/phing/tasks/ext/phploc/PHPLocCSVFormatter.php on line 34

Error: Class '\SebastianBergmann\PHPLOC\Log\CSV\Single' not found in /path/to/project/vendor/phing/phing/classes/phing/tasks/ext/phploc/PHPLocCSVFormatter.php on line 34

Call Stack:
    0.0001     361688   1. {main}() /path/to/project/vendor/phing/phing/bin/phing:0
    0.0002     376432   2. require_once() /path/to/project/vendor/phing/phing/bin/phing:14
    0.0296    5202592   3. Phing::fire() /path/to/project/vendor/phing/phing/bin/phing.php:58
    0.0296    5202592   4. Phing::start() /path/to/project/vendor/phing/phing/classes/phing/Phing.php:347
    0.0299    5305728   5. Phing->runBuild() /path/to/project/vendor/phing/phing/classes/phing/Phing.php:200
    0.0790   12227416   6. Project->executeTargets() /path/to/project/vendor/phing/phing/classes/phing/Phing.php:723
    0.0790   12227416   7. Project->executeTarget() /path/to/project/vendor/phing/phing/classes/phing/Project.php:868
    0.0791   12228776   8. Target->performTasks() /path/to/project/vendor/phing/phing/classes/phing/Project.php:898
    0.0791   12228776   9. Target->main() /path/to/project/vendor/phing/phing/classes/phing/Target.php:366
    0.0791   12228776  10. UnknownElement->perform() /path/to/project/vendor/phing/phing/classes/phing/Target.php:336
    0.0797   12242624  11. UnknownElement->main() /path/to/project/vendor/phing/phing/classes/phing/Task.php:283
    0.0797   12242624  12. PHPLocTask->main() /path/to/project/vendor/phing/phing/classes/phing/UnknownElement.php:100
    0.9458   16203656  13. PHPLocTask->runPhpLocCheck() /path/to/project/vendor/phing/phing/classes/phing/tasks/ext/phploc/PHPLocTask.php:219
    1.0706   17938672  14. PHPLocCSVFormatter->printResult() /path/to/project/vendor/phing/phing/classes/phing/tasks/ext/phploc/PHPLocTask.php:310
@mrook mrook modified the milestone: 3.0 Jul 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants