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

sbt 1.0.1 and 1.0.2 break ammonite compatibility #3608

Closed
natevecc opened this Issue Oct 5, 2017 · 13 comments

Comments

Projects
None yet
5 participants
@natevecc

natevecc commented Oct 5, 2017

steps

Following instructions from ammonite site to add the following to ~/.sbt/1.0/global.sbt:

libraryDependencies += "com.lihaoyi" % "ammonite" % "1.0.2" % "test" cross CrossVersion.full

sourceGenerators in Test += Def.task {
  val file = (sourceManaged in Test).value / "amm.scala"
  IO.write(file, """object amm extends App { ammonite.Main().run() }""")
  Seq(file)
}.taskValue

Then run sbt test:run

problem

sbt:root> test:run
[info] Running amm
[debug] Waiting for threads to exit or System.exit to be called.
[debug]   Classpath:
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/job-2/target/5dbeb59b/blackfynn-core_2.12-1.7.6-SNAPSHOT-tests.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/a8f39d69/blackfynn-core_2.12-1.7.6-SNAPSHOT.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/f2e496f2/scala-library.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/a6819d95/ficus_2.12-1.4.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/2cf7a6cc/config-1.3.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/ed809d26/macro-compat_2.12-1.1.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/7c3c5494/scala-logging_2.12-3.5.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/a017f8f6/scala-reflect.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/8d660a9a/postgresql-9.4-1200-jdbc41.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/8f86f0fa/waffle-jna-1.7.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/1c12d070/jna-4.1.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/23457ad1/jna-platform-4.1.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/8095d0b9/slf4j-simple-1.7.7.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/1eb7dbea/slick_2.12-3.2.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/14b8c877/reactive-streams-1.0.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/6e327498/slick-hikaricp_2.12-3.2.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/b896b711/HikariCP-2.5.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/1bc9a25c/json4s-jackson_2.12-3.5.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/7cd98de5/json4s-core_2.12-3.5.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/5742f015/json4s-ast_2.12-3.5.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/3182dd1c/json4s-scalap_2.12-3.5.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/619eba74/paranamer-2.8.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/e22de336/scala-xml_2.12-1.0.6.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/45b426f7/jackson-annotations-2.8.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/fe25a969/json4s-ext_2.12-3.5.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/675642ac/joda-convert-1.8.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/7dffea92/scalikejdbc_2.12-2.5.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/d43a960c/scalikejdbc-core_2.12-2.5.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/c4f4a761/commons-dbcp2-2.1.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/e5f4f28f/commons-pool2-2.4.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/4bfc12ad/commons-logging-1.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/7c5f25a2/scala-parser-combinators_2.12-1.0.4.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/d2df6268/scalikejdbc-interpolation_2.12-2.5.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/d5effe5a/scalikejdbc-interpolation-macro_2.12-2.5.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/eab9a56f/scalikejdbc-config_2.12-2.5.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/c40eefc0/alleycats-core_2.12-0.1.9.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/043c9efa/simulacrum_2.12-0.10.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/14c8716e/algebra_2.12-0.7.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/24eae5d3/cats-kernel_2.12-0.9.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/267cebe0/cats-core_2.12-0.9.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/4733f822/cats-macros_2.12-0.9.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/13f7388c/machinist_2.12-0.6.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/d37f082f/export-hook_2.12-1.2.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/cde2cf83/cats_2.12-0.9.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/7d706787/cats-kernel-laws_2.12-0.9.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/1982eef1/scalacheck_2.12-1.13.4.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/0a3f14d0/test-interface-1.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/9368ffe6/discipline_2.12-0.7.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/725a079a/catalysts-platform_2.12-0.0.5.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/fff255a5/catalysts-macros_2.12-0.0.5.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/5fdc758e/cats-laws_2.12-0.9.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/7f16e2ab/cats-free_2.12-0.9.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/6cd39de8/cats-jvm_2.12-0.9.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/e8f93b4b/sphere-json_2.12-0.7.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/d82ce0a6/sphere-util_2.12-0.7.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/f7b520c4/joda-time-2.9.9.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/fb1930cd/jackson-databind-2.8.8.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/d478fb6d/jackson-core-2.8.8.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/4b95f489/commons-codec-1.10.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/e989d1e8/commons-validator-1.6.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/7a87d845/commons-beanutils-1.9.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/8ad72fe3/commons-collections-3.2.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/3dec9b9c/commons-digester-1.8.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/27e115ff/shapeless_2.12-2.3.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/6fbf50c5/enumeratum_2.12-1.5.12.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/1a63056f/enumeratum-macros_2.12-1.5.9.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/5c9c716b/enumeratum-circe_2.12-1.5.14.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/8ef5f36a/circe-core_2.12-0.8.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/b29b758a/circe-numbers_2.12-0.8.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/f2d1bc4b/enumeratum-json4s_2.12-1.5.13.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/170eb510/op-rabbit-circe_2.12-2.0.0-rc1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/ded7c888/op-rabbit-core_2.12-2.0.0-rc1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/44519cdf/akka-rabbitmq_2.12-4.0.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/ba05c9b5/akka-actor_2.12-2.4.17.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/1e6f1e74/scala-java8-compat_2.12-0.8.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/a592535a/amqp-client-4.0.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/4999ed20/circe-generic_2.12-0.8.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/68788909/circe-parser_2.12-0.8.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/ef0c0ab6/circe-jawn_2.12-0.8.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/452b1bdf/jawn-parser_2.12-0.10.4.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/7bdb5272/pbkdf2-scala_2.12-0.6.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/fc5eadd5/redisclient_2.12-3.3.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/4572d589/commons-pool-1.6.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/8988f62f/testcontainers-scala_2.12-0.7.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/78c4f720/testcontainers-1.4.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/2973d150/junit-4.12.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/42a25dc3/hamcrest-core-1.3.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/da76ca59/slf4j-api-1.7.25.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/b4d1870b/junixsocket-common-2.0.4.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/726bd66a/junixsocket-native-common-2.0.4.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/1451fa03/native-lib-loader-2.0.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/84caa685/commons-compress-1.12.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/0ce1edb9/commons-lang-2.6.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/2852e6e0/commons-io-2.5.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/331b564a/jcl-over-slf4j-1.7.21.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/72ff1904/tcp-unix-socket-proxy-1.0.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/7d6c8d9f/zt-exec-1.8.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/849cdd67/duct-tape-1.0.6.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/919f0dfe/annotations-13.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/d1685f86/slf4j-ext-1.7.25.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/96def77b/visible-assertions-2.0.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/36eff018/jnr-posix-3.0.41.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/0a63bbd4/jnr-ffi-2.1.4.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/f480f023/jffi-1.2.15.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/053f344e/jffi-1.2.15-native.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/dcc2193d/asm-5.0.3.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/a7111830/asm-commons-5.0.3.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/287749b4/asm-tree-5.0.3.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/c7126ade/asm-analysis-5.0.3.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/1512e557/asm-util-5.0.3.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/006936bb/jnr-x86asm-1.0.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/47803640/jnr-constants-0.9.8.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/3a9dcb5a/scalatest_2.12-3.0.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/1d893666/scalactic_2.12-3.0.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/228d8e0c/scalamock-scalatest-support_2.12-3.4.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/5278fde6/scalamock-core_2.12-3.4.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/88b33b84/scalikejdbc-test_2.12-2.5.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/a308f084/ammonite_2.12.3-1.0.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/ceaec46c/ammonite-terminal_2.12-1.0.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/37504e0f/sourcecode_2.12-0.1.3.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/58c9fb11/ammonite-ops_2.12-1.0.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/9790a739/geny_2.12-0.1.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/60b9cd63/ammonite-util_2.12-1.0.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/bec656b0/upickle_2.12-0.4.4.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/e4141037/derive_2.12-0.4.4.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/03ad177e/pprint_2.12-0.5.2.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/217c8f7e/fansi_2.12-0.2.4.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/6f1c3550/ammonite-runtime_2.12-1.0.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/a732c6a4/coursier_2.12-1.0.0-RC8.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/0da7745d/scalaz-core_2.12-7.2.13.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/74cc5f68/coursier-cache_2.12-1.0.0-RC8.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/87758f8d/scalaz-concurrent_2.12-7.2.13.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/0f028c8e/scalaz-effect_2.12-7.2.13.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/76523a7b/scalaj-http_2.12-2.3.0.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/092feb5a/ammonite-compiler_2.12.3-1.0.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/b6b9ca20/scala-compiler.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/9d35ddb9/scalaparse_2.12-0.4.3.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/d675a5d3/fastparse_2.12-0.4.3.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/738dcd63/fastparse-utils_2.12-0.4.3.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/598244f5/javassist-3.21.0-GA.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/4624d1b6/ammonite-repl_2.12.3-1.0.1.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/5296978f/jline-2.14.3.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/c00bf4bb/javaparser-core-3.2.5.jar
[debug] 	/var/folders/dl/9nnjfs_15l9g57wm29ldg2k80000gn/T/sbt_3f9fb093/target/8de7c2a8/scopt_2.12-3.5.0.jar
[debug] Waiting for thread run-main-1 to terminate.
Compiling (synthetic)/ammonite/predef/interpBridge.sc
[debug] 	Thread run-main-1 exited.
[debug] Interrupting remaining threads (should be all daemons).
[debug] Interrupting thread Thread-3
[debug] 	Interrupted Thread-3
[debug] Sandboxed run complete..
[debug] Exited with code 0
[success] Total time: 3 s, completed Oct 5, 2017 10:12:09 AM

expectation

ammonite shell should start like it does in sbt 1.0.0

sbt:root> test:run
[info] Running amm
Welcome to the Ammonite Repl 1.0.1
(Scala 2.12.3 Java 1.8.0_121)
If you like Ammonite, please support our development at www.patreon.com/lihaoyi
@

notes

sbt version: 1.0.1 and 1.0.2

@xerial

This comment has been minimized.

Show comment
Hide comment
@xerial

xerial Oct 20, 2017

Contributor

I also encountered a similar issue. It seems classpath setting in sbt 1.0.x is different from sbt 0.13.x when using run command.

Contributor

xerial commented Oct 20, 2017

I also encountered a similar issue. It seems classpath setting in sbt 1.0.x is different from sbt 0.13.x when using run command.

@SethTisue

This comment has been minimized.

Show comment
Hide comment
@SethTisue

SethTisue Oct 20, 2017

Contributor

some kind of fallout from #3477, I guess

Contributor

SethTisue commented Oct 20, 2017

some kind of fallout from #3477, I guess

@xerial

This comment has been minimized.

Show comment
Hide comment
@xerial

xerial Oct 20, 2017

Contributor

It seems #3504 is a fix. And also adding configuration like fork in run := true seems a workaround.

Contributor

xerial commented Oct 20, 2017

It seems #3504 is a fix. And also adding configuration like fork in run := true seems a workaround.

@xerial

This comment has been minimized.

Show comment
Hide comment
@xerial

xerial Nov 3, 2017

Contributor

1.0.3 does not fix this problem, especially when the code is relying on Scala reflection.

Contributor

xerial commented Nov 3, 2017

1.0.3 does not fix this problem, especially when the code is relying on Scala reflection.

@xerial

This comment has been minimized.

Show comment
Hide comment
@xerial

xerial Nov 28, 2017

Contributor

This problem still exists in sbt-1.0.4:

build.sbt

libraryDependencies += "com.lihaoyi" %% "ammonite" % "1.0.3" % "test" cross CrossVersion.full

// Uncomment this to fix this issue
// fork in Test := true

sourceGenerators in Test += Def.task {
  val file = (sourceManaged in Test).value / "amm.scala"
  IO.write(file, """object amm extends App { ammonite.Main().run() }""")
  Seq(file)
}.taskValue
sbt:t> test:run
[info] Running amm
Compiling (synthetic)/ammonite/predef/interpBridge.sc
[success] Total time: 1 s, completed Nov 28, 2017 1:00:05 PM

With fork in Test := true, it works as expected:

sbt:t> test:run
[info] Running (fork) amm
[error] Compiling (synthetic)/ammonite/predef/interpBridge.sc
[error] Compiling (synthetic)/ammonite/predef/replBridge.sc
[error] Compiling (synthetic)/ammonite/predef/DefaultPredef.sc
[info] Welcome to the Ammonite Repl 1.0.3
[info] (Scala 2.12.4 Java 1.8.0_131)
[info] If you like Ammonite, please support our development at www.patreon.com/lihaoyi
[error] Bye!
@
[success] Total time: 5 s, completed Nov 28, 2017 1:00:21 PM
Contributor

xerial commented Nov 28, 2017

This problem still exists in sbt-1.0.4:

build.sbt

libraryDependencies += "com.lihaoyi" %% "ammonite" % "1.0.3" % "test" cross CrossVersion.full

// Uncomment this to fix this issue
// fork in Test := true

sourceGenerators in Test += Def.task {
  val file = (sourceManaged in Test).value / "amm.scala"
  IO.write(file, """object amm extends App { ammonite.Main().run() }""")
  Seq(file)
}.taskValue
sbt:t> test:run
[info] Running amm
Compiling (synthetic)/ammonite/predef/interpBridge.sc
[success] Total time: 1 s, completed Nov 28, 2017 1:00:05 PM

With fork in Test := true, it works as expected:

sbt:t> test:run
[info] Running (fork) amm
[error] Compiling (synthetic)/ammonite/predef/interpBridge.sc
[error] Compiling (synthetic)/ammonite/predef/replBridge.sc
[error] Compiling (synthetic)/ammonite/predef/DefaultPredef.sc
[info] Welcome to the Ammonite Repl 1.0.3
[info] (Scala 2.12.4 Java 1.8.0_131)
[info] If you like Ammonite, please support our development at www.patreon.com/lihaoyi
[error] Bye!
@
[success] Total time: 5 s, completed Nov 28, 2017 1:00:21 PM
@xerial

This comment has been minimized.

Show comment
Hide comment
@xerial

xerial Nov 28, 2017

Contributor

So I think there is a general classpath (or dependency resolution) issue in sbt run command execution.

Contributor

xerial commented Nov 28, 2017

So I think there is a general classpath (or dependency resolution) issue in sbt run command execution.

@xerial

This comment has been minimized.

Show comment
Hide comment
@xerial

xerial Nov 28, 2017

Contributor

^ any idea? @eed3si9n
We also have class loading issues especially when trying to find classes using reflection.

Contributor

xerial commented Nov 28, 2017

^ any idea? @eed3si9n
We also have class loading issues especially when trying to find classes using reflection.

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Nov 29, 2017

Member

I wonder if the classpath is no longer correct since bgRun copies files around.

Member

eed3si9n commented Nov 29, 2017

I wonder if the classpath is no longer correct since bgRun copies files around.

@ravwojdyla

This comment has been minimized.

Show comment
Hide comment
@ravwojdyla

ravwojdyla commented Dec 21, 2017

PTAL: sbt/zinc#473

@xerial

This comment has been minimized.

Show comment
Hide comment
@xerial

xerial Dec 22, 2017

Contributor

@ravwojdyla Thanks for the fix!

Contributor

xerial commented Dec 22, 2017

@ravwojdyla Thanks for the fix!

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Dec 22, 2017

Member

Zinc fix is now merged. Please try sbt 1.1.0-RC3.

Member

eed3si9n commented Dec 22, 2017

Zinc fix is now merged. Please try sbt 1.1.0-RC3.

@eed3si9n eed3si9n closed this Dec 22, 2017

@eed3si9n eed3si9n modified the milestones: 1.1.1, 1.1.0 Dec 22, 2017

@ravwojdyla

This comment has been minimized.

Show comment
Hide comment
@ravwojdyla

ravwojdyla Dec 22, 2017

@eed3si9n thanks! afaiu it's 1.1.0-RC4 not 1.1.0-RC3 right?

ravwojdyla commented Dec 22, 2017

@eed3si9n thanks! afaiu it's 1.1.0-RC4 not 1.1.0-RC3 right?

@eed3si9n

This comment has been minimized.

Show comment
Hide comment
@eed3si9n

eed3si9n Dec 22, 2017

Member

Zinc is on 1.1.0-RC4, but sbt is currently on 1.1.0-RC3, but I just found a bug so it will be 1.1.0-RC4 soon.

Member

eed3si9n commented Dec 22, 2017

Zinc is on 1.1.0-RC4, but sbt is currently on 1.1.0-RC3, but I just found a bug so it will be 1.1.0-RC4 soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment