如何查看 SBT 0.11 中的所有警告? [英] How to see all the warnings in SBT 0.11?
本文介绍了如何查看 SBT 0.11 中的所有警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用 SBT 0.11 编译我的 Scala 项目时,我收到有关未检查"警告的通知,但我看不到警告本身.
I get notified about "unchecked" warnings when I compile my Scala project with SBT 0.11, but I can't see the warnings themselves.
我看到的是
[warn] there were 8 unchecked warnings; re-run with -unchecked for details
[warn] one warning found
我到底要使用 -unchecked 重新运行"是什么以及如何做到这一点?compile -unchecked
、compile unchecked
和 xsbt -unchecked
似乎都不起作用.
What exactly am I to "re-run with -unchecked" and how to do that? Neither compile -unchecked
, nor compile unchecked
, nor xsbt -unchecked
seem to work.
推荐答案
我找到了答案 此处.
解决办法是添加
scalacOptions ++= Seq("-unchecked", "-deprecation")
到项目的 build.sbt
文件.
它还可以将-feature"作为选项并与 sbt 0.13 一起使用
It can also take "-feature" as an option and works with sbt 0.13
这篇关于如何查看 SBT 0.11 中的所有警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文