MonkeyBonkey
MonkeyBonkey

Reputation: 47921

trouble with configuring scala project in intellij

I have been following the getting started with IntelliJ and Scala video from JetBrains and running into two problems.

  1. I can't get it create or start a run configuration
  2. I don't see the scala-test library as a selection under ProjectStructure-Modules-ChooseLibraries

What I've done so far is

  1. Install Scala, add path and environment variables
  2. Install Scala intellij plugin
  3. Create new project set project sdk to java 1.7 and scala home to /usr/local/share/scala-2.10.3
  4. Create an object that extends from App with a simple write line: enter image description here

The one source file object

  object HelloWorld{
    def main(args: Array[String]) {
      println("hello")
    }
  }

In the video they right click on the object file and can see a selection of run, but in my case I only see run as Scala Console. I can't seem to get the debugger to work and when I try to create a run configuration as an "Application" it says the src file is "not acceptable"

enter image description here

Upvotes: 4

Views: 3846

Answers (1)

fracca
fracca

Reputation: 2437

I'll recommend my simple project skeleton, to get you quickly up and running with Intellij, SBT and even Eclipse setup. Hope it helps!

Upvotes: 1

Related Questions