rules_kotlin icon indicating copy to clipboard operation
rules_kotlin copied to clipboard

Repo case for class conflicts with compiler and compiler-embeddable

Open mauriciogg opened this issue 4 years ago • 1 comments

running blaze build //repro/src/main/java/com/repro/lib:lib will produce the following exception:

java.lang.NoSuchMethodError: 'org.jetbrains.kotlin.com.intellij.psi.PsiElement[] org.jetbrains.kotlin.psi.KtClassOrObject.getChildren()'

NOTE: anvil version is updated in WORKSPACE file. previous versions dont have this issue since they are selfcontained. Starting with this version anvil was split into 3 jars (compiler, compiler-utils and compiler-api). The conflict happens in compiler-utils not compiler.

A naive fix is implemented in this commit https://github.com/mauriciogg/rules_kotlin/commit/bdfcaa510ff7b15576322aba04088b91162ef189 it simply deshades all transitive deps

mauriciogg avatar Nov 20 '21 04:11 mauriciogg

Thanks for doing this! Looking into solutions.

restingbull avatar Nov 22 '21 21:11 restingbull