-
Notifications
You must be signed in to change notification settings - Fork 35
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
Can't update dependency kotlinxSerialization to 1.7.2 #478
Comments
Thanks. I'll look into this. |
@bingningO Could you share the stacktrace as I'm not sure what problem you saw?🙇 |
I couldn't reproduce the issue. There may be a condition that causes this issue to occur. 👀 |
1.7.2 was a broken release, use 1.7.3: https://github.com/Kotlin/kotlinx.serialization/releases/tag/v1.7.3 |
We do see a possibly slightly related issue
|
I think the problem is that roborazzi is attempting to use the new Uuid type in kotlin 2.0.20, but gradle forces kotlin 1.9 still I see the gradle plugin depends on/uses roborazzi-core here: https://github.com/takahirom/roborazzi/blob/main/include-build/roborazzi-gradle-plugin/build.gradle#L17 |
forcing to 1.7.3 appears to resolve the issue. Might help users if there was a patch release with the fixed transitive version |
Thank you. I still don't understand the problem.
What I'm not sure about:
|
Is the BuildScript dependency something like this?
Anyway, I would like to have a reproducible project. |
I was able to reproduce the issue by adding 1.7.2 buildscript dependency but I was able to fix it by updating it to 1.7.3. buildscript {
dependencies {
classpath(libs.kotlinSerializationJson) // 1.7.2
}
} |
Roborazzi can update kotlinx serialization to 1.7.3, but it forces users to update to Kotlin 2.x or higher. |
I don't think it imposes it any more than before tbf. The problem before was something in clinit in kotlinx-serialization that just happened to burn roborazzi since it uses it |
I would like to know if there are patterns where users can't fix the problem even after updating Kotlinx Serialization to version 1.7.3. If it is just a 1.7.2 problem, I don't think the severity of the issue is that high. |
Was able to just bump our consuming project up to 1.7.3 and the issue went away. Might not always be a fix that is available for everyone depending on the overall classpath layout of the build though? edit: may have spoke too soon. still seeing it in a few sub projects. |
@trevjonez |
Even if we update Kotlinx.Serialization to version 1.7.3 in the Roborazzi Gradle Plugin, the Kotlin runtime version might not change. I believe this is why the issue has occurred: the Kotlin runtime was not updated when we upgraded Kotlinx.Serialization to version 1.7.2 or 1.7.3, and the Kotlin runtime doesn't include the |
The basic policy is not to update to the latest version of libraries in Roborazzi, so as not to force users to update. Therefore, if it is not necessary, it would be preferable not to do so. I would like to check if version 1.7.3 works or not. |
sorry for late response... I tried this it worked 🙇🏼 |
hello we're trying to update
org.jetbrains.kotlinx:kotlinx-serialization-json
from 1.7.1 to 1.7.2, butgot error like:
p.s.
according to the changelog , seems is this change caused it :
The text was updated successfully, but these errors were encountered: