These are chat archives for sbt/sbt

17th
Jun 2016
SRGOM
@SRGOM
Jun 17 2016 05:17
This message was deleted
Would anyone know how would I handle a source generator which takes another "scala project" and uses its "runtime result" as an input for my project?
Luis Cuellar
@VeryBueno
Jun 17 2016 17:15
Hi all, I'm currently using an sbt plugin in my Play app that I'd like to contribute to. I've checked out the plugin's source from github. How do I configure my plugins.sbt to use the checked-out version? Ideally I'd like to setup breakpoints in IntelliJ to learn how the plugin works.
Dale Wijnand
@dwijnand
Jun 17 2016 17:43
Look for something called ProjectRef for using it as a source dependency. And use remote debug for debugging
Sam Halliday
@fommil
Jun 17 2016 18:19
Somebody reported a bug against sbt-ensime ensime/ensime-sbt#210
the scalding build is either removing the config that sbt-ensime adds
or the ensime autoplugin isn't running
I'm studying the scalding build but I can't understand why it would do this, any ideas?
eugene yokota
@eed3si9n
Jun 17 2016 18:22
@fommil the ctor usage
lazy val scalding = Project(
  id = "scalding",
  base = file("."),
  settings = sharedSettings ++ DocGen.publishSettings
)
Sam Halliday
@fommil
Jun 17 2016 18:22
curse that bloody constructor!!!
thanks :-)
eugene yokota
@eed3si9n
Jun 17 2016 18:23
np
Perry
@pfn
Jun 17 2016 18:23
I don't understand why that occurs, why aren't settings appended after construction?
eugene yokota
@eed3si9n
Jun 17 2016 18:27
@pfn I guess because we wanted gradual transition from old Build.scala style build that encouraged Project(...) constructor to new build.sbt with auto plugin without breaking the old semantics
when auto plugin was introduced the default settings added by sbt also became auto plugins
that's incompatible with Project.defaultSettings that gets passed in explicitly
in other words, if we double-loaded sbt.plugin.JvmPlugin for instance, it could overwrite sharedSettings in the above example
Dale Wijnand
@dwijnand
Jun 17 2016 18:37
check out that issue identification time.. woah
Sam Halliday
@fommil
Jun 17 2016 19:32
identification? How about fix twitter/scalding#1571
(I really need to get out more)
Simon Hafner
@reactormonk
Jun 17 2016 19:51
I have a fold where I want to add everything into resourceManaged - how would I do that? I figured putting things int resourceManaged via IO.copyDirectory is a start, but how do I list all the files?
Perry
@pfn
Jun 17 2016 20:18
huh?
Simon Hafner
@reactormonk
Jun 17 2016 20:21
fixed it with a file filter.
How do I invoke a Task[Unit] ?
Perry
@pfn
Jun 17 2016 20:22
by running it
Simon Hafner
@reactormonk
Jun 17 2016 20:22
How do I run it?
Perry
@pfn
Jun 17 2016 20:23
by typing it into the repl
Simon Hafner
@reactormonk
Jun 17 2016 20:23
task.value gives me a warning about pure value, task.value() tells me no arguments
Martin Duhem
@Duhemm
Jun 17 2016 20:23
Could val _ = task.value fix your problem?
I guess this should silent the warning
Simon Hafner
@reactormonk
Jun 17 2016 21:32
How do I cache resource generation in sbt?
Simon Hafner
@reactormonk
Jun 17 2016 21:47
Any specific reasons the tasks in my build.scala aren't visible in the sbt shell?
Simon Hafner
@reactormonk
Jun 17 2016 21:52
Ah, gotta add the manualyl via settings.
Hm, nope?