Skip to content
New issue

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

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

Already on GitHub? # to your account

Infinite loop when watch target does not exist #406

Open
ragulka opened this issue Jan 20, 2015 · 3 comments
Open

Infinite loop when watch target does not exist #406

ragulka opened this issue Jan 20, 2015 · 3 comments

Comments

@ragulka
Copy link

ragulka commented Jan 20, 2015

It seems that if I provide a specific target and that target does not exist in grunt config, then watch goes into an infinite loop:

Running "watch:joke" (watch) task
Waiting...Verifying property watch.joke.files exists in config...ERROR
>> Unable to process task.
Warning: Required config property "watch.joke.files" missing.

Running "watch:joke" (watch) task
Waiting...Verifying property watch.joke.files exists in config...ERROR
>> Unable to process task.
Warning: Required config property "watch.joke.files" missing.

Running "watch:joke" (watch) task
Waiting...Verifying property watch.joke.files exists in config...ERROR
>> Unable to process task.
Warning: Required config property "watch.joke.files" missing.

This does not seem to stop unless I kill the terminal tab. Sometimes Ctrl+C helps, sometimes not. In any case, I believe watch should simply exit once it encounters an error instead of keeping trying.

@restlessdesign
Copy link

Yeah this one is pretty annoying when switching back-and-forth between branches 😕

@tandrewnichols
Copy link

Yeah, for me (and another friend too), this not only loops and freezes the pain, it causes all of my applications to stop responding so I have to force restart the computer completely. I can't believe this hasn't gotten any attention at all in two years. This shouldn't be a difficult fix right? Just check if (!grunt.config.get('watch.' + this.target)) // return or log or call fail.fatal right? (Off the top of my head . . . can't recall if that's exactly what you'd need.)

@ecso
Copy link

ecso commented Jun 30, 2017

2015 issue still annoying people in 2017 :-\ .
i'm having the same issue...
gruntwactherror

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

No branches or pull requests

4 participants