This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 242448 - Grunt shows invalid tasks
Summary: Grunt shows invalid tasks
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 8.0
Hardware: PC Linux
: P1 normal (vote)
Assignee: Jan Becicka
URL:
Keywords: 8.0_HR_FIX
Depends on:
Blocks:
 
Reported: 2014-02-28 13:39 UTC by Vladimir Riha
Modified: 2014-03-03 08:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Gruntfile (3.29 KB, application/javascript)
2014-02-28 13:39 UTC, Vladimir Riha
Details
screenshot with wrong tasks (22.25 KB, image/png)
2014-02-28 13:40 UTC, Vladimir Riha
Details
output from grunt --help --no-color (2.75 KB, text/plain)
2014-02-28 13:41 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-02-28 13:39:39 UTC
Created attachment 145662 [details]
Gruntfile

Please check the screenshot, this is list of tasks that IDE offers. There should only be following: cssmin, uglify, replace, default.


package.json:
{
    "name": "Synergy",
    "version": "0.6.0",
    "author": "Vladimir Riha",
    "description": "Test case management system",
    "devDependencies": {
        "grunt": "",
        "grunt-contrib-uglify": "",
        "grunt-text-replace":"",
        "grunt-contrib-cssmin":"",
    }
}



Product Version: NetBeans IDE 8.0 RC1 (Build 201402242200)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2014-02-28 13:40:29 UTC
Created attachment 145663 [details]
screenshot with wrong tasks
Comment 2 Vladimir Riha 2014-02-28 13:41:37 UTC
Created attachment 145664 [details]
output from grunt --help --no-color
Comment 3 Jan Becicka 2014-02-28 14:19:37 UTC
Changeset: 9578063de0b9
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2014-02-28 15:16
Message:   Improved parsing of grunt tasks with multi-line descriptions. Task name never starts on position lower than 16.
Comment 4 Jan Becicka 2014-02-28 14:23:46 UTC
fixed in dev
Comment 5 Vladimir Riha 2014-02-28 15:10:21 UTC
Thank you for quick fix, works ok in web-main custom build. Verified, please continue with release80 integration.


Product Version: NetBeans IDE Dev (Build 20140228-0b9f25f0edc0)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 6 Jan Becicka 2014-02-28 16:05:52 UTC
Only P1s are allowed in release80. Please change the priority if you want me to integrate the fix into release80.
Comment 7 Vladimir Riha 2014-02-28 16:36:32 UTC
Done,thanks.
Comment 8 Marek Fukala 2014-02-28 16:57:10 UTC
The change 

http://hg.netbeans.org/web-main/rev/9578063de0b9

looks safe, can't cause any new exceptions, although I haven't reviewed the semantic.
Comment 9 Jan Becicka 2014-02-28 21:44:21 UTC
http://hg.netbeans.org/releases/rev/505911e55057
Comment 10 Quality Engineering 2014-03-01 06:14:43 UTC
Integrated into 'main-silver', will be available in build *201403010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9578063de0b9
User: Jan Becicka <jbecicka@netbeans.org>
Log: Improved parsing of grunt tasks with multi-line descriptions. Task name never starts on position lower than 16.
Issue #242448 - Grunt shows invalid tasks
Comment 11 Quality Engineering 2014-03-03 00:47:25 UTC
Integrated into 'releases/release80', will be available in build *201403022200* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/505911e55057
User: Jan Becicka <jbecicka@netbeans.org>
Log: Improved parsing of grunt tasks with multi-line descriptions. Task name never starts on position lower than 16.
Issue #242448 - Grunt shows invalid tasks
Comment 12 Vladimir Riha 2014-03-03 08:26:57 UTC
Verified in 8.0, thank you

Product Version: NetBeans IDE 8.0 (Build 201403022200)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)