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

This entry was posted in Groovy, NetBeans. Bookmark the permalink.

23 Responses to Groovy and Grails in NetBeans

  1. Ranganath.S says:

    hi,

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

    -Ranganath

  2. Martin Adamek says:

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

  3. Claus Hausberger says:

    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

  4. Ranganath.S says:

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

  5. Martin Adamek says:

    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

  6. david marko says:

    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

  7. Martin Adamek says:

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

  8. Martin Adamek says:

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

  9. david marko says:

    How to refresh once installed plugin in netbeans?

  10. Martin Adamek says:

    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 :-)

  11. David Marko says:

    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?

  12. Martin Adamek says:

    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.

  13. Stefan says:

    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).

  14. Sakuraba says:

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

    THX !!!

  15. Martin Adamek says:

    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.

  16. Stefan says:

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

  17. Michael says:

    Good news!

  18. Ranganath.S says:

    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?

  19. Martin Adamek says:

    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!

  20. Pan Feng says:

    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

  21. Tobias says:

    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?

  22. Martin Adamek says:

    For 6.0 you can download it here