These are chat archives for sbt/sbt

21st
Nov 2016
Rafal Wachol
@charafau
Nov 21 2016 12:39

hello, where does this watchSources come from? Is it part of some plugin or sbt? I wanted to recreate this is my own project but got an error
link:
https://github.com/jrudolph/akka-http-scala-js-websocket-chat/blob/master/project/ChatBuild.scala#L52

errror :

client-ms/build.sbt:111: error: value watchSources is not a member of sbt.Def.Initialize[sbt.Task[Seq[java.io.File]]]
possible cause: maybe a semicolon is missing before `value watchSources'?
        watchSources <++= (watchSources in client)
ok I got it.. missing colon...
Guillaume Massé
@MasseGuillaume
Nov 21 2016 13:39
is it possible to write a test with scripted saying that sbt should fail to initialize ?
Rafal Wachol
@charafau
Nov 21 2016 15:00
can someone tell me how should I specify sbt build without <+= and <++= ? here are my lines:
(resourceGenerators in Compile) <+=
      (fastOptJS in Compile in client, packageScalaJSLauncher in Compile in client)
        .map((f1, f2) => Seq(f1.data, f2.data)),
    watchSources <++= (watchSources in client)
I tried to use += { } instead but it's complaining
Jules Ivanic
@guizmaii
Nov 21 2016 15:00
:= ?
or <<
I dont remember sorry
Rafal Wachol
@charafau
Nov 21 2016 15:01
both fails
Jules Ivanic
@guizmaii
Nov 21 2016 15:01
:/
Rafal Wachol
@charafau
Nov 21 2016 15:21
 found   : sbt.Def.Initialize[sbt.Task[Seq[java.io.File]]]
 required: sbt.Def.Initialize[Seq[sbt.Task[Seq[java.io.File]]]]
let's say I'm close :)
Justin Kaeser
@jastice
Nov 21 2016 15:33
I think you want .taskValue in there somewhere
Dale Wijnand
@dwijnand
Nov 21 2016 15:39
resourceGenerators in Compile +=
  Def.task(Seq(
    (fastOptJS in Compile in client).value,
    (packageScalaJSLauncher in Compile in client).value
  )).taskValue
Rafal Wachol
@charafau
Nov 21 2016 15:48
thank you. Dale, maybe I wont need it
Valentin Kasas
@vil1
Nov 21 2016 17:16
Hi there. In a desperate attempt to speed up the build of a multimodule project (30+ modules), I'm trying to set cached resolution, but I get an error: not found: value updateOptions ( I use paulp's runner with -sbt-version 0.13.13 and have sbt.version=0.13.13 in my build.properties).
Can someone point me what I'm doing wrong ?
Dale Wijnand
@dwijnand
Nov 21 2016 17:35
Are you trying to define it in a Scala file or an sbt file?
Valentin Kasas
@vil1
Nov 21 2016 19:43
In an .sbt file (with an import sbt.Keys._)
Dale Wijnand
@dwijnand
Nov 21 2016 20:20
@vil1 see if you can reduce it, often I find you either find out what the issue is, or you get to the point you have something small you can share
Sam Halliday
@fommil
Nov 21 2016 21:14
is it possible to define a in ThisBuild section in a build.sbt
I don't like this commonSettings way of doing things
Erik Bruchez
@ebruchez
Nov 21 2016 22:20
I am using ThisBuild at the top-level and have seen it used in other places as well, but I am curious how this relates to the use of commonSettigns as well.
Sam Halliday
@fommil
Nov 21 2016 22:20
@ebruchez how do you use it?