Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Scala 2.9.0 application on IntellijIdea 10

When I run my Scala hello world application, like

package pack

object App {
  def main(args: Array[String]) {
    println("Hello, world!")
  }

on Idea 10.0.3, I get compile errors

'App' to D:\prog\java2\scala3\out\production\scala3\pack\App.class (The filename, directory name, or volume label syntax is incorrect)

'App' to D:\prog\java2\scala3\out\production\scala3\pack\App$.class (The filename, directory name, or volume label syntax is incorrect)

How can I deal with it?

like image 345
Stan Kurilin Avatar asked May 14 '11 15:05

Stan Kurilin


People also ask

How do I change the Scala version in IntelliJ?

 In most cases your project JDK is not compatible with Scala or sbt version, try to change the Scala Compile Server SDK. Press Ctrl+Alt+S to open Settings/Preferences dialog. From the options on the left, select Build, Execution, Deployment | Compiler | Scala | Scala Compiler Server.

How do I open a Scala project in IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Build, Execution, Deployment | Build Tools | sbt. In the sbt projects section, select a project for which you want to configure build actions. In the sbt shell section, select the builds option. Click OK to save the changes.

How do I get Scala 3 in IntelliJ?

Trying the nightly builds is easy: Open Settings | Languages | Scala | Updates. Select Nightly plugin update channel and press Check for updates (you can always select EAP or Release to revert to a more stable build; alternatively, you can download any Scala plugin build from the Plugin Repository).


1 Answers

This is an Intellij bug. See bug SCL-3185 in the jetbrains tracking for pointers to release candidate code fixing it.

like image 148
Don Roby Avatar answered Oct 02 '22 10:10

Don Roby