Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scala console won't work, IntelliJ

I did all the preference work, installed scala, everything works except this, i just can not test a scala class in the console window.

In tutorials I see they just type in something behind the scala> but it just won't work, i can type some random stuff there below which doesn't do anything when I press enter.

Can you guys help me out? I would be very thankful. Cheers

like image 573
BogdanC Avatar asked Feb 03 '13 21:02

BogdanC


People also ask

How do I enable Scala in IntelliJ?

To install Scala plugin, press Ctrl+Alt+S , open the Plugins page, browse repositories to locate the Scala plugin, click Install and restart IntelliJ IDEA.

How do I start Scala console?

We can start Scala REPL by typing scala command in console/terminal.

Why Scala class is not showing in IntelliJ?

On the Project pane on the left, right-click src and select New => Scala class. If you don't see Scala class, right-click on HelloWorld and click on Add Framework Support…, select Scala and proceed. If you see Error: library is not specified, you can either click download button, or select the library path manually.


1 Answers

Once you type on the Scala console in IntelliJ Community Edition. Hit Ctrl+Enter instead of enter to execute.

took me a while to get around it :)

IntelliJ & Working with Scala Worksheet

like image 105
user1040804 Avatar answered Sep 18 '22 17:09

user1040804