Bruno Fischetti
Bruno Fischetti

Reputation: 83

Scala REPL does not work on Ubuntu

When trying to use the scala interpreter in the terminal I am experiencing a weird issue, when I try to write, the cursor does not move, although after I press enter it "works".

This is what I should see:

Welcome to Scala 2.11.12 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_171).
Type in expressions for evaluation. Or try :help.

scala> val x = 1
x: Int = 1

This is what I actually see:

Welcome to Scala 2.11.12 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_171).
Type in expressions for evaluation. Or try :help.

scala> x: Int = 1

All in all, I cannot see what I write.

This only happens with this interpreter, every other program/functionality from the terminal seems to be working just fine.

It happened after I upgraded to 18.04 and replaced the JVM to 8.

Upvotes: 6

Views: 985

Answers (1)

Bruno Fischetti
Bruno Fischetti

Reputation: 83

After I upgraded to Scala 2.12.6 it started working again.

Welcome to Scala 2.12.6 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_171).
Type in expressions for evaluation. Or try :help.

scala> val nowISeeWhatIWrite = true
nowISeeWhatIWrite: Boolean = true

Still not sure why the older version stopped working.

Upvotes: 1

Related Questions