5

I just updated my project to Scala 2.10.0 using SBT 0.12. But now, when running sbt, I get the following error:

java.lang.NoClassDefFoundError: scala/reflect/ManifestFactory$
    at X.build.Unidoc$.<init>(Unidoc.scala:8)
    at X.build.Unidoc$.<clinit>(Unidoc.scala)
    at X.build.ServicesBuild$.<init>(Build.scala:25)
    at X.build.ServicesBuild$.<clinit>(Build.scala)

It seems that the problem is on SettingKey:

8: val unidocDirectory = SettingKey[File]("unidoc-directory")

I heard that Scala 2.10 was doing reflects different than before and thought that that was the issue, yet the Akka project is doing the same exact thing and (I assume) they are doing fine.

https://github.com/akka/akka/blob/master/project/Unidoc.scala (my Unidoc.scala is pretty much a copy&paste of theirs).

Does anyone know what is happening? How can it not find a class in scala itself?

Thanks!

Nacht
  • 10,488
  • 8
  • 31
  • 39
  • 1
    I wrote sbt-unidoc based on their implementation if you want to give it a shot. – Eugene Yokota Aug 23 '13 at 23:48
  • 1
    Need a little more information to begin to help. Can we see your Unidoc? It may be pretty much a copy paste, but you could be running into unexpected issues based on that. Also, could you clean out the project/target and project/project/target directories and try again? – jsuereth Nov 04 '13 at 19:42
  • Given a lack of details and activity since 2012, I'd vote to close this issue. – Eugene Yokota Dec 12 '18 at 04:23

0 Answers0