https://kotlinlang.org logo
Title
g

Grigory Panko

08/02/2022, 9:38 PM
Hey, I'm trying out K2 Compiler in my project which also uses kotlin-lombok plugin. As i can see in changelog, K2 supports kotlin-lombok plugin since 1.7.20-Beta version. I updated Kotlin version for both Kotlin and kotlin-lombok plugins, but K2 still shows error if i try to build my project:
There are some plugins incompatible with K2 compiler:
  org.jetbrains.kotlin.lombok.LombokComponentRegistrar
Please remove -Xuse-k2
Note that this error is different from error in 1.7.10:
e: Compiler plugins are enabled with K2 compiler.
 K2 does not support plugins yet, so please remove -Xuse-k2 flag
Did I forget to update anything?
d

dmitriy.novozhilov

08/03/2022, 6:48 AM
There is a problem with
lombok
and
sam-with-receiver
plugins: it was forgotten to push tiny commit which enables K2 support for them into
1.7.20
branch before beta release So to try it out you need to wait till RC Sorry for inconvenience
c

christophsturm

08/07/2022, 11:15 AM
it would be great if the beta announcement was edited with at information that could keep people from wasting their time trying it.
d

dmitriy.novozhilov

08/08/2022, 7:59 PM
Done