tut icon indicating copy to clipboard operation
tut copied to clipboard

Tut doesn't play nice with fork (in SBT)

Open adelbertc opened this issue 9 years ago • 1 comments

Added tut-plugin to giant monorepo at $JOB, when running tut got greeted with:

[error] Failed to initialize compiler: object scala.runtime in compiler mirror not found.
[error] ** Note that as of 2.8 scala does not assume use of the java classpath.
[error] ** For the old behavior pass -usejavacp to scala, or if using a Settings
[error] ** object programatically, settings.usejavacp.value = true.
[error] Exception in thread "main" java.lang.Exception: Tut execution failed.

On @tpolecat 's suggestion I set fork := false which appears to have fixed it. fork in (Test, tut) := false and fork in Tut := false however did not work. shrugs

adelbertc avatar Dec 09 '16 19:12 adelbertc

PRs #198 and #207 attempt to address this. The syntax will be:

fork in (Tut, run) := true

metasim avatar Jan 18 '18 20:01 metasim