mtkopone / scct

Scala Code Coverage Tool
http://mtkopone.github.com/scct/
Apache License 2.0
129 stars 39 forks source link

ScctPlugin class not found for scala 2.9.2, sbt 0.12 #46

Open jastakhova opened 11 years ago

jastakhova commented 11 years ago

I tried to start scct-sbt with scala 2.9.2, sbt 0.12. I put

resolvers += Classpaths.typesafeResolver
resolvers += "scct-github-repository" at "http://mtkopone.github.com/scct/maven-repo"
addSbtPlugin("reaktor" % "sbt-scct" % "0.2-SNAPSHOT")

Resolving was ok - sbt downloaded both scct and scct-sbt and they are added to classpath:

[debug]     /Users/grrrl/projects/<...>/project/target/scala-2.9.2/sbt-0.12/classes:/Users/grrrl/.ivy2/cache/scala_2.9.2/sbt_0.12/reaktor/sbt-scct/jars/sbt-scct-0.2-SNAPSHOT.jar:/Users/grrrl/.ivy2/cache/reaktor/scct_2.9.2/jars/scct_2.9.2-0.2-SNAPSHOT.jar:

But loading Build.scala fails with "not found" error for class ScctPlugin:

[error] /Users/grrrl/projects/<...>/project/NavyBuild.scala:35: not found: value ScctPlugin
[error]     .settings (ScctPlugin.instrumentSettings: _*)
[error]                ^
bdarfler commented 11 years ago

Seeing the same issue for me as well.

namiazad commented 11 years ago

I had the same issue. My Build.scala file has package statement. I removed the package and it is solved!