Cannot quit REPL and weird result using print

Hi,
I start learning kotlin using REPL on windows 10.
Kotlin installed with android studio

Android Studio 4.1.1
Build #AI-201.8743.12.41.6953283, built on November 5, 2020
Runtime version: 1.8.0_242-release-1644-b01 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1237M
Cores: 12
Registry: ide.new.welcome.screen.force=true, external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin, com.knziha.vectorpathtweaker

In windows console I launch kotlinc-jvm
kotlinc-jvm

juin 21, 2022 5:55:39 PM org.jline.utils.Log logr
AVERTISSEMENT: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
Welcome to Kotlin version 1.5.30-release-408 (JRE 1.8.0_333-b02)
Type :help for help, :quit for quit
>>> :quit

And it does not quit I must use CTRl+C

Now if I run again kotlinc and I insert a command it works

kotlinc-jvm
juin 21, 2022 5:57:38 PM org.jline.utils.Log logr
AVERTISSEMENT: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
Welcome to Kotlin version 1.5.30-release-408 (JRE 1.8.0_333-b02)
Type :help for help, :quit for quit
>>> var a = 3.2
>>> print(a)
print(a)3.2>>> :quit
c:>

I don’t understand why I have git print(a).3.2 as a result of print.
What is wrong in my command or in my kotlin installation?

REPL is being deprecated. Use GitHub - Kotlin/kotlin-interactive-shell: Kotlin Language Interactive Shell instead.
image

1 Like

thanks

ki-shell 0.4.5/1.6.10
0.4.5 is ki-shell version and 1.6.10 is it kotlin version?

Yes.