如何让Intellij Idea显示编译警告? [英] How to get Intellij Idea to display compilation warnings?

查看:1147
本文介绍了如何让Intellij Idea显示编译警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Intellij Idea 10和Java 6 JDK Update 7.当我运行 Build - >重建项目命令,并且(javac)编译生成警告,Idea不会在消息那些这些警告$ c>查看。我只看到一个信息:XX警告节点,但无法扩展它以查看实际警告。或者我只是在状态栏上看到一条消息编译已成功完成XX警告。对于错误,Idea会自动显示错误信息(错误消息,文件名,行号等)。如何让它与警告类似地工作?

I'm working with Intellij Idea 10 and Java 6 JDK Update 7. When I run Build --> Rebuild Project command, and the (javac) compilation generates warnings, Idea doesn't display what those warnings exactly are in the Messages view. I just see an "Information: XX warnings" node, but no way to expand it to see the actual warnings. Or I just see a message "Compilation completed successfully with XX warnings" on the status bar. For errors, Idea displays the error information (error message, filename, line number etc.) automatically. How can I get it to work similarly with warnings?

(为了记录,我已经尝试使用其他命令行参数,例如 - Xlint ,但它没有什么区别。)

(For the record, I've already tried using additional command line parameters such as -Xlint, but it does not make a difference.)

推荐答案

确保左侧的消息面板中隐藏警告选项已禁用

这篇关于如何让Intellij Idea显示编译警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆