These are chat archives for sbt/sbt

23rd
Nov 2015
wedens
@wedens
Nov 23 2015 05:35
what's the difference between plugin in project/ and as a separate dependency?
auto-plugin
Perry
@pfn
Nov 23 2015 05:49
why have an auto plugin defined locally?
seems to defeat the purpose
wedens
@wedens
Nov 23 2015 08:27
I want to use this plugin in particular project. without any dependency management hassle
@pfn ^
Dave Gurnell
@davegurnell
Nov 23 2015 09:28
@fommil @dwijnand 50 people signed up, and lunch and refreshments now confirmed: http://www.meetup.com/london-scala/events/225841696
Dale Wijnand
@dwijnand
Nov 23 2015 09:28
I'm one of them
Dave Gurnell
@davegurnell
Nov 23 2015 09:29
Oh damnit. @leipie already posted it. Apologies :)
@dwijnand excellent -- see you there!
Dale Wijnand
@dwijnand
Nov 23 2015 09:30
indeed, see you there
Sam Halliday
@fommil
Nov 23 2015 12:51
I added additional information to sbt/sbt#2270
If anybody knows how to implement the workaround without changing SBT, I'd love to hear from you.
Perry
@pfn
Nov 23 2015 15:59
@wedens might as well just be a normal build modifier then
Adelbert Chang
@adelbertc
Nov 23 2015 21:59
how can i remove a scalacOptionsfrom a particular scope (e.g. scoverage) - seems scoverage instrumentation is messing with something thats triggering non-exhaustive match and also has -Xfatal-warnings turnd on
and i want to remove the fatal-ness of it just int he scoverage scope
Dale Wijnand
@dwijnand
Nov 23 2015 22:05
start with the command (XXX) that causing your issue and inspect XXX/inspect actual XXX/inspect tree XXX your way to where the fatal -Xfatal-warnings is... then fix that
Adelbert Chang
@adelbertc
Nov 23 2015 22:25
found it - thanks!
Dale Wijnand
@dwijnand
Nov 23 2015 22:30
hey, what was it?
Adelbert Chang
@adelbertc
Nov 23 2015 22:35
i just ended up doing scalacOptions in scoverage := (scalacOptions in scoverage).value.filter(...)
Adelbert Chang
@adelbertc
Nov 23 2015 22:44
back to reading new SBT in Action book :D
Dale Wijnand
@dwijnand
Nov 23 2015 22:48
if that filter includes using == or != you might be interested in the presence of -=
Adelbert Chang
@adelbertc
Nov 23 2015 22:48
i initally treid that
and got
error: value -= is not a member of sbt.TaskKey[Seq[String]]
scalacOptions in ScoverageSbtPlugin.scoverage -= "-Xfatal-warnings"
^
Dale Wijnand
@dwijnand
Nov 23 2015 22:48
sbt version?
Adelbert Chang
@adelbertc
Nov 23 2015 22:49
0.13.5
Dale Wijnand
@dwijnand
Nov 23 2015 22:49
ah
it's in 0.13.9
sbt/sbt#1922
Adelbert Chang
@adelbertc
Nov 23 2015 22:50
ah awesome
will be sure to switch when we switch to 0.13.9 :-)
Dale Wijnand
@dwijnand
Nov 23 2015 22:50
:)

While I was waiting for 0.13.9 to release I had

  implicit class DefinableTaskWithRemove[A](val _t: DefinableTask[Seq[A]]) extends AnyVal {
    def -=(x: A): Setting[Task[Seq[A]]] = _t ~= (_ filterNot x.==)
  }

  implicit class SettingKeyWithRemove[A](val _s: SettingKey[Seq[A]]) extends AnyVal {
    def -=(x: A): Setting[Seq[A]] = _s ~= (_ filterNot x.==)
  }

in an object in the project dir that I imported, so that's another option. Commented with "Remove when sbt 0.13.9+" or something