Hi, after updating to Arrow 0.13.2 i am getting th...
# arrow
j
Hi, after updating to Arrow 0.13.2 i am getting this error using 
shouldBeLeft
 of kotest 4.4.3:
Copy code
arrow.core.Either$Left.getA()Ljava/lang/Object
s
Okay, so kotest Arrow's dependency needs to be updated to
0.13.2
which is the point from which we'll remain binary compatible in the future. So such binary missmatches will no longer occur. You'll have to rely on
shouldBeInstanceOf<Either.Left>()
for now.
j
Ok, thank you
m
With kotest
4.5.0
they decided to put extensions like e.g. the arrow-assertions into own versioning (see https://kotest.io/docs/assertions/arrow.html for the dependency you have to include for this). At least the latest versions of the arrow-assertions
1.0.2
worked with arrow
0.13.2
for me.
👀 1
But you have to update to at least kotest
4.5.0
to be able to use this I think.
s
No it'll work with any version of kotest
j
Having this problem now:
Copy code
No matching variant of io.kotest.extensions:kotest-assertions-arrow:1.0.2 was found. The consumer was configured to find an API of a library compatible with Java 8, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' but:
          - Variant 'apiElements' capability io.kotest.extensions:kotest-assertions-arrow:1.0.2 declares an API of a library, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
Not sure if report it
s
This is just a standard jvm project?
j
Yes
s
Usually that gradle error is MPP related