Groovy and Grails in NetBeans

Groovy and Grails support in NetBeans has been enabled on Development Update Center. What does it mean? In development build of NetBeans you can go to Tools->Plugins and search for ‘groovy’. Then select found item and press Install. Don’t forget to restart IDE to enable recognition of .groovy and .gsp files. What can you expect? Snapshots of functionality that we started to develop very recently. All is just at the beginning, but hopefully usable for those of you who like experiments. If you like Groovy and Grails and would like to help us, please file bugs and enhancements in Groovy category. If you are wondering how is this related to Coyote or Geertjan’s Groovy plugin, you should know that most of the coyote functionality is already integrated here (only unittesting is missing) and comparing to Geertjan’s this one should be more advanced once it is finished (Geertjan is aware of this, we drink coffee together sometimes :-) I’ll describe single features in next posts and as they will come, but here is some overview what’s in right now:

Don’t forget to set Groovy and Grails homes in Groovy options category
Groovy settings

Project wizards for Groovy and Grails
New project

Grails project support (open existing or create new, wizards for some Grails components, run project)
Grails project

Groovy project support (create, run project, execute script)
Groovy project

Groovy editor (basic coloring, formatting, bracket completion)
Grovy editor

GSP editor (coloring, highlighting of GSP tags, expressions and scriptlets)
GSP editor

23 Comments

Ranganath.SNovember 23rd, 2007 at 07:40

hi,

any plans of having code completion implemented like what Intellj has..

-Ranganath

Martin AdamekNovember 23rd, 2007 at 09:18

Sure, we would like to have fully featured editor. It is one of the upcoming tasks.

Claus HausbergerNovember 23rd, 2007 at 10:14

Great stuff. Looking forward to using it. Keep up the great work and make the Netbeans Groovy support as great as the Ruby stuff.

Claus

Ranganath.SNovember 23rd, 2007 at 10:59

awesome, this was one good news i wanted to hear from nb guys.. is it opensourced? where can i download the code plz?

Martin AdamekNovember 23rd, 2007 at 12:56

Sure, it is open source under CDDL or GPL Version 2. Here are steps how to checkout and build: http://wiki.netbeans.info/wiki/view/Groovygrails

david markoNovember 23rd, 2007 at 14:50

Cant get it to work. I downloaded netbeans-hudson-trunk-4554-java.zip
… unziped …. hwne started I installeg Groov & grails plugin. No problems so far. Afetr restart I configured groovy Home and grails Home. Now when I try to create a grails project, after filling new project dialogue and clicking on finish, then I got some IO error and it hanged. I tryied several time with the same result.

Has anone finished succefully?
David

Martin AdamekNovember 23rd, 2007 at 15:07

to david: can you please file a bug against ‘groovy’ or send me stack trace to martin dot adamek at gmail dot com

Martin AdamekNovember 23rd, 2007 at 15:24

Seems to be Win XP problem, filed as issue 122633 and should be fixed today. Thanks for the report.

david markoNovember 23rd, 2007 at 15:50

How to refresh once installed plugin in netbeans?

Martin AdamekNovember 23rd, 2007 at 17:06

refresh: I am not sure if it will be pushed automatically, I’ll try to find and post. Safe way is to uninstall and install new one I guess :-)

David MarkoNovember 23rd, 2007 at 17:14

Also, is published somewhere the info about the new plugin build available so one can know what changed or if some feature included, bug fixed?

Martin AdamekNovember 23rd, 2007 at 17:22

Changelog is here: http://deadlock.netbeans.org/hudson/job/javadoc-nbms/changes but those are not typical feature updates, one have to realize it is in fact continuous build. We plan something like milestones and we will announce them in blogs, wiki and possibly some mailing lists.

StefanNovember 23rd, 2007 at 19:35

Very good news, finally we could get a feature-complete Groovy support in NetBeans.
Is there any way to install the plugin in the RC- or in the upcoming final release of NetBeans? Perhaps it could be distributed on the Beta channel.
This would be great for the most users to use it, but it would also be great for the development (a lot more users would test it).

SakurabaNovember 23rd, 2007 at 21:18

FINALLY THE LAST REASON TO USE ECLIPSE IS GOOOOOONE!!!!

THX !!!

Martin AdamekNovember 23rd, 2007 at 22:31

to Stefan: we will prepare something like Milestone 1 once we will have reasonable set of features and I hope it will be possible to add it some UC for 6.0 final.

StefanNovember 24th, 2007 at 09:02

This would be great christmas gift ;-) What do you mean by UC for 6.0 final?

MichaelNovember 24th, 2007 at 11:23

Good news!

Ranganath.SNovember 25th, 2007 at 09:26

hi martin,

I found some bugs.. N was wondering where to log them. Infact i will download the source N try to fix them though.. do let know where i can log the bugs and is there any page set for this project eg coyote had coyote.dev.java.net.. so for this plugin, project has been setup is it?

Guillaume LaforgeNovember 25th, 2007 at 12:00

Well done, Martin!

Martin AdamekNovember 25th, 2007 at 12:14

to Ranganath: you can log bugs here and plugin pages are here. You can even attach patches to bugs if you would like to contribute… thanks anyway!

Pan FengNovember 26th, 2007 at 07:18

Dear Martin,

I can not install the plugin. When I click the checkbox for installing the plugin. The exception was thrown. My Netbanes version is NetBeans IDE 6.0 200711050000.

update: I filed a bug with you stack trace

TobiasDecember 10th, 2007 at 10:48

Is there a way to install that plugin in the “official” version of NetBeans 6.0 or do I have to wait until some version 6.0.1 is out?

Martin AdamekDecember 10th, 2007 at 10:50

For 6.0 you can download it here