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

The helper "progress" is not defined #132

Closed
nnnikolay opened this Issue May 1, 2016 · 2 comments

Comments

Projects
None yet
3 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 :)

@tomzx

This comment has been minimized.

Show comment
Hide comment
@tomzx

tomzx May 13, 2016

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));

tomzx commented May 13, 2016

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));
@sebastianbergmann

This comment has been minimized.

Show comment
Hide comment
@sebastianbergmann

sebastianbergmann Jan 24, 2017

Owner

I cannot reproduce this in master.

I cannot reproduce this in master.

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