Unable to minify "sites/all/modules/jquery_update/replace/ui/external/jquery.cookie.js"
Attached the original file in zip.

Comments

atul.bhosale’s picture

Status: Active » Postponed

This error from Google closure compiler.

atul.bhosale’s picture

Status: Postponed » Closed (works as designed)
xpersonas’s picture

I don't want to annoy anyone by reopening this thread, but I'm having the same issue. For me, it's the jquery_update/replace/ui/external/jquery.cookie.js file. Which I know is not the responsibility of this module maintainer. However, when I run the code manually at http://closure-compiler.appspot.com/home I just get three warnings about the @desc, but it does in fact minify it.

So my question, or possibly suggestion if there is no objection, is should the minify fail due to simple warnings? Should we change the warning_level to "QUIET" rather than "DEFAULT" in the minify.admin.inc file? When I do that, I have no problems minifying it.

Or perhaps it would be a simple setting we could select on the configuration page? I'd be happy to add that code if needed.

xpersonas’s picture

Status: Closed (works as designed) » Active
xpersonas’s picture

deleted

yannisc’s picture

Same problem here.

georgemastro’s picture

Just a temporary solution.

yannisc’s picture

The above patch solved the problem for me!

xpersonas’s picture

StatusFileSize
new721 bytes

Should we be patching to protect against that specific warning, or should warnings be preventing minification at all if they aren't really hurting anything? This may not be the right way to go either, but I'm putting my simple patch here in case anyone else wants it.

I'm simply changing the warning level to QUIET rather than DEFAULT.

osman’s picture

Status: Active » Needs review

The last submitted patch, 7: desc-comment-minify-warning-2226279-7.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 9: warning-level-change_2226279_9.patch, failed testing.

atul.bhosale’s picture

This is already fixed and available in next soon release.

atul.bhosale’s picture

Assigned: Unassigned » atul.bhosale
Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 9: warning-level-change_2226279_9.patch, failed testing.

coozila’s picture

subscribe

ryumkin’s picture

Subscribe

idflood’s picture

@Atul Bhosale I tried to clone the 7.x-1.x branch but the bug is still present. I'm also wondering why the dev version is not directly downloadable from https://www.drupal.org/project/minify like most other modules.

idflood’s picture

Status: Needs work » Needs review
StatusFileSize
new589 bytes

The patch in #9 work perfectly but had the wrong base path (patching inside sites/all/modules/.. instead of the module directory). So here is a simple reroll of it.

xpersonas’s picture

Ah my bad. Sorry about that. Thanks!

fotispan’s picture

Patch works great for me too.

MRPRAVIN’s picture

This patch works for me. Thanks.

nairb’s picture

Status: Needs review » Reviewed & tested by the community

  • Atul Bhosale committed 96a0562 on 7.x-1.x
    - Bug fixes
    - #2226279 Failed to generate minified JS. Error: Parse...
atul.bhosale’s picture

Status: Reviewed & tested by the community » Fixed

Fixed: warning level set to "QUIET"

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.