问题描述:

Seeing this in my console after running play -> run:

[warn] there were 1 feature warning(s); re-run with -feature for details

[warn] one warning found

Where is this enabled? Would like to see what the warning is, but running play -feature or run -feature doesn't seem to do the trick.

I'm running Play Framework 2.2.0-scala

网友答案:

-feature is a compiler option - it must be passed to scalac.

To pass arguments to scalac in play or in any sbt build for that mattern you use the scalacOptions setting.

So add this in your build.sbt:

scalacOptions += "-feature"
相关阅读:
Top