groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Stagner <restag...@gmail.com>
Subject Re: @Builder and Groovy In Action Second Edition
Date Wed, 05 Aug 2015 19:00:20 GMT
Groovy and IntelliJ IDEA users,

I have since found out from the folks at JetBrains, the @Builder annotation
is not currently supported in version 14.1.x.  I've been informed that
there are plans to support it in version 15.  Please show your support for
this feature by voting for it at

https://youtrack.jetbrains.com/issue/IDEA-125224

On Mon, Aug 3, 2015 at 5:42 PM Robert Stagner <restagner@gmail.com> wrote:

> Thanks, Dinko. I'll read through the information and see what turns up
>
> On Mon, Aug 3, 2015, 5:33 PM Dinko Srko─Ź <dinko.srkoc@gmail.com> wrote:
>
>> I don't know whether this is still the case, but IntelliJ IDEA used to
>> use GroovyDSL scripts for supporting common AST transformations in the
>> IDE (since IDEA 9).
>>
>> More info about gdsl scripts can be found here:
>>
>> https://confluence.jetbrains.com/display/GRVY/Scripting+IDE+for+DSL+awareness
>>
>> Cheers,
>> Dinko
>>
>> On 2 August 2015 at 18:50, Robert Stagner <restagner@gmail.com> wrote:
>> > I'm relatively new to Groovy.  And, while working through the @Builder
>> > example (Listing 9.9), from Groovy In Action Second Edition, which is a
>> > _fantastic_ book by the way, I was under the impression that the
>> following
>> > piece of code
>> >
>> > @Builder
>> > class Chemist {
>> >     String first
>> >     String last
>> >     int born
>> > }
>> >
>> > def builder = Chemist.builder()
>> >
>> >
>> > would result in the builder() method being recognized in the IDE I am
>> using
>> > (IntelliJ IDEA).  Instead, the IDE informs me "Cannot resolve symbol
>> > 'builder'".
>> >
>> > I thought that since @Builder was a compile-time metaprogramming
>> structure,
>> > the IDE would recognize the builder() method and allow me to use the
>> IDE's
>> > auto-complete feature ...
>> >
>> > Is that not true of the @Builder annotation ?
>> > Am I making the wrong assumption here ?
>> >
>> >
>>
>

Mime
View raw message