testcontainers-for-zio icon indicating copy to clipboard operation
testcontainers-for-zio copied to clipboard

Update ZIO 2 and zio prelude version

Open ipetkovic opened this issue 1 year ago • 2 comments

I am trying to use this library in my project that depends on zio-http 0.0.5, which depends on zio-prelude 1.0.0-RC16. It seems to be binary incompatible with zio-prelude 1.0.0-RC15 so updating zio2xVersion and zioPreludeVersion to latest versions. Can you please have a look at it?

ipetkovic avatar May 24 '23 07:05 ipetkovic

Not so easy it seems. Not compiling for 2.12. Seems that implicits are not found for objects extending Subtype, like:

[error] /Users/ivo/dev/misc/testcontainers-for-zio/modules/core/src/main/scala/io/github/scottweaver/zillen/Command.scala:64:48: could not find implicit value for evidence parameter of type zio.json.JsonDecoder[io.github.scottweaver.zillen.models.DockerErrorMessage]
[error]             .decodeResponse[DockerErrorMessage](body, self)

Need to check this...

ipetkovic avatar May 24 '23 10:05 ipetkovic

Not able to compile existing code with updated zio-prelude. To me this looks like bug in Scala 2.12 compiler. I had to import lot of implicits explicitly. You can have a look at: https://discord.com/channels/629491597070827530/738827844049961010/1113025288008388720

Can you please have a look?

ipetkovic avatar Jun 10 '23 11:06 ipetkovic