Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoClassDefFoundError: arrow/core/NonFatalOrThrowKt #3490

Open
JesusMcCloud opened this issue Sep 20, 2024 · 0 comments
Open

java.lang.NoClassDefFoundError: arrow/core/NonFatalOrThrowKt #3490

JesusMcCloud opened this issue Sep 20, 2024 · 0 comments

Comments

@JesusMcCloud
Copy link

We're having a really weird issue, we don't even know how to debug.

Our KmmResult library uses Arrow for its nonFatalOrThrow function and we use it in all of our KMP projects, so we can export XCode frameworks whose APIs still make sense.

Most of the time, but not always, when running tests for some projects depending on KmmResult (and thus, transitively depending on arrow-core) from IDEA (not the CLI), we encounter java.lang.NoClassDefFoundError: arrow/core/NonFatalOrThrowKt.

As a consequence, testcases fail all over the place and debugging becomes impossible. A nasty workaround is to define the nonFatalOrThrow function in our test sources to shadow the call to arrow, but we don't want that for obvious reasons.

This behaviour is independent of Kotlin version. We are using arrow-core 1.2.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant