Compiling the fixtures plugin raises 13 feature warnings
[info] Compiling 3 Scala sources to /Users/Michael/Code/OPAL/DEVELOPING_OPAL/plugins/sbt-java-fixture-compiler/target/scala-2.10/sbt-0.13/classes... [info] Compiling 3 Scala sources to /Users/Michael/Code/OPAL/project/target/scala-2.10/sbt-0.13/classes... [warn] there were 13 feature warning(s); re-run with -feature for details
Comments (4)
-
-
Okay, 1st order of business, for anyone wondering how to "re-run with -feature" if that warning is thrown in the "reload" / "build project" compilation part, add a
project/build.sbt
file with contentscalacOptions in ThisBuild ++= Seq("-feature")
or whichever compiler flag you need. Having those options inbuild.sbt
does not work. -
Issue was with the code in Dependencies.scala. It was all this kind:
[warn] /home/simon/gitShared/opal_hiwi/project/Dependencies.scala:63: reflective access of structural type member value scalatest should be enabled [warn] by making the implicit value scala.language.reflectiveCalls visible. [warn] val scalatest = "org.scalatest" %% "scalatest" % version.scalatest % "test,it" [warn] ^
I replaced the anonymous lazy vals with objects, everything solved. PR: https://bitbucket.org/delors/opal/pull-requests/448
-
- changed status to resolved
solved by linked PR
- Log in to comment
on it...