Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scala (SBT) compile error: separate output paths (production, tests)

I have the same compile error on IntelliJ and Eclipse Scala:

"Error:scalac: Output path C:\workspaces\ScalaProgFun\forcomp\bin is shared between: Module 'progfun-forcomp' production, Module 'progfun-forcomp' tests Please configure separate output paths to proceed with the compilation. TIP: you can use Project Artifacts to combine compiled classes if needed."

Can someone help me with this, please? I have no idea how SBT works!

This error happens on this project: http://spark-public.s3.amazonaws.com/progfun/assignments/forcomp.zip

like image 245
rolele Avatar asked Jun 09 '14 10:06

rolele


1 Answers

In IntelliJIDEA you can try to use File -> Project Structure -> Modules -> Your Project -> Paths Specify different paths for test and output (if you have more than one module - you can try to specify unique paths for every module)

like image 112
dk14 Avatar answered Sep 29 '22 21:09

dk14