Compiling the fixtures plugin raises 13 feature warnings

Issue #126 resolved
Michael Eichberg repo owner created an issue

[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)

  1. Simon Leischnig

    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 content scalacOptions in ThisBuild ++= Seq("-feature") or whichever compiler flag you need. Having those options in build.sbt does not work.

  2. Simon Leischnig

    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

  3. Log in to comment