https://kotlinlang.org logo
#arrow
Title
# arrow
j

jem

09/21/2023, 6:03 AM
I'm trying to use
Schedule
& have imported
io.arrow-kt:arrow-core
and
io.arrow-kt:arrow-resilience
. At runtime it fails with
Copy code
java.lang.NoClassDefFoundError: arrow/Kind
	at arrow.resilience.Schedule.repeatOrElseEither-impl(Schedule.kt:64)
weird because that line is
Copy code
var state: Option<Output> = None
on v1.2.1
a

Alejandro Serrano.Mena

09/21/2023, 7:25 AM
could you check the versions of your dependencies in the classpath?
j

jem

09/21/2023, 9:07 AM
An unrelated module has a transitive dependency on v0.10.5. It shouldn't be relevant, but I know better than to ignore magic when gradle is involved.
s

simon.vergauwen

09/21/2023, 9:09 AM
Which dependency is that @jem? 😄 I'm really curious if it's a public library, if yes we can help them update to the new version ☺️ Otherwise, you can try looking into strictly version from Gradle. https://docs.gradle.org/current/userguide/single_versions.html
j

jem

09/21/2023, 9:15 AM
It's a service that contains many dozens of modules, each their own load testing harness. I suspect the isolation between these modules isn't good & think that forcing older versions to latest will break that other module. It lives in the testing world and isn't prod code, so rather than shave this yak I'm just going to chalk it up to bad luck and replace Schedule with a recursive call.
4 Views