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

One more change to be grunt-0.4.0 compatible #7

Merged
merged 1 commit into from Feb 21, 2013
Merged

One more change to be grunt-0.4.0 compatible #7

merged 1 commit into from Feb 21, 2013

Conversation

larsthorup
Copy link
Contributor

When using grunt-qunit-cov-0.3.0 with grunt-0.4.0 I get the following error:

Fatal error: Object #<Object> has no method 'expandFileURLs'

This pull-request attempts to fix this, following the advice on https://github.com/gruntjs/grunt/wiki/Upgrading-from-0.3-to-0.4.

afonsof added a commit that referenced this pull request Feb 21, 2013
One more change to be grunt-0.4.0 compatible
@afonsof afonsof merged commit 2380004 into afonsof:master Feb 21, 2013
@afonsof
Copy link
Owner

afonsof commented Feb 22, 2013

@larsthorup, my builds using grunt-qunit-cov with new 0.4 grunt is throwing an error. I know in this new version, 'utils' was deprecated and 'util' become to be used. However I've found this error everywhere 'util' is mentioned:

P:\webbers\projects\Gbwcd\trunk\src\Gbwcd\Scripts\gbwcd\node_modules\grunt-qunit-cov\tasks\lib\phantomjs.js:15
        return grunt.util.spawn(
                          ^
TypeError: Cannot call method 'spawn' of undefined
    at exports.phantomjs (P:\webbers\projects\Gbwcd\trunk\src\Gbwcd\Scripts\gbwcd\node_modules\grunt-qunit-cov\tasks\lib\phantomjs.js:15:27)
    at module.exports.grunt.registerMultiTask.jscoverage.done (P:\webbers\projects\Gbwcd\trunk\src\Gbwcd\Scripts\gbwcd\node_modules\grunt-qunit-cov\tasks\qunit-
cov.js:302:21)
    at async.forEachSeries.iterate (P:\webbers\projects\Gbwcd\trunk\src\Gbwcd\Scripts\gbwcd\node_modules\grunt\node_modules\async\lib\async.js:108:13)
    at Object.async.forEachSeries (P:\webbers\projects\Gbwcd\trunk\src\Gbwcd\Scripts\gbwcd\node_modules\grunt\node_modules\async\lib\async.js:124:9)
    at Object.module.exports.grunt.registerMultiTask.jscoverage.done (P:\webbers\projects\Gbwcd\trunk\src\Gbwcd\Scripts\gbwcd\node_modules\grunt-qunit-cov\tasks
\qunit-cov.js:231:35)
    at exports.jscoverage (P:\webbers\projects\Gbwcd\trunk\src\Gbwcd\Scripts\gbwcd\node_modules\grunt-qunit-cov\tasks\lib\jscoverage.js:25:36)
    at ChildProcess.utils.spawn (P:\webbers\projects\Gbwcd\trunk\src\Gbwcd\Scripts\gbwcd\node_modules\grunt\lib\grunt\utils.js:110:5)
    at ChildProcess.EventEmitter.emit (events.js:91:17)
    at maybeClose (child_process.js:638:16)
    at Process._handle.onexit (child_process.js:680:5)

Do you know why this problem is happening? I'm sure I'm using grunt 0.4

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

Successfully merging this pull request may close these issues.

None yet

2 participants