title: Running application object in Scala from SBT project's root directory in IntelliJ IDEA?
body: <p>I'm trying to run very basic Hello World inside IntelliJ IDEA and something goes wrong.</p>
  
  <pre><code>mkdir HelloWorld
  cd HelloWorld
  
  cat &gt; Hello.scala
  object Hello {
    def main(args : Array[String]) {
      println("Hello World")
    }
  }
  
  cat &gt; build.sbt
  scalaVersion := "2.10.3"
  
  mainClass in (Compile, run) := Some("Hello")
  </code></pre>
  
  <p>And everything goes smooth, as I've expected from sbt which I use pretty often</p>
  
  <pre><code>sbt run
  ...
  [info] Running Hello 
  Hello World
  </code></pre>
  
  <p>After that I'm trying to bring this project to the IDEA with which I have no experience.</p>
  
  <p>ItelliJ IDEA 13.0 have support for both scala and sbt from core plugins. So it can open <code>HelloWorld</code> folder as idea project with auto-converting.</p>
  
  <p>I'm forced to create new run configuration after pressing <em>Menu -> Run -> Run</em>. I select <code>New Application</code> here.</p>
  
  <p>The Form emerges and I'm required to fill it. The problem lies inside "Main class" option. I select <em>"Project" -> "HelloWorld[helloworld]" -> "Hello"</em> and receive <strong>"Hello is not accepotable" error message</strong>. This messages appears regardles of what is value is set to the "Use classpath of mod..." option.</p>
  
  <p>I've tried both auto-import from the IDEA core plugin and "gen-idea" from the sbt-idea plugin. They all initialize no usable run configuration and I can not fill with something usable myself.</p>
  
  <p>How can I configure usable correct run configuration for the project?</p>