question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Arrow shouldBeRight with param fails with NoSuchMethodError exception

See original GitHub issue

Kotest 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.

KotestAndroidBug.zip

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
maciejpigulskicommented, Nov 30, 2021

@ashishkujoy, @sksamuel yes it works perfectly with 1.2.0 version. Thanks for the support and keep up the good work!

0reactions
ashishkujoycommented, Nov 29, 2021

@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")

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found