Groovy - plugin detail

Install the 5 NBMs in this ZIP and you'll have support for Groovy. See the Features list below for details. Supported by NetBeans IDE 6.0 RC 2.

NetBeans Plugin - Groovy
Plugin owner: geertjan
Website: http://nbgroovysupport.dev.java.net/
Added: 2007-10-25
License: CDDL
Category: Graphical User Interface
Downloaded: 9,009 times
Rating:
 4.02, by 8 users

Plugin Log Show log

Versions available

Download plugin   Download size: 2.30 MB   Last Update: 2012-04-11

What's new in this version

Moved to NetBeans IDE 6.0 RC 2 and Groovy 1.1 RC 2. When you download the plugin, you will have a file called "groovynbms-5.zip". If there is a "5" in the name of the file, that means you have the latest and greatest version.

Verifications for NetBeans versions

Plugin is not subject to any verification



Introduction

Features:
  • File templates.
  • Syntax coloring for keywords and strings.
  • Code fold for classes.
  • Run script support via JSR 223, by right-clicking inside Groovy script, with output and error messages written to the NetBeans Output window.
  • No need to register a Groovy distribution anywhere. No need to download the Groovy distribution at all. The modules take care of everything internally.
  • Cool keyboard shortcuts, such as move/copy up/down (via Alt-Shift-Up/Down and Ctrl-Shift-Up/Down).
  • Project Properties panel for Java Applications has a panel called 'Groovy', where you can let the IDE generate an Ant script for groovyc and an Ant script for Groovydoc.
  • Groovy Library in the Library Manager.
  • Java-oriented code completion, code templates, and surround-with.
  • Icon for Groovy files is same as Java files.
  • Brace completion (e.g., when you type "(", you will automatically get ")", same is true for other types of braces).
  • Brace matching: put the cursor on one brace and you will see its matching brace highlighted and, if there is no matching brace, the first will be marked in red.

Known problems:

  • You must have NetBeans IDE 6.0 RC 2. You will have dependency problems if you use any other build.
  • You must do something in the editor (e.g., add some code), to enable the Run menu item or other stuff, like the Java-oriented code-template based code completion. Sorry.

Note: Plugin version is "groovynbms-5.zip", which is the name of the ZIP that you get when you click the Download button.

updated-groovy-2.png

pic2.png

[ You have to be logged in to be able to comment. ]

User Comments

  

Doesn't work

Sorry but this plugin only highlights the code, nothing else. CodeFolding, Running the script, Java-oriented code completion, code templates, surround-with, ... all this Features are not available or better to say don't work unter NB6.
Posted by wbabachan on Jan 10, 2008
  

Got trouble when import external class.

hi there, it's really a nice plug-in and I like it! but I met problem when trying to write something work together with my legacy java code, always got an error like this if I import external classes:
unable to resolve class com.scu.cimfvt.utility.ServiceWrapper ... ...
I have already add the folder for the generated classes into both the compiletime classpath and runtime classpath, it doesn't work.
any suggestion to solve this ... ?
Posted by Schummy on Dec 01, 2007
  

What about files with .gy extension?

I tried going to the Advanced Options dialog-box, expanding Options > IDE Configuration > System > Object Types, selecting the Groovy Files icon and adding "gy" to it's list of MIME Types and Extensions. That didn't work. I'd rather not have to rename my Groovy files. So I wonder, is there some other way short of downloading the module source and creating my own build?
Posted by snoopdave on Nov 28, 2007
  

Re: Of course, no project types available. This module doesn't provide them.

I see. This plugin provides only basic groovy file editing support. Sorry I followed a bunch of links thinking this plugin would support building Grails and Groovy based web apps. This is a start but not the full solution I was hoping for. The blog post you pointed at (http://blogs.sun.com/geertjan/entry/big_milestone_for_groovy_and) makes this clear. It's really a shame that Groovy and Grails are taking so long to get support in NB. Don't get me wrong I appreciate everyone's efforts. I understand this is all volunteer work. Still there is such synergy between Java and Groovy that this would seem to be a no brainer.
Posted by stevegio on Nov 25, 2007
  

Re: Of course, no project types available. This module doesn't provide them.

I could not agree with you more, stevegio.
Posted by geertjan on Nov 25, 2007
  

Of course, no project types available. This module doesn't provide them.

This plugin does not provide the functionality that you are looking for. That is a completely different module. It is in the update center, for post-NetBeans 6 development builds. Read this blog entry for details:
http://blogs.sun.com/geertjan/entry/big_milestone_for_groovy_and
Posted by geertjan on Nov 24, 2007
  

No project types visible

I've installed NB6 RC2, downloaded and installed the plugins but I don't see the groovy or grails project types in the New Project dialog. I'm running on Mac OS 10.5.1 with JDK 1.5. I can see three plugins installed in the "Installed" plugin: GroovySupport, GroovyAsLibrary, and GroovyAntTasks.
Been waiting for this plugin for a long time so I'd be happy to assist with any other debug information.
Posted by stevegio on Nov 24, 2007
  

If run doesn't work...

...go here: http://blogs.sun.com/geertjan/date/20071122
Posted by geertjan on Nov 22, 2007
  

re: dependencies

No probs! Several people have had the same question. Have fun with Groovy and I will update the plugin when Groovy 1.1 is released (within the next 2 weeks).
Posted by Geertjan on Nov 07, 2007
  

run doesn't work

I've no clue how to run a script. The Run menu item simply doesn't work. It's not the the Run item is not enabled, but if I choose it the output view opens and nothing happens. any ideas?
Posted by marcuso@web.de on Nov 07, 2007
  

re: run doesn't work

Hi Marcuso, that's strange. What OS are you using? Which JDK version, exactly? [Perhaps you could restart the IDE and see if this solves it.] Others have used this plugin successfully, though one other time I heard of someone with the same situation. Trying to track down what the reason is so hope you can be as extensive as possible in explaining your environment.
Posted by geertjan on Nov 07, 2007
  

Re: dependencies

Thanks Geertjan. Should have read the text more carefully, sorry and thanks for your patience.
Posted by kawazu428 on Nov 07, 2007
  

re: run doesn't work

By the way, what happens when you run the scripts that are provided by the file templates in the New File wizard? Same thing? Or not?
Posted by geertjan on Nov 07, 2007
  

run doesn't work

I've no clue how to run a script. The Run menu item simply doesn't work. It's not the the Run item is not enabled, but if I choose it the output view opens and nothing happens. any ideas?
Posted by marcuso@web.de on Nov 07, 2007
  

dependencies

You have not installed NetBeans IDE 6.0 Beta 2. Here is a link to it, you clearly have a nightly build. Please read the open issues where you will see that you are told to use NetBeans IDE 6.0 Beta 2:
http://download.netbeans.org/netbeans/6.0/beta2/
Posted by geertjan on Nov 06, 2007
  

installation - missing dependencies?

First off: Really good work, Geertjan, much appreciated. :) However, can't unfortunately get the plugin installed because of missing modules:

Editor Indentation [module org.netbeans.modules.editor.indent/1 > 1.2.4]

Running latest NetBeans nightly build. Anything I can do about that?
TIA and best regards,
Kristian
Posted by kawazu428 on Nov 06, 2007
  

Version

Good comment! Will make that clearer in the next release of this plugin.
Posted by geertjan on Nov 03, 2007
  

Version

Is it possible to publish the plugin version? I have noticed the page modification has changed and downloaded the same zip second time :-)
Posted by anli on Nov 01, 2007
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo