开发者

Is there a way I can get Intellij to underline Groovy errors?

With some groovy errors, Intellij reports the errors in the messages window, but doesn't underline the code in red in the editor. Is there a way 开发者_StackOverflowto get it to do this?

Example:

static boolean example(){ x = 5 }

With that code, when I try to compile the messages window gives an error Apparent variable 'x' was found in a static scope but doesn't refer to a local variable, static field or class.

Is it possible for IntelliJ to also underline the error in the editor (and maybe the project window to show what file the error is in too)?


While IDEA on-the-fly code analyzer can detect 99% errors in the Java code without even running a compiler, it's much harder to do for dynamic languages like Groovy. So, you have to actually build your project in order to see all the compilation errors (use Build | Make).

Analyzer may be improved and will start to detect more errors in the future updates.


I use customize highlight level to suppress some warnings on my android layout files.

Is there a way I can get Intellij to underline Groovy errors?

Is there a way I can get Intellij to underline Groovy errors?

Is there a way I can get Intellij to underline Groovy errors?

P.S I love Intellij for android development :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜