I am missing something simple here.
- Scala downloaded
- Scala home set
- IntelliJ plugin downloaded
When new module is added, scala is chosen:

When new class is created, however, when trying to run it, i get

Looking as module properties, i see

What am i missing please?
Two things:
You should have an
objectdeclared somewhere (preferably outside of the class).You can then use this object to run your Scala code in IntelliJ.