Make IntelliJ prominently display Groovy/Grails syntax errors
grails, groovy, intellij-idea
Solution
Here what I've got so far:
Idea inspections should be a way to go. You can set them by right click on the project -> Analyze -> Inspect code ... and there is inspection profile selection which opens Inspections window.
There you can choose what inspections you'd like to run on your codebase and the severity of each inspection.
Go to Groovy -> Probable bugs -> Access to unresolved expression inspection and set the severity to Error.
Now you should see misspelled property or method name not with barely noticeable black underline but with red color, indicating error.
But what makes me mad is that I can't force Idea to show these errors in the results if you run Analyze on whole projects. It shows all the other inspection errors but not this one.
Problem
I'm using IntelliJ IDEA 13 to edit my Grails application and while it is very smart about some things, it doesn't display syntax errors very well. E.g., I can misspell a property or method name, but IntelliJ shows a mellow barely noticeable black underline in code with the on-hover popup saying `Cannot resolve symbol 'foobar'`. If I go into `View -> Tool Windows -> Messages` then it doesn't even show this issue, even after `Build -> Rebuild project` (although it shows some useless deprecation messages in 3rd party plugin code). How do I find a view showing all these potential issues so I can review them? Edit - @lukelazarovic is totally right, I fixed a significant misconception about how Groovy/Grails works. Also question was partially covered by: Will groovy (grails) give you compile time checking like java?