-
Notifications
You must be signed in to change notification settings - Fork 119
ClassNotFoundException when parsing in sbt test #52
Comments
This ones a toughy. I have think I have fixed most cases in |
yeah, this doesn't jerkson's fault and probably sbt-related problem(sorry for raising this kind of problem on this repo). It looks like setting class loader like #25 might help, but I'm not sure what happens if I switch the class loader for the long amount of time. |
I had similar problem with Maven. I got this exception only when the case classes were in a default package. Once I moved them to another package, it worked. |
In case it helps anyone, I had a similar problem trying to parse into a case class that was nested inside a scala object. Moving the case class up to the package level got around the problem I was having. |
When I run this spec with
sbt test
:I get
ClassNotFoundException
:But when I do the exactly same on
sbt console
like this:It just works! I don't know why this doesn't fail in
sbt console
and it does insbt test
. I've tried @softprops' solution described on #38 but still no luck. The version of Scala is 2.9.1 and sbt is 0.11.2. Any advice/solutions?The text was updated successfully, but these errors were encountered: