Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Multiple compilation processes run without parallelExecution in Global := false #15

Closed
xerial opened this issue Sep 2, 2013 · 1 comment

Comments

@xerial
Copy link

xerial commented Sep 2, 2013

In sbt-0.13 (and sbt-multi-jvm 0.3.8), we should set parallelExecution flag to false in the Global context:

parallelExcecution in Global := false

Without this setting, it looks like multiple compilation tasks run simultaneously and it causes an exeception described as below:

java.lang.RuntimeException: Could not create directory target/classes.bak
    at scala.sys.package$.error(package.scala:27)
    at sbt.IO$.createDirectory(IO.scala:155)
    at sbt.inc.ClassfileManager$$anonfun$transactional$1$$anon$2.<init>(ClassfileManager.scala:37)
    at sbt.inc.ClassfileManager$$anonfun$transactional$1.apply(ClassfileManager.scala:33)
    at sbt.inc.ClassfileManager$$anonfun$transactional$1.apply(ClassfileManager.scala:33)
@ktoso
Copy link
Contributor

ktoso commented Jan 15, 2015

This plugin has moved homes and now lives in: https://github.com/sbt/sbt-multi-jvm (ported issues)

@ktoso ktoso closed this as completed Jan 15, 2015
2m pushed a commit to 2m/sbt-multi-jvm that referenced this issue Aug 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants