I'm struggling with running Scala Hello World project using IntelliJ IDEA Scala plugin. The project is created without any problems but when I create function which should be run, the run button doesn't appear. I've got no idea why it doesn't work.
Version of IntelliJ - 2020.3.1 (Community Edition) Version of Scala plugin 2020.3.18
- I've created Scala/sbt project (I'd also tried Scala/IDEA)
- Vanilla options (but I'd also tried other versions of JDK, Scala and sbt)
- The run button is missing
My code is:
class Hello extends App {
println("Hello world")
}
I've tried creating Scala worksheet and It works.
App
. And try to convert the class to an object. – Tomer Shetah