The helper "progress" is not defined #132

Open
nnnikolay opened this Issue May 1, 2016 · 1 comment

Projects

None yet

2 participants

@nnnikolay

Hi,

I've used phpcpd within phing long long time

<target name="phpcpd-dev"
                description="Copy/Paste Detector (CPD) for PHP code"
                depends="init">
            <exec passthru="true"
                  command="${php.bin.path}/phpcpd --progress --ansi --fuzzy ${project.sitedir}" />
        </target>

but recently I did an upgrade my project's dependencies and it seems phpcpd 2.0.4 was installed.
now it does not work :(

  [Symfony\Component\Console\Exception\InvalidArgumentException]  
  The helper "progress" is not defined.                           

Sure it works If I'll get rid of --progress

I've checked phpcpd's composer.json and symfony/console is there..
Here is my project composer.json

},
    "require-dev": {
        ...
        "sebastian/phpcpd": "*",
        ...
    },

I'm not sure is it a bug or not :)

@zdenekdrahos zdenekdrahos referenced this issue in EdgedesignCZ/phpqa May 7, 2016
Closed

Error with PhpCpd progress helper #19

@tomzx
tomzx commented May 13, 2016 edited

It appears this is already "fixed" in the master version (fixed by de90566).

@ 2.0.4

$progressHelper = $this->getHelperSet()->get('progress');

@ master

$progressBar = new ProgressBar($output, count($files));
@mario-naether mario-naether referenced this issue in EdgedesignCZ/phpqa Nov 30, 2016
Closed

phpcpd needs dev-master for --progress #36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment