GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 92 forks source link

MEAP v9, chapter 5, section 5.2.2 Exploring Where Queries : inspect AST to deal with compilation errors #32

Closed marcpa00 closed 10 years ago

marcpa00 commented 11 years ago

Under grails 2.2.3, compilation errors are still not displayed in the grails console swing result panel. Since you talk about AST transformations in "How do they work?" sidebar, I suggest you also mention the groovy AST browser (Script | Inspect Ast) where such compilation errors are spelled out explicitly and nicely.

pledbrook commented 11 years ago

Ugh. Compilation errors are displayed, but not ones related to Where queries. What a pain. I suspect this is because only compilation errors up to a particular phase get displayed properly. In this case, Where query errors only appear after the Canonicalization phase.

Anyway, good suggestion about the AST browser as a workaround. I'll try to incorporate that.

pledbrook commented 10 years ago

I've added a note about the AST browser. Thanks for the suggestion!