'Grails Auto generated code is with warnings and errors

I am using Intellij IDEA Ultimate and have Grails plugin installed. When i auto generate, let's say controller i have warnings like so : "Cannot infer argument types " for this code :

multipartForm {
                flash.message = message(code: 'default.created.message',
                        args: [message(code: 'tekEvent.label',
                                default: 'TekEvent'), tekEventInstance.id])//We need id to see in created message
                redirect tekEventInstance //redirect will open show() view and populate it with instance's data
            }

And an error for 'tekEvent.label' .

Have MANY errors in generated views as well. It's not just me. My 3 fellows in team have the same problem as well. Would like to get a "Light" from you and pass it to them as well . Thanks ^_^



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source