These are chat archives for sbt/sbt

31st
Mar 2016
Srepfler Srdan
@schrepfler
Mar 31 2016 00:21
This message was deleted
Perry
@pfn
Mar 31 2016 03:47
interestingly, I've been playing with coursier, and it isn't necessarily faster...
no dependencies changed, with it enabled takes 6 seconds to load my build, without it enabled takes like 4.5
Sam Halliday
@fommil
Mar 31 2016 07:17
coursier only kicks in for your project, not sbt startup time
if sbt was distributed as a single jar (including the scala compiler), I'm sure it would speed up startup time for everybody
Dale Wijnand
@dwijnand
Mar 31 2016 08:41
Does anyone know if there's a way to define a val in build.sbt that's visible in the sbt shell?
Dale Wijnand
@dwijnand
Mar 31 2016 08:47
:( Looks like it's explicitly just projects and keys that are extracted: https://github.com/sbt/sbt/blob/v0.13.11/main/src/main/scala/sbt/EvaluateConfigurations.scala#L266-L272
Sam Halliday
@fommil
Mar 31 2016 08:51
if I type sbt test:compile it:compile does it do both in an aggregated task, or sequentially?
because if it's the latter, there is a huge opportunity for further parallelisation in the ensime build (specifically around running tests)
Dale Wijnand
@dwijnand
Mar 31 2016 08:52
Sequentially, otherwise 'clean' would never work
Sam Halliday
@fommil
Mar 31 2016 08:52
also, is it possible to add an ordering preference to tests? I'd rather the bigger tests ran first, because they tend to be slower, so should speed up overall CI time
interesting
I think we could shave a couple of minutes off the ensime CI by coming up with an aggregate task
Perry
@pfn
Mar 31 2016 15:21
@fommil that's somewhat false, coursier also applies to the meta-project dependency resolution
so that impacts startup time
like I said, I get 6 seconds startup with coursier setup as a global plugin, and I get 4.5seconds when I disablePlugins(CoursierPlugin) in both project and meta
hmm, that is some weird behavior
clean startup is 3.8s, disable coursier results in 4.5s, subsequently removing the coursier disabling results in 5.4s
Sam Halliday
@fommil
Mar 31 2016 15:49
@pfn oh cool, I'll have to try it in the meta
of course when coursier is added, there are more things to resolve in the meta
Perry
@pfn
Mar 31 2016 15:50
it was never added explicitly
see the pastie, it's default, disabled, then undisabled
not explicitly enabled
Perry
@pfn
Mar 31 2016 16:10
https://github.com/bytedeco/sbt-javacpp who are these people and what are they doing with sbt? :)
I love how simple my build files are
Perry
@pfn
Mar 31 2016 20:45
is sbt ever going to fix that stupid slf4j log message?
it's so annoying
InTheNow
@InTheNow
Mar 31 2016 20:50
The newer version of scaladoc looks to be ant based, cool eh? based http://www.scala-lang.org/blog/2016/03/17/getting-into-scaladoc-dev.html
Sam Halliday
@fommil
Mar 31 2016 20:50
@pfn :-) yeah, tell me about it. I think we worked around it somehow in ensime-server
I think I created a Spec that set up all the logging, and every test had to inherit from it
Perry
@pfn
Mar 31 2016 20:51
oh, echo 'libraryDependencies += "org.slf4j" % "slf4j-nop" % "1.7.20"' > ~/.sbt/0.13/00-slf4j.sbt
that takes care of that
Sam Halliday
@fommil
Mar 31 2016 20:51
oh, that's a different problem that I see. I see it when running tests. When do you see it?
Perry
@pfn
Mar 31 2016 20:51
I see it when the project loads
Sam Halliday
@fommil
Mar 31 2016 20:52
oh I don't see that. Must be one of your deps
Perry
@pfn
Mar 31 2016 20:52
yeah, sbt-git
Sam Halliday
@fommil
Mar 31 2016 20:52
@InTheNow isn't that just because scala/scala uses ant?
I hope it doesn't break the ENSIME doc browsing support, or at least provide us new functions we can use
InTheNow
@InTheNow
Mar 31 2016 20:53
I thought it had moved... I like ant and sbt
Dale Wijnand
@dwijnand
Mar 31 2016 21:46
#1931 is a ticket about creating an implementation of slf4j-api that uses sbt's logging system
Perry
@pfn
Mar 31 2016 22:17
yeah, I don't really care about that, I just want to squelch the message I get at project load about slf4j not being able to find a logger
because I load sbt-git globally