[Fixed] New Scala Project, "Unknown build target output directory"

From a new project, using Scala ("Simple module with attached Scala SDK"), project Java SDK version 1.8.0_112, Scala SDK 2.12, I get the following error when trying to compile a simple hello world application:

"Error:Module 'scala_sdk' production: java.lang.RuntimeException: Unknown build target output directory: /mnt/hdd/School/2016-2017/Project/repositories/scala_sdk/out/production/scala_sdk"

The same happens when I try a Java project with Scala as additional library/framework. Also happened in an existing Maven Java project.

How do I fix this?

IDEA info:

IntelliJ IDEA 2016.3
Build #IU-163.7743.44, built on November 17, 2016
JRE: 1.8.0_112-b15 amd64
JVM: OpenJDK 64-Bit Server VM by Oracle Corporation

Scala plugin: 2016.3.3

5 comments
Comment actions Permalink

When starting IDEA today I was prompted to update the Scala plugin. Said update fixed my problem.

0
Comment actions Permalink

How do I fix this? (Scala Plugin already 2019.2.28)

1
Comment actions Permalink

This problem occurs in combination with sbt-crossproject modules, problem occurs only in IntellIJ with Scala Plugin, *not* in sbt on the shell!

0
Comment actions Permalink

I'm seeing the same issue when using sbt-crossproject in Intellij. Does anyone have a solution?  I can run the build from the command line with sbt but I can't build or run tests from Intellij.

1

Please sign in to leave a comment.