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
kotlin 1.4.30: PowerAssertComponentRegistrar is not compatible with this version of compiler #38
Comments
Something very strange is happening. The exception is reporting that Do you have any more detail about this project you can share? The sample directory of this project defines the same plugin versions and isn't reporting any issues. |
Could it be Gradle version with embedded Kotlin discrepancy? |
I sort of expect the problem to be the opposite. Kotlin/JVM and Kotlin/JS use the embedded compiler and Kotlin/Native uses the non-embedded compiler which is why there are 2 different artifacts. It appears here the non-embedded compiler is being used with a plugin compiled against the embedded compiler. |
I looked into the issue and it seems to be related IntelliJ 🙄 https://github.com/dkandalov/power-assert-fail IntelliJ IDEA 2021.1 Beta (Ultimate Edition) or IntelliJ IDEA 2020.3.3 (Ultimate Edition) |
Well, the error is correct. You're compiling against the embedded compiler that has this difference, whereas some environments need the regular compiler, for example, anything that's not Gradle. I fixed this by simply changing the dependency to the regular compiler and fixing the import line. Now it works. Maybe you could load the right class using reflection so the JAR is usable with either compiler? As it seems, this is the only namespace difference that matters, for some reason. |
produces this on compilation
The text was updated successfully, but these errors were encountered: