I'm trying to use `Schedule` & have imported `...
# arrow
j
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
could you check the versions of your dependencies in the classpath?
j
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
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
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.