Does compiler version 2.4.20 no longer support REP...
# education
p
Does compiler version 2.4.20 no longer support REPL? The documentation still has this option. (kotlinlang.org/docs/command-line.html#…)
Copy code
C:\ISEL\PG>kotlinc -version
info: kotlinc-jvm 2.4.20 (JRE 21.0.7+8-LTS-245)

C:\ISEL\PG>kotlinc -Xrepl
error: unable to run REPL, no scripting plugin loaded
kodee loading 1
k
Hi Pedro! Confirmed with the team: REPL is no longer supported. It only worked with the K1 compiler. The
-Xrepl
option is still present in 2.4.x by mistake and is expected to be removed in 2.5. For scripting,
-script
is still available.
Does losing REPL affect your workflow much?
p
In the first programming classes, I only use the REPL to evaluate expressions in Kotlin. Currently, I'm using version 2.4.10 of the compiler, where the REPL still works. My intention is to implement my own REPL using the org.jetbrains.kotlinkotlin scripting jsr2232.4.10 library. It's almost done.
👍 1
gratitude thank you 1