Arrow shouldBeRight with param fails with NoSuchMethodError exception
See original GitHub issueKotest version used: 4.6.3 and arrow assertions 1.1.1
When trying to call "some string".right().shouldBeRight("some string")
I get
java.lang.NoSuchMethodError: 'java.lang.Throwable io.kotest.assertions.eq.EqKt.eq$default(java.lang.Object, java.lang.Object, boolean, int, java.lang.Object)'
at io.kotest.assertions.arrow.UtilsKt.shouldBe(Utils.kt:19)
at io.kotest.assertions.arrow.core.EitherKt.shouldBeRight(Either.kt:42)
at com.maciej.kotestandroidbug.ExampleUnitTest.shouldBeRightWithParam(ExampleUnitTest.kt:23)
Running "some string".right().shouldBeRight()
works fine.
Attached sample Android project that reproduces just that. To test it just launch ./gradlew test --info
to see the error.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
NoSuchMethodError when using @ExperimentalTime ...
Task :app:run FAILED Exception in thread "main" java.lang.NoSuchMethodError: 'arrow.fx.coroutines.Schedule arrow.fx.coroutines.
Read more >Missing parameters in PlasmaOutOfMemoryException.java
When catch PlasmaOutOfMemoryException It shows Exception in thread "main" java.lang.NoSuchMethodError: org.apache.arrow.plasma.exceptions.
Read more >How do I fix a NoSuchMethodError? - java - Stack Overflow
I had the same error: Exception in thread "main" java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonGenerator.
Read more >Either - Arrow-KT
To communicate these errors, it has become common practice to throw exceptions; however, exceptions are not tracked in any way, shape, or form...
Read more >3 Steps to Fix NoSuchMethodErrors and ...
We find this information in the error message of the NoSuchMethodError : Exception in thread "main" java.lang.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ashishkujoy, @sksamuel yes it works perfectly with 1.2.0 version. Thanks for the support and keep up the good work!
@maciejpigulski Please update
kotest-assertions-arrow
to 1.2.0 this release fixes the above issue.testImplementation("io.kotest.extensions:kotest-assertions-arrow:1.2.0")