These are chat archives for sbt/sbt

1st
Aug 2017
Mike Mazur
@mikem
Aug 01 06:01

Hi, I’m having trouble downloading sbt-0.13.16.tgz. Both Firefox and Chrome block the download. using cURL I get a corrupt file:

$ shasum -a 256 sbt-0.13.16.tgz
367982d8448d26b1ba26026f481b983ea3d4ebacf892ed6a41c4d1ee0d1ec397  sbt-0.13.16.tgz
$ tar zxf sbt-0.13.16.tgz
sbt/lib/local-preloaded/org.scala-lang/scala-compiler/2.12.2/jars/scala-compiler.jar: (Empty error message)
tar: Error exit delayed from previous errors.

I have a suspicion it has to do with a corrupt file being served to me by the CDN edge closest to me (Singapore). Is anyone else having this issue?

Jeffrey Olchovy
@jeffreyolchovy
Aug 01 07:33
@godenji can you paste your build.sbt and plugins.sbt definition? i haven't had issue running scripted for a project which includes a plugin that needs to be cross built. i also just created the simplest example plugin project that i could to test (a single project which is a plugin that has crossSbtVersions Seq("0.13.16", "1.0.0-RC3"), scriptedSettings, and in that project's plugins.sbt it has libraryDependencies += "org.scala-sbt" % "scripted-plugin" % sbtVersion.value). i added an example scripted test to src/sbt-test/my-sbt-plugin/example and everything succeeded when i invoked ^scripted.
N.S. Cutler
@godenji
Aug 01 11:06
@jeffreyolchovy thanks, see repo with failing 2.12 tests. Not sure why ^scripted fails for 2.12 phase of tests, would like to get this sorted out before releasing.
N.S. Cutler
@godenji
Aug 01 11:42
huh, prior to switching to sbt cross build the tests had scalaVersion hard coded to 2.10.6. I removed scala version from my local branch's tests and...they fail in the same way during 2.12 phase.
Akshay Patel
@AkshayP__twitter
Aug 01 14:40
Someone please help I'm losing my mind
unmanagedResourceDirectories in Test <+= baseDirectory( _ / "target/web/public/test" )
This line is in the sbt.build file
I am migrating from 0.13.5 to 0.13.15 and <+= is now deprecated
But when I replace with +=
I get this error No implicit for Append.Value[Seq[java.io.File], sbt.Def.Initialize[java.io.File]] found, so sbt.Def.Initialize[java.io.File] cannot be appended to Seq[java.io.File]
I'm not sure how to deal with this
Akshay Patel
@AkshayP__twitter
Aug 01 14:47
unmanagedResourceDirectories in Test += baseDirectory[Seq[File]] {
  val file = (baseDirectory).value / "target/web/public/test"
  Seq(file)
}
I tried doing something like that
error: No implicit for Append.Value[Seq[java.io.File], sbt.Def.Initialize[Seq[sbt.File]]] found, so sbt.Def.Initialize[Seq[sbt.File]] cannot be appended to Seq[java.io.File]
But it still get this error
Dale Wijnand
@dwijnand
Aug 01 14:50
@AkshayP__twitter unmanagedResourceDirectories in Test += (baseDirectory.value / "target/web/public/test")
Akshay Patel
@AkshayP__twitter
Aug 01 14:52
Thanks
Quite new at this
Tomczik76
@Tomczik76
Aug 01 14:54
Does anyone know a way that a SBT project can generate sources during compile, then another SBT Project can use those generated sources in an SBT task? Is there a way to import those sources in the plugins.sbt file or something?
Jeffrey Olchovy
@jeffreyolchovy
Aug 01 19:10
@godenji just cloned the repo and checked out your branch. i actually got an error during scalariformFormat in all scripted tests against 1.0.0-RC3. the sbt 0.13.16 scripted tests all succeeded. it looks like there is an issue with the preference file parsing (?), see the following pastebin for more details: https://pastebin.com/b7nQ0p8C
mariop-da
@mariop-da
Aug 01 19:18
any way to get the classpath used by sbt to run a project? Something in the format jar1:jar2:jar3...
mariop-da
@mariop-da
Aug 01 19:26
ok this works >show compile:dependency-classpath
mariop-da
@mariop-da
Aug 01 20:15
@dwijnand while we wait for sbt 1.0, is it possible to call sbt from an sbt autoplugin? I need an sbt autoplugin that generates some source files but the code that generates the sources files works only with scala 2.12. The codegen is in the same multiproject of the projects using it and maybe a temporary hack could be to just create an sbt autoplugin that calls sbt run on the codegen project. Do you think it would make sense? I'm out of ideas otherwise
N.S. Cutler
@godenji
Aug 01 20:21
@jeffreyolchovy yeah, a recent PR pulls in sjsonnew and jawn, blowing up somewhere along the line. Fun afternoon so far, new shiny, old broken.