question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v4 watch now runs one time and no more in some cases

See original GitHub issue

Commit: https://github.com/gulpjs/gulp/commit/6c03475e1a39d18c139b4d56baa1c14a587f9f4a

I apologize in advance for this terrible issue report, I’ve been chasing this for hours and I’m afraid I have little to share, but I hope in the end someone can point me in the general direction of my error.

I had no problems until I pulled the latest, I generally stay up to date. Both gulp and gulp-cli are the lates.

I note from the ^^^commit a few others have seen the same change break their code. It is likely to be improper use, but I’m not spotting it in my code.

I created a test case and have been unable to reproduce: https://github.com/alienfast/gulp-pipeline/tree/master/test/watch-repeated

This test case works fine, both in the simple form and with the gulp-pipeline recipe form.

The case where it doesn’t work is in when using an Aggregate, which does some task generation and surely this is the most likely place for my error.

What I can say, definitively, is that the file watcher is triggering and I receive those events, but inside glob-watcher #runComplete is never run again (after the first run).

Since #runComplete is never run, what error would that indicate in my use? Missing passing through the done?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
phatedcommented, May 2, 2016

You should just be able to receive and call the done callback. All the examples haven’t been updated yet.

0reactions
rosskevincommented, May 2, 2016

Agreed. I tried but failed miserably. I just bumped into another case where I want to do something similar.

How could you run 3 watches from a single registered task and have it return properly? The readme has a sample but I see it doesn’t return either, does it?

function watch() {
  gulp.watch(paths.scripts.src, scripts);
  gulp.watch(paths.styles.src, styles);
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Galaxy Watch 4 gets a new update following bricking issues
Samsung is now rolling out a fresh Galaxy Watch 4 update, seemingly to fix the problem, but some users are still running into...
Read more >
Most common Samsung Galaxy Watch 4 problems and ...
On your phone, open the Galaxy Wearable app > Watch settings > Watch software update. If it fails, reboot your phone and smartwatch...
Read more >
Watch Running Fast or Slow - Here are the Most Common ...
A few of the reasons why a watch may be fast:​​ The movement requires professional service. The balance spring has been magnetized (this...
Read more >
How to Set a Watch, and Two Things You Should Never ...
Follow these two simple but critical rules for longterm watch health and happiness, and set your mechanical watch with confidence.
Read more >
Watch Accuracy & Service Tips
Position: Due to gravity a watch will gain or loose more time if laid to rest in a single ... Worst Case Scenario,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found