-
Notifications
You must be signed in to change notification settings - Fork 59
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
Realm -SNAPSHOT seems incompatible with Kotlin 1.7.2 #1024
Comments
Hi @sebleclerc Yes, #1002 was indeed supposed to fix this, but perhaps there is a corner case we are somehow not accounting for. Do you know what model class this is failing for? And could you post it? That could give some hints to what might be wrong. |
I did saw a list of models and pretty much all my classes where in there. Event my persistence service class. This is one of them:
|
Hi there, I still couldn't solve #1002 in my multiplatform project. We're developing using Kotiln 1.7.10 at the moment, so I didn't spend much time on this but I thought it was some issue with my grade cache not replacing realm SNAPSHOT with a more recent version. If @sebleclerc is having the same issue probably there's more going on. This is my stack trace:
This is class NMException: RealmObject {
@PrimaryKey
var id: Int = 0
var message: String = ""
} |
@paolorotolo I'm having this error with Kotlin 1.7.20-RC When I get back to 1.7.10, I don't have any error. Maybe something changed between 1.7.20-BETA and 1.7.20-RC 🤔 |
Yeah, same for me. This happens both with Kotlin 1.7.20 Beta and RC. Project compiles fine with 1.7.10. |
Those model classes look very simple and valid so looks like we still have some digging to do regarding this. Sorry for the trouble. |
I can reproduce this issue with realm/realm-kotlin-samples#29 by bumping the Multiplatform plugin to "1.7.20" |
The weird thing is that our |
A small update. After the announcement of Kotlin 1.7.20 and Kotlin Multiplatform Beta, we made the decision to migrate the library to the new memory model. This has the following implications:
Feedback would be much appreciated if anybody can try this release. We will also be doing our own testing and then a full |
Hey @astatio, we're using Realm |
My bad. I misread. This might sound a bit off-topic, but there's no info on how to use the the SNAPSHOT version of the plugin if i were to use Kotlin instead of Groovy - the latter is an odd choice for KMM. Perhaps its extremely simple but i had to go through some documentation from Gradle's website to try to make it work and still failed to find the plugin.
|
Looks like in order to solve this issue i have to add this to settings.gradle.kts
I believe this should be in the README. I'll make a PR regarding this |
Hi, we just released |
Should fix this problem: realm/realm-kotlin#1024 (comment)
Version 1.4.0 same problem with simple class. Kotlin version 1.7.10, once change to 1.7.20 there is an issue with Compose: Any workaround? Class and trace below: ` ` |
I will reply to myself, sorry. Asked too early. The following versions helped: |
Hi!
I came across this issue: #1002
I seems to have a similar error but WITH the fix in place. I did update my project with Kotlin 1.7.20-RC and my realm module fails with
Now I did setup my project to use the realm 1.2.0-SNAPSHOT and I'm pretty sure it's used because the error originate from
IrUtils.kt:323
which if I understand correctly is what was introduced to fix issue 1002.Is this another problem or something else?
Thanks in advance
The text was updated successfully, but these errors were encountered: