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?
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.
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.
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).
This is an Intellij bug. See bug SCL-3185 in the jetbrains tracking for pointers to release candidate code fixing it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With