Scala警告,IntelliJ和编译器标志 [英] Scala warnings, IntelliJ and compiler flags

查看:658
本文介绍了Scala警告,IntelliJ和编译器标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在给IntelliJ Scala插件一个旋转,有一件事让我烦恼不已。编译时我收到3个警告。

I'm currently giving the IntelliJ Scala plugin a spin and one thing is bugging me a wee-bit. I get 3 warnings when compiling.

Warning: scala: Recompiling 4 files
Warning: scala:
Warning: scala: there were 1 deprecation warnings; re-run with -deprecation for details

为什么它会向我发出警告文件正在重新编译?这可以关掉吗?最后,空警告是什么? :D

Why does it give me warnings that files are being recompiled? Can that be turned off? And finally, what's with the empty warning? :D

推荐答案

在IntelliJ 14中:

In IntelliJ 14:


  1. 提供偏好 Intellij IDEA>首选项 cmd +,

  2. 查找 Scala编译器。或者,它在构建,执行,部署>下;编译器> Scala编译器

  3. 选中折旧警告选项

  1. Bring up preferences Intellij IDEA > Preferences or cmd + ,
  2. Look up Scala Compiler. Alternatively, it's under Build, Execution, Deployment > Compiler > Scala Compiler
  3. Check the option for Deprecation warnings

重建你的项目!

这篇关于Scala警告,IntelliJ和编译器标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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