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 254629 - When a grails 3 project is run, the IDE should launch a browser window to the correct location.
Summary: When a grails 3 project is run, the IDE should launch a browser window to the...
Status: VERIFIED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Grails (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: bruno.flavio
URL:
Keywords:
Depends on:
Blocks: 254336
  Show dependency tree
 
Reported: 2015-08-23 20:06 UTC by bruno.flavio
Modified: 2015-10-12 21:55 UTC (History)
3 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Determine when grails3 run command is ready. (1.46 KB, patch)
2015-09-06 22:15 UTC, bruno.flavio
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bruno.flavio 2015-08-23 20:06:51 UTC
When a grails 2 project is ran from within NetBeans a browser window is automatically opened with the project url.

This behaviour is not occurring with a grails 3 project. Users may find this confusing as they must check the console log to know when the grails application was fully started.

To fix this issue the GrailsCommandSupport> ServerOutputProcessor method processLine() needs to understand when grails run-app successfully starts the embedded server. see http://hg.netbeans.org/main/file/b231a63e2dbe/groovy.grailsproject/src/org/netbeans/modules/groovy/grailsproject/commands/GrailsCommandSupport.java#l377
Comment 1 Jiri Kovalsky 2015-09-04 15:25:45 UTC
Hi Bruno, any update on this?
Comment 2 thruminds 2015-09-05 10:18:41 UTC
(In reply to Jiri Kovalsky from comment #1)
> Hi Bruno, any update on this?

Still not opening a browser window. It takes a lot of time to install all required Gradle plugins and then stops. The progress bar on the bottom right corner freezes. When I navigate using any external browser, I get the application running.
Comment 3 bruno.flavio 2015-09-06 22:15:47 UTC
Created attachment 155927 [details]
Determine when grails3 run command is ready.

The patch submitted checks for the output expected in both grails 2 and 3 projects.

With it NetBeans is able to recognize when grails is ready and open the browser window on the location given by the output.
Comment 4 Jiri Kovalsky 2015-09-10 08:00:24 UTC
Thanks for the patch Bruno! I have applied it on your behalf:

http://hg.netbeans.org/core-main/rev/bb06c3101cf8

Ahmad, could you please verify the bug fix once it is available in the next development build? Thanks!
Comment 5 thruminds 2015-09-10 21:02:58 UTC
(In reply to Jiri Kovalsky from comment #4)
> Thanks for the patch Bruno! I have applied it on your behalf:
> 
> http://hg.netbeans.org/core-main/rev/bb06c3101cf8
> 
> Ahmad, could you please verify the bug fix once it is available in the next
> development build? Thanks!

Sure thing isA
Comment 6 Quality Engineering 2015-09-11 01:23:00 UTC
Integrated into 'main-silver', will be available in build *201509110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/bb06c3101cf8
User: Jiri Kovalsky <jkovalsky@netbeans.org>
Log: Added checks for the output expected in both Grails 2 and 3 type of projects.
Task #254629 - When a grails 3 project is run, the IDE should launch a browser window to the correct location.
Comment 7 bruno.flavio 2015-10-12 21:55:38 UTC
Verified working with *201510120002* on Grails 3.0.4 and 2.5.1.