sbt - How to overcome "there were 1 feature warning(s); re-run with -features for details" -
i new scala, scala-ide, , play 2.1 , working way through tutorials. today noted eclipse project emitted "todolist" tutorial shows in scala-ide warning don't understand , see go away.
this answer how more information 'feature' flag warning? suggests need add...
scalacoptions ++= seq(... "-feature")
...to sbt build definition file which, thought, project/build.scala play 2.1 project. trying put in there, however...
import sbt._ import keys._ import play.project._ object applicationbuild extends build { val appname = "todolist" val appversion = "1.0-snapshot" val appdependencies = seq( // add project dependencies here, jdbc, anorm ) val main = play.project(appname, appversion, appdependencies).settings( // add own project settings here scalacoptions ++= seq(... "-feature") ) }
..., results in compile error...
[info] loading project definition /users/bobk/work/todolist/project [error] /users/bobk/work/todolist/project/build.scala:18: illegal start of simple expression [error] scalacoptions ++= seq(... "-feature") [error] ^ [error] /users/bobk/work/todolist/project/build.scala:21: ')' expected '}' found. [error] } [error] ^ [error] 2 errors found [error] (compile:compile) compilation failed project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
if want set scalacoptions in sbt build definition in play 2.1 specify , how?
try without "...". dots represented omission in other answer.
Comments
Post a Comment