如何查看SBT 0.11中的所有警告?
当我使用 SBT 0.11 编译 Scala 项目时,我收到有关“未检查”警告的通知,但我看不到警告本身。
我看到的是
[warn] there were 8 unchecked warnings; re-run with -unchecked for details
[warn] one warning found
我到底要“重新运行 -unchecked”以及如何做到这一点? compile -unchecked
、compile unchecked
和 xsbt -unchecked
似乎都不起作用。
I get notified about "unchecked" warnings when I compile my Scala project with SBT 0.11, but I can't see the warnings themselves.
What I see is
[warn] there were 8 unchecked warnings; re-run with -unchecked for details
[warn] one warning found
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了答案 这里。
解决方案是添加
到项目的
build.sbt
文件中。它还可以将“-feature”作为选项并与 sbt 0.13 一起使用
I've found the answer here.
The solution is to add
to the project's
build.sbt
file.It can also take "-feature" as an option and works with sbt 0.13