[英]How to run Play with -feature?
这是我运行Play的方式:
activator ~run
我收到以下警告:
[warn] there were 27 feature warnings; re-run with -feature for details
但是,如果使用此命令运行“播放”,则看不到警告详细信息:
activator ~run -feature
如何使用-feature运行Play?
您可以尝试: activator -feature ~run
但这将在0.14版的sbt中弃用。
您可以设置此选项以用于每次运行。 将此添加到您的激活器的配置文件: ~/.activator/activatorconfig.txt
UPD。 activatorconfig
与sbtconfig.txt
类似,应包含要传递给sbt / activator的所有系统道具。
activatorconfig
应该放在以下文件夹之一中:
set "CFG_FILE_HOME=%UserProfile%\.activator\activatorconfig.txt"
set "CFG_FILE_VERSION=%UserProfile%\.activator\%APP_VERSION%\activatorconfig.txt"
检查您的activator
启动脚本以获取更多详细信息。
加
scalacOptions ++= Seq("-feature")
在您的build.sbt
文件中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.