Open Him188 opened 2 years ago
I have the same problem.
the MainComponentRegistrar
used org.jetbrains.kotlin.com.intellij.mock.MockProject
,but my ComponentRegistrar used com.intellij.mock.MockProject
If you have any good ideas how to abstract the dependency on kotlin-compiler-embeddable, let me know. I think publishing different artifacts for kotlin-compiler and kotlin-compiler-embeddable would not be feasible without some Gradle magic.
When the compiler plugin needs to be used by IDE plugin (e.g. to provide inspections via
CallChecker
), it should use kotlin-compiler instead of kotlin-compiler-embeddable. However, this caused incompatibility with the kotlin-compile-testing plugin.