Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ktoso opened this issue Jan 15, 2015 · 0 comments

Comments

@ktoso
Copy link
Member

ktoso commented Jan 15, 2015

Moved here from: typesafehub/sbt-multi-jvm#15


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$$anon<init>(ClassfileManager.scala:37)
    at sbt.inc.ClassfileManager$$anonfun$transactionalapply(ClassfileManager.scala:33)
    at sbt.inc.ClassfileManager$$anonfun$transactionalapply(ClassfileManager.scala:33)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant