Open Baccata opened 2 years ago
This is likely the exact same bug as : https://github.com/eed3si9n/expecty/issues/54
Hitting this too:
//> using scala "3.2.2"
//> using lib "software.amazon.smithy:smithy-model:1.30.0"
//> using lib "com.disneystreaming::weaver-cats:0.8.3"
import software.amazon.smithy.model.shapes.ShapeId
import weaver._
object MyTest extends FunSuite {
test("demo") {
val shapes = Set.empty[ShapeId]
expect(shapes.contains(ShapeId.from("foo#Foo")))
}
}
Exception in thread "io-compute-6" java.lang.NoClassDefFoundError: software/amazon/smithy/model/shapes/ShapeId$
at MyTest$.$init$$$anonfun$1(main.scala:11)
at scala.util.Try$.apply(Try.scala:210)
at weaver.Test$.pure(Test.scala:31)
at weaver.FunSuiteF.test$$anonfun$1(suites.scala:187)
at weaver.FunSuiteF.pureSpec$$anonfun$1(suites.scala:197)
at scala.collection.immutable.List.map(List.scala:246)
at scala.collection.immutable.List.map(List.scala:79)
at weaver.FunSuiteF.pureSpec(suites.scala:197)
at weaver.FunSuiteF.spec(suites.scala:201)
at weaver.EffectSuite.run(suites.scala:52)
at weaver.EffectSuite.run$(suites.scala:29)
at weaver.RunnableSuite.run(suites.scala:64)
at weaver.framework.RunnerCompat$IOTask.$anonfun$9$$anonfun$1$$anonfun$1(RunnerCompat.scala:221)
at cats.effect.IOFiber.succeeded(IOFiber.scala:1177)
at cats.effect.IOFiber.runLoop(IOFiber.scala:345)
at cats.effect.IOFiber.execR(IOFiber.scala:1324)
at cats.effect.IOFiber.run(IOFiber.scala:118)
at cats.effect.unsafe.WorkerThread.run(WorkerThread.scala:485)
Caused by: java.lang.ClassNotFoundException: software.amazon.smithy.model.shapes.ShapeId$
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 18 more
Repro (using scala-cli) :
Output :