1.21 Architectury Neoforge - ClassNotFoundException: kotlin.jvm.internal.Intrinsics
fzzyhmstrs opened this issue ยท 0 comments
Referencing fzzyhmstrs/fconfig#102.
KFF runs fine in dev environment (runClient etc) on it's own, but when another kotlin mod is added (Fzzy Config, which wants it as a runtime dep), it crashes with the linked error (also linked below)
Many combinations of excludeing various bits and bobs have been attempted without success. There is a comment in KFF source that mentions // ? to avoid classloading kotlin Intrinsics. That appears to not be working, or there is another layer of issue interfering with that solution. Or it works for KFF in the version method, but when actually trying to load another mod using loadMod, the issue is encountered again.
I'm not entirely sure what the fix is in the "to avoid classloading" bit, but my guess is loading via javaClass instead of .class::java? In that case the issue may be related to the KotlinModContainer, which does still use ::class.java