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.

grunt watch hangs on karma:unit:run task

See original GitHub issue

Hi,

I have this issue every time I update a js file, for example a Ctrl. But runnig “grunt delta” and “karma start karma/karma-unit.js”, in two different console, it’s works well.

This the output after an hangs:

Running "clean:0" (clean) task
Cleaning "dist"...OK

Running "html2js:app" (html2js) task

Running "html2js:component" (html2js) task

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

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

Running "jshint:gruntfile" (jshint) task
>> 1 file lint free.

Running "jshint:globals" (jshint) task
>> 0 files lint free.

Running "karma:continuous" (karma) task
INFO [karma]: Karma server started at http://localhost:9018/
INFO [launcher]: Starting browser Firefox
INFO [Firefox 20.0 (Linux)]: Connected on socket id Znh0ouyJ14JFR2s9d17s
......
Firefox 20.0 (Linux): Executed 6 of 6 SUCCESS (0.434 secs / 0.039 secs)

Running "concat:dist" (concat) task
File "dist/assets/clean-power-circle.js" created.

Running "concat:libs" (concat) task
File "dist/assets/libs.js" created.

Running "ngmin:dist" (ngmin) task
ngminifying dist/assets/clean-power-circle.js

Running "uglify:dist" (uglify) task
File "dist/assets/clean-power-circle.min.js" created.

Running "recess:build" (recess) task
File "dist/assets/clean-power-circle.css" created.
Uncompressed size: 150906 bytes.
Compressed size: 17191 bytes gzipped (125053 bytes minified).

Running "index" task

Running "copy:assets" (copy) task
Created 3 directories, copied 8 files

Running "copy:bin" (copy) task
Created 1 directories, copied 1 files

Running "karma:unit" (karma) task

Running "delta" task
Waiting...OK
>> File "src/app/membership/membership.js" changed.
Running "jshint:src" (jshint) task
>> 16 files lint free.

Running "karma:unit:run" (karma) task

Issue Analytics

  • State:open
  • Created 10 years ago
  • Comments:42 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Izhakicommented, May 17, 2016

Seems like this combo has no issues:

  "devDependencies": {
    "grunt": "^0.4.5",
    "grunt-contrib-watch": "^1.0.0",
    "jasmine-core": "^2.3.4",
    "karma-jasmine": "^0.3.6",
    "karma": "^0.13.15",
    "karma-phantomjs-launcher": "^0.2.1",
    "grunt-karma": "^0.12.1",
    "phantomjs": "^1.9.18"
  }
0reactions
eggeracommented, Dec 3, 2018

Seems like this combo has no issues:

  "devDependencies": {
    "grunt": "^0.4.5",
    "grunt-contrib-watch": "^1.0.0",
    "jasmine-core": "^2.3.4",
    "karma-jasmine": "^0.3.6",
    "karma": "^0.13.15",
    "karma-phantomjs-launcher": "^0.2.1",
    "grunt-karma": "^0.12.1",
    "phantomjs": "^1.9.18"
  }

For everyone still trying to get a project to run including karma and grunt these sets of dependencies worked for me as well. The same for this (more recent) comment: grunt-karma/issues/212

Read more comments on GitHub >

github_iconTop Results From Across the Web

grunt watch hangs on karma:unit:run task · Issue #37 - GitHub
Hi, I have this issue every time I update a js file, for example a Ctrl. But runnig "grunt delta" and "karma start...
Read more >
Developers - grunt watch hangs on karma:unit:run task -
grunt watch hangs on karma:unit:run task ... Hi,. I have this issue every time I update a js file, for example a Ctrl....
Read more >
grunt hang on Running "delta" task - node.js - Stack Overflow
"Waiting..." usually means the server is up and running... But I see right now watching your Gruntfile that the message "Started connect web ......
Read more >
Visual Studio Hangs when attempting to run a grunt watch ...
I am working with a legacy codebase that uses some grunt tasks. I had previously opened the visual studio solution and the task...
Read more >
Getting started with Grunt.js - Semaphore Tutorial
Watch task runs a unique set of tasks when the file has been saved. We first need to configure watch , then run...
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