NetBeans and Groovy Enhancements

As promised in previous post several enhancements for Groovy were pushed to development version of NetBeans.

The major change is that the plugin now supports (and uses) Groovy 1.5.7 which contains several important bugfixes. Other areas improved in code completion:

  • More accurate code completion on dot
  • Return types displayed in code completion are now accurate (including generics)
  • Removed duplicate entries
  • Correctly displayed method access level
  • Field icons correspond to modifiers
The next thing in code completion area I would like to address is better support for Grails controllers.
Comments:

Great!

Posted by Geertjan on October 16, 2008 at 06:55 AM CEST #

Cant wait, iv been using 6.5 beta for a while now, works quite nicely but has a couple of rough edges.

Posted by ronen on October 16, 2008 at 04:21 PM CEST #

If these rough edges are not reported let me know about that. Via email, comment or issuezilla. Thanks.

Posted by Petr Hejl on October 17, 2008 at 04:20 AM CEST #

Very promising, keep up the great work!

Posted by Guillaume Laforge on October 21, 2008 at 08:02 AM CEST #

Hi amigo,
I've just downloaded the NB 6.5 RC1 but something is missing:
in the previous beta version when I clicked the right button on any groovy file, I had a nice option: "Execute Script", it was useful for very quick test. Do you know where it is now?
regards/Juan

Posted by Juan Salvador on October 21, 2008 at 09:42 PM CEST #

Hi Juan,
this shoul be definitely fixed (although named Run File). It is reported as http://www.netbeans.org/issues/show_bug.cgi?id=132285. Until then you have to set it as main class.

Posted by Petr Hejl on October 23, 2008 at 03:25 PM CEST #

Good work ... but still waiting for better completion support (dynamic methods, closures, controllers).

Posted by dunsun on November 13, 2008 at 08:50 AM CET #

Netbeans RC11 - 17.10.2008

Example of not working autocompletions in a cotroller:

def edit = {
def person = Person.get( params.id )
if(person.get(params.)) {

}
}

there is no autocompletion for:
person (dot) - there are some words but no person methods are shown
params (dot) - same for this one
in if it does not know person only Person and params is also unknown

Posted by dunsun on November 13, 2008 at 09:01 AM CET #

You are right about that. Dynamic stuff in controller is not supported right now. We definitely want to address this soon (the params case). The Person case is the missing type inference. I guess that if you would use typed variable for person you could get a better code completion (but don't take this as an excuse, we would like to address it as well).

Posted by Petr Hejl on November 13, 2008 at 09:40 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Petr is a NetBeans software engineer responsible for the Groovy & Grails support.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today