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

grunt watch doesn't work anymore #150

Open
svycka opened this issue Sep 17, 2013 · 6 comments
Open

grunt watch doesn't work anymore #150

svycka opened this issue Sep 17, 2013 · 6 comments

Comments

@svycka
Copy link

svycka commented Sep 17, 2013

I have set autoWatch: true and thats all I changed. So I do grunt watch everything seems like working but when I change any file I get some errors.

Thats my console log:

Running "karma:unit:run" (karma) task
[2013-09-17 15:02:20.284] [DEBUG] config - Loading config C:\wamp\www\ng-boilerp
late\build\karma-unit.js
[2013-09-17 15:02:20.286] [WARN] config - config.configure() is deprecated, plea
se use config.set() instead.
WARN [watcher]: Pattern "C:/wamp/www/ng-boilerplate/src/**/*.coffee" does not ma
tch any file.
Fatal error: socket hang up
... Reload src\app\app.js ...
Completed in 120.938s at Tue Sep 17 2013 15:04:20 GMT+0300 (FLE Daylight Time) -
 Waiting...
OK
>> File "src\app\app.js" changed.

Running "jshint:src" (jshint) task
>> 4 files lint free.

Running "karma:unit:run" (karma) task
[2013-09-17 15:04:53.194] [DEBUG] config - Loading config C:\wamp\www\ng-boilerp
late\build\karma-unit.js
[2013-09-17 15:04:53.196] [WARN] config - config.configure() is deprecated, plea
se use config.set() instead.
Waiting for previous execution...
INFO [karma]: Delaying execution, these browsers are not ready: Firefox 23.0.0 (
Windows 8)
WARN [watcher]: Pattern "C:/wamp/www/ng-boilerplate/src/**/*.coffee" does not ma
tch any file.

also maybe related I have firefox 23.0.1 but karma says its 23.0.0 so I tried change firefox with PhantomJS same problem.

also maybe related karma-runner/karma#411

@brocksamson
Copy link

I'm seeing the same behavior within my application based on ng-boilerplate build process. I've made a few changes to the process and build but nothing that should affect this. I'm seeing this on both ubuntu 13.04 and windows 7 64 bit machines.

A few google searches led me to this: mklabs/tiny-lr#8 which sounds like the same issue on the grunt-contrib-live-reload plugin.

I think the root cause is changes to the behavior of nodejs in the .8.2 release, specifically the new behavior of raising exceptions when attempting to write to a destroyed socket. Previously writes to a destroyed socket were causing memory leaks in node.

My guess is that grunt-contrib-watch v 0.4.4 (specified in the package.json file) has this issue. I'll try upgrading to 0.5.3 on Monday to see if that resolves it.

@joshdmiller
Copy link
Member

I'll see if I get the same behavior locally, but please let us know if
upgrading grunt-contrib-watch solves your issue.

Grunt watch and karma and their dirty little friends are ruining my day...

@roychoo
Copy link

roychoo commented Sep 21, 2013

had tried upgrading to v 0.5.3, still doesn't work :(

@roychoo
Copy link

roychoo commented Sep 21, 2013

Hmmmm, it seems that specifying port instead of runnerPort solve the issue for me.

from #37
is there already a PR for this?

@roychoo
Copy link

roychoo commented Sep 21, 2013

just submitted PR #153 for this.

@brocksamson
Copy link

This change is working for me as well. My computer running ubuntu 13.04 64 bit began working after changing the port. I'll check the windows one on Monday.

Nice work :)

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

4 participants