运行play -> run
后在我的控制台中看到此内容:
[warn] there were 1 feature warning(s); re-run with -feature for details
[warn] one warning found
这在哪里启用?希望看到警告是什么,但是运行play -feature
或run -feature
似乎无法解决问题。
我正在运行Play Framework 2.2.0-scala
答案 0 :(得分:12)
-feature
是一个编译器选项 - 必须将它传递给scalac。
要将参数传递给Play中的scalac
或该mattern的任何sbt版本,请使用scalacOptions
设置。
请在build.sbt
:
scalacOptions += "-feature"