redhat-developer / intellij-kubernetes

IntelliJ Kubernetes plugin
https://plugins.jetbrains.com/plugin/15921-kubernetes-by-red-hat
Eclipse Public License 2.0
20 stars 20 forks source link

doesn't compile with IC-2021.2 #244

Closed adietish closed 3 years ago

adietish commented 3 years ago
> Task :compileKotlin
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
w: Some JAR files in the classpath have the Kotlin Runtime library bundled into them. This may cause difficult to debug problems if there's a different version of the Kotlin Runtime library in the classpath. Consider removing these libraries from the classpath
w: /home/runner/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2021.2/b0727ceddea2b62b16825db9308e14a470198e7f/ideaIC-2021.2/lib/kotlin-stdlib-jdk8.jar: Library has Kotlin runtime bundled into it
e: /home/runner/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2021.2/b0727ceddea2b62b16825db9308e14a470198e7f/ideaIC-2021.2/lib/kotlin-stdlib-jdk8.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
e: /home/runner/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2021.2/b0727ceddea2b62b16825db9308e14a470198e7f/ideaIC-2021.2/lib/kotlin-stdlib-jdk8.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
e: /home/runner/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2021.2/b0727ceddea2b62b16825db9308e14a470198e7f/ideaIC-2021.2/lib/kotlin-stdlib-jdk8.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
adietish commented 3 years ago

xquery-intellij-plugin is facing the same problem: https://intellij-support.jetbrains.com/hc/en-us/community/posts/4402698454802-Library-has-Kotlin-runtime-bundled-into-it No answer to his post so far.

adietish commented 3 years ago

sidenote: xquery-intellij-plugin is building different versions of the plugin for the different IC versions and using kotlin 1.4.32 for the newer ICs: https://github.com/rhdunn/xquery-intellij-plugin/blame/master/build.gradle#L39

    if (ext.idea_since_build >= 203) {
        ext.kotlin_version = "1.4.32"
        ext.kotlin_stdlib = "kotlin-stdlib"
        ext.java_version = "11"
    } else {
        ext.kotlin_version = "1.3.72"
        ext.kotlin_stdlib = "kotlin-stdlib-jdk8"
        ext.java_version = "1.8"
    }
adietish commented 3 years ago

Here's another kotlin based plugin PR for compat to 2021.2: https://github.com/VirtusLab/git-machete-intellij-plugin/pull/745/files