Got compilation warning (if ignore then runtime cr...
# compose
p
Got compilation warning (if ignore then runtime crash as mentioned in message): Detected a @Composable function that overrides an open function compiled with older compiler that is known to crash at runtime. Consider recompiling the dependency with a newer compiler version (>= 2.1.20) to get correct behavior But I'm using Kotlin compiler and Compose compiler both of version 2.2.0-Beta1 (trying also 2.1.20 but with the same issue) Was trying clean project. What should i check?
k
What’s the dependency
p
Copy code
org.jetbrains.kotlin:kotlin-gradle-plugin:2.2.0-Beta1
org.jetbrains.kotlin:compose-compiler-gradle-plugin:2.2.0-Beta1
org.jetbrains.compose:compose-gradle-plugin:1.8.0-beta02
k
No, your project dependency that it’s referring to, the one that hasn’t been upgraded yet to the latest kotlin version
p
I have multi project Gradle app. Each project is applying same version plugins. Or you mean some external dependencies?
s
Yep, the method you are overriding is compiled with an older version of compiler The dependency that is mentioned in the error message is the library that contains that method
p
@shikasd hello! Please, share the link to compiler plugin source where this check is implemented. I can't figure out why it happening if interface and class are compiled with the same version of compiler but exist in different projects. Is there any way to print compiler version while compiling?
s
The implementation is not trivial really, Compose emits metadata with 2.1.20 and checks if metadata is present when compiling against it
The metadata is only emitted with K2, but you should not be able to compile this function with K1 anyways
p
Checked project - it has only 2.2.0-beta1 dependencies. Can't understand why this warning emitted. Wrote small reproducer for it: https://github.com/hondogo/CustomKotlinCompilerPluginFailureRepro/tree/compose-version-warning
s
Please file a bug with this repro, so it won't get lost
p
@shikasd, hello! What bug tracker should i use?
s
Google tracker for Compose compiler