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 240788 - Grunt will only run "default" task regardless of task selected
Summary: Grunt will only run "default" task regardless of task selected
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 8.0
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 17:57 UTC by fishnugget77
Modified: 2014-01-23 02:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Annotated screenshot of unexpected results (298.88 KB, image/png)
2014-01-21 17:57 UTC, fishnugget77
Details
Bare Bones HTML5 project created in NB 8.0 beta (1.57 MB, application/zip)
2014-01-21 23:19 UTC, fishnugget77
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fishnugget77 2014-01-21 17:57:56 UTC
Created attachment 144223 [details]
Annotated screenshot of unexpected results

I've been experimenting with Grunt support in the 8.0 beta and have found an issue. While the Grunt support recognizes all of my tasks and allows me to select any of them, the system will always run the "default" task (regardless of selection).

For example, I've defined a "clean" task. The task appears in my Task list when I right-click on the Gruntfile under "Important Files" and I am able to select it. The 'Output' window pops up and claims that it is running my task (clean), but instead the 'default' task is executed as indicated by the output logs.

See screenshots.

Additional Notes
- The HTML5 Project was created in Netbeans 7.4 and opened in Netbeans 8.0 beta
Comment 1 Vladimir Riha 2014-01-21 21:44:36 UTC
Could you please provide the gruntfile.js and package.json to reproduce it? I've just tried it on Linux and it works in my case with Gruntfile taken from [1] with added "clean" defined the same way as on your screenshot. I'll try it on Mac just to be sure.

Thank you in advance

[1] http://services.netbeans.org/synergy/client/app/#/suite/1229/v/1

Product Version: NetBeans IDE 8.0 Beta (Build 201401141042)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.11.0-15-generic running on amd64; UTF-8; en_US (nb)
Comment 2 fishnugget77 2014-01-21 23:19:36 UTC
Created attachment 144227 [details]
Bare Bones HTML5 project created in NB 8.0 beta

I created a new bare bones HTML5 project in Netbeans 8.0 Beta and am still seeing the project. I've attached the entire project (including Gruntfile.js and package.json) as HTML5Application.zip.

I'm using the latest node and grunt versions (I installed them for the first time this AM).
Comment 3 Jan Becicka 2014-01-22 09:50:19 UTC
reproducible
Comment 4 Jan Becicka 2014-01-22 10:09:31 UTC
Mac specific.
Comment 5 Jan Becicka 2014-01-22 10:17:48 UTC
Changeset: d28c8ad11d7c
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2014-01-22 11:12
Message:
Comment 6 Quality Engineering 2014-01-23 02:41:17 UTC
Integrated into 'main-silver', will be available in build *201401230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d28c8ad11d7c
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue #240788 - Grunt will only run "default" task regardless of task selected