简体   繁体   English

IntelliJ 12:在Project导航器中显示Play 2.1 / Scala编译错误?

[英]IntelliJ 12: Showing Play 2.1 / Scala compile errors in Project navigator?

I have IntelliJ 12 Ultimate and am using the Play Framework 2.1 with Scala (love them both) 我有IntelliJ 12 Ultimate,我正在使用Scala的Play Framework 2.1(爱他们两个)

One thing I miss from Eclipse is seeing my project files annotated with a red mark if they fail to compile. 我从Eclipse中遗漏的一件事是,如果他们的项目文件无法编译,则会用红色标记注释。

I've tried enabling Preferences > Compiler > Use External Build > Make Project Automatically 我已经尝试启用“首选项”>“编译器”>“使用外部构建”>“自动生成项目”

This didn't show any errors (not even in the "Problems" panel) 这没有显示任何错误(甚至在“问题”面板中也没有)

I've tried the "Eclipse Mode" plugin. 我尝试过“Eclipse Mode”插件。 Also doesn't seem to have any effect. 似乎也没有任何影响。 "No compilation problems found" in the Problems panel despite obvious issues with the code (renamed method to xxx without refactoring usages) “问题”面板中“没有发现编译问题”,尽管代码存在明显问题(在没有重构用法的情况下将方法重命名为xxx)

Suggestions would be much appreciated 建议将不胜感激

I had exactly the same problem and I simply solved it by making sure IntelliJ is not in power save mode because code analysis is disabled in that mode. 我有完全相同的问题,我只是通过确保IntelliJ不处于省电模式解决它,因为在该模式下禁用了代码分析。

You can see if it's on or off thanks to the status bar on the bottom right of IntelliJ. 由于IntelliJ右下角的状态栏,您可以看到它是打开还是关闭。

I hope for you it's as simple as that. 我希望你这么简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM