iamsteveholmes
07/04/2021, 8:28 PMe: org.jetbrains.kotlin.util.KotlinFrontEndException: Front-end Internal error: Failed to analyze declaration Intent
File being compiled: (9,5) in .../store/CharacterListStore.kt
The root cause java.lang.AssertionError was thrown at: org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope.getContributedClassifier(AbstractLazyMemberScope.kt:75)
...then....
Caused by: java.lang.AssertionError: Recursion detected on input: Intent under LockBasedStorageManager@33ccfc53 (TopDownAnalyzer for JVM)
...and later in the stacktrace I find:
at io.realm.compiler.IrUtilsKt.getHasRealmModelInterface(IrUtils.kt:90)
at io.realm.compiler.RealmModelSyntheticCompanionExtension.getSyntheticCompanionObjectNameIfNeeded(RealmModelSyntheticCompanionExtension.kt:45)
And here is the "offending" code:
interface CharacterListStore : Store<Intent, State, Nothing> {
sealed class Intent {
data class Delete(val id: Long) : Intent()
object Loaded : Intent()
}
data class State(
val characters: List<Character> = emptyList(),
val selectedCharacterId: Long? = null,
)
}
Arkadii Ivanov
07/04/2021, 8:56 PMiamsteveholmes
07/04/2021, 11:54 PMe: org.jetbrains.kotlin.util.KotlinFrontEndException: Front-end Internal error: Failed to analyze declaration Intent
But it's still just saying it doesn't like the class declaration as far as I understand which has no dependency on MVIKotlin.Arkadii Ivanov
07/09/2021, 8:28 PMiamsteveholmes
07/09/2021, 8:55 PMArkadii Ivanov
07/09/2021, 9:20 PMinterface CharacterListStore : Store<CharacterListStore.Intent> {
class Intent
}
interface Store<T : Any>
Intent
class outside of the CharacterListStore
.iamsteveholmes
07/12/2021, 8:42 PMArkadii Ivanov
07/12/2021, 8:43 PMiamsteveholmes
07/13/2021, 1:51 AMArkadii Ivanov
07/13/2021, 6:04 AMiamsteveholmes
07/16/2021, 8:00 PM