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

Watch only tracks last file if given array of files #46

Closed
Rarst opened this issue Jun 28, 2014 · 1 comment
Closed

Watch only tracks last file if given array of files #46

Rarst opened this issue Jun 28, 2014 · 1 comment

Comments

@Rarst
Copy link
Contributor

Rarst commented Jun 28, 2014

This is my watch task:

/**
 * Watches for changes.
 */
public function watch() {

    $this->taskWatch()->monitor( array( 'css/variables.less', 'css/laps.less' ), function () {
        $this->less();
    } )->run();
}

It names both files correctly when started:

c:\server\www\dev\wp-content\plugins\laps>robo watch
 [Robo\Task\WatchTask] watching css/variables.less for changes...
 [Robo\Task\WatchTask] watching css/laps.less for changes...

But only last file is tracked, changes to first file do not trigger task. If I reverse order of files in array it flips and again — only last file in array is tracked, other one is ignored.

Win7x64, PHP 5.5

PS ok, now I am not sure if this is even supposed to work?.. :) For some reason I was under impression it is.

@DavertMik
Copy link
Member

sorry, probably I didn't check this case as I was completely relying on lurker library. Looks like i need to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants