https://kotlinlang.org logo
Title
j

John O'Reilly

04/15/2023, 8:54 AM
Should the latest version of realm-kotlin work with Kotlin 1.8.20?
getting following error with realm kotlin 1.7.0 but could also be some other dependency conflict I have
org.jetbrains.kotlin.backend.common.CompilationException: Back-end: Please report this problem <https://kotl.in/issue>
/Users/joreilly/dev/github/FantasyPremierLeague/common/src/commonMain/kotlin/dev/johnoreilly/common/data/repository/FantasyPremierLeagueRepository.kt:-1:-1
Details: Internal error in file lowering: java.lang.NoSuchMethodError: 'org.jetbrains.kotlin.ir.expressions.impl.IrGetFieldImpl org.jetbrains.kotlin.ir.builders.ExpressionHelpersKt.irGetField(org.jetbrains.kotlin.ir.builders.IrBuilderWithScope, org.jetbrains.kotlin.ir.expressions.IrExpression, org.jetbrains.kotlin.ir.declarations.IrField)'
	at io.realm.kotlin.compiler.RealmModelSyntheticPropertiesGeneration$addVariableProperty$3.invoke(RealmModelSyntheticPropertiesGeneration.kt:731)
	at io.realm.kotlin.compiler.RealmModelSyntheticPropertiesGeneration$addVariableProperty$3.invoke(RealmModelSyntheticPropertiesGeneration.kt:728)
	at io.realm.kotlin.compiler.IrUtilsKt.blockBody(IrUtils.kt:119)
c

Claus Rørbech

04/17/2023, 8:21 AM
Unfortunately not. We are already tracking this in https://github.com/realm/realm-kotlin/issues/1346 ... and are investigating a workaround for the changed APIs
@John O'Reilly The is fixed in
1.7.1
j

John O'Reilly

04/23/2023, 1:45 PM
these updated now btw to use that version https://twitter.com/joreilly/status/1648778999831592962?s=20