https://kotlinlang.org logo
#eap
Title
# eap
m

mbonnin

03/02/2023, 6:07 PM
I'm having a weird issue where latest
-RC
(anything >=
1.8.20-RC-243
) show Java 19 warnings (and fail with
allWarningsAsErrors
). My JAVA_HOME is 19 but I'm supposed to compile with a 17 toolchain and target
1.8
(failed CI run). Does that ring a bell to anyone?
👀 1
🙏 1
Also is it ok to report
-RC-foo
issues here? Given they're certainly not as tested as the proper EAPs, is it still worth reporting this?
t

tapchicoma

03/02/2023, 6:31 PM
yes, please report
generally
-RC-foo
should be stable
m

mbonnin

03/02/2023, 6:32 PM
Want me to open a Youtrack or here is fine?
t

tapchicoma

03/02/2023, 6:32 PM
let me quickly check the issue
m

mbonnin

03/02/2023, 6:33 PM
git clone and
./gradlew compileKotlin
(using Java 19 as JAVA_HOME) should reproduce it
t

tapchicoma

03/02/2023, 6:34 PM
have you seen it with
1.8.20-Beta
? 🤔
m

mbonnin

03/02/2023, 6:36 PM
No,
1.8.20-Beta
is fine
I bisected to
RC-243
(
RC-237
is fine)
t

tapchicoma

03/02/2023, 6:39 PM
interesting, there were no changes in regard of toolchain handling 🤔
Compilation definitely receives correct JDK:
[KOTLIN] Kotlin compilation 'jdkHome' argument: /opt/openjdk-bin-17.0.6_p10
m

mbonnin

03/02/2023, 6:44 PM
Could it be a daemon thing?
I put
kotlin.compiler.execution.strategy=in-process
in that project but not sure if it changes anything
t

tapchicoma

03/02/2023, 6:46 PM
this actually runs without Kotlin daemon
with Kotlin daemon I also see such error
please create a new YT issue - seems to be compiler problem
t

tapchicoma

03/02/2023, 8:12 PM
FYI: found the cause - should be fixed before RC
m

mbonnin

03/02/2023, 8:12 PM
Nice, thanks!
7 Views