7mind / izumi

Productivity-oriented collection of lightweight fancy stuff for Scala toolchain
https://izumi.7mind.io
BSD 2-Clause "Simplified" License
615 stars 66 forks source link

distage-testkit does not show ZIO traces on recent JVMs #1580

Closed neko-kai closed 1 year ago

neko-kai commented 3 years ago

We use zio.Cause.squashTraceWith to attach ZIO traces to exceptions in tests, this starts failing since at least JVM 16 because of forbidden illegal reflective access:

Screenshot 2021-09-03 at 22 19 31

Need to find another way to propagate info, e.g. go back to printing entire Cause, or attach to getMessage instead of Throwable#cause

neko-kai commented 1 year ago

Fixed since upgrade to ZIO 2