You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ZIO logging infrastructure introduced in #2292 to solve #1715 introduces an issue when existing SBT. Since during compilation, the zio-logging infrastructure is started, it is then finalized when SBT is existed. However, because the SBT finalization is done in a classpath in which ZIO libraries to not exist, ClassNotFound exceptions are thrown. It looks like this:
sbt:quill-example> exit
[info] shutting down sbt server
Exception in thread "Thread-22" java.lang.NoClassDefFoundError: zio/ZIO$Fail
at zio.ZIO$.haltWith(ZIO.scala:3457)
at zio.ZIO$.die(ZIO.scala:2647)
at zio.internal.FiberContext.evaluateNow(FiberContext.scala:659)
at zio.Runtime.unsafeRunWith(Runtime.scala:214)
at zio.Runtime.unsafeRunSync(Runtime.scala:83)
at zio.Runtime.unsafeRunSync$(Runtime.scala:80)
at zio.Runtime$$anon$3.unsafeRunSync(Runtime.scala:280)
at zio.Runtime.unsafeRun(Runtime.scala:58)
at zio.Runtime.unsafeRun$(Runtime.scala:57)
at zio.Runtime$$anon$3.unsafeRun(Runtime.scala:280)
at zio.Runtime$.$anonfun$unsafeFromLayer$4(Runtime.scala:308)
at zio.internal.PlatformSpecific$$anon$1.run(PlatformSpecific.scala:37)
Caused by: java.lang.ClassNotFoundException: zio.ZIO$Fail
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 12 more
This was identified in #2325.
A similar SBT issue was found with airframe here: sbt/sbt#4794
I am not sure what the long-term solution is but for now, we can mitigate by make the compile-time query-logging system as opt-in (this mitigation is #2332).
@getquill/maintainers
The text was updated successfully, but these errors were encountered:
Version: (e.g.
3.11.0
)Module: (e.g.
all
)Database: (e.g.
all
)ZIO logging infrastructure introduced in #2292 to solve #1715 introduces an issue when existing SBT. Since during compilation, the zio-logging infrastructure is started, it is then finalized when SBT is existed. However, because the SBT finalization is done in a classpath in which ZIO libraries to not exist, ClassNotFound exceptions are thrown. It looks like this:
This was identified in #2325.
A similar SBT issue was found with airframe here: sbt/sbt#4794
I am not sure what the long-term solution is but for now, we can mitigate by make the compile-time query-logging system as opt-in (this mitigation is #2332).
@getquill/maintainers
The text was updated successfully, but these errors were encountered: