These are chat archives for sbt/sbt

14th
Oct 2016
Rafael Grillo
@grillorafael
Oct 14 2016 09:41
Guys, is there a way to prompt from confirmation on a SBT task?
RomanIakovlev
@RomanIakovlev
Oct 14 2016 09:41
See InputTask
Rafael Grillo
@grillorafael
Oct 14 2016 09:42
but this is argument. I mean prompt for confirmation
you run a task and it asks to confirm the action before continuing
ok
readLine works inside the task
Julien Richard-Foy
@julienrf
Oct 14 2016 12:38
Hi, foo::bar is equivalent to bar in foo in .sbt files, but is there an equivalent of bar in (foo in baz)? I tried (baz::foo)::bar but that didn’t work.
Dale Wijnand
@dwijnand
Oct 14 2016 12:38
huh, does that even work?
Julien Richard-Foy
@julienrf
Oct 14 2016 12:38
yes :)
Dale Wijnand
@dwijnand
Oct 14 2016 12:38
bar in (foo in baz)
wow
I guess there's no handle for that in the parser, but that's a great TIL
Julien Richard-Foy
@julienrf
Oct 14 2016 12:41
;)
RomanIakovlev
@RomanIakovlev
Oct 14 2016 14:44
Which setting key is used for aggregating projects?
Dale Wijnand
@dwijnand
Oct 14 2016 14:48
it's not a key, it's a configuration of the project: aggregate
RomanIakovlev
@RomanIakovlev
Oct 14 2016 14:49
Yeah, I know that method. But it seems I can’t use it in my setup. I wonder if there’s some setting behind that method.
I’m still up to same problem I’ve asked about here some time ago. I want to automatically aggregate all the projects in a multi-build, with some given exceptions.
Aggregate in the root project, which is actually defined.
Julien Richard-Foy
@julienrf
Oct 14 2016 15:08
@dwijnand well it seems that using key1 in (key2 in key3) is somewhat buggy, actually. So I duplicated keys, instead…
Dale Wijnand
@dwijnand
Oct 14 2016 15:09
dang, I was super-excited about that
Jeff May
@jeffmay
Oct 14 2016 15:45
Anyone know what this means?
[error] impossible to get artifacts when data has not been loaded. IvyNode = org.scalatest#scalatest_2.11;2.2.4
00:28:29 java.lang.IllegalStateException: impossible to get artifacts when data has not been loaded. IvyNode = org.scalatest#scalatest_2.11;2.2.4
Perry
@pfn
Oct 14 2016 15:54
@julienrf buggy how? if it compiles it should work fine
Julien Richard-Foy
@julienrf
Oct 14 2016 15:55
actually it’s maybe not buggy but the research path to get a key’s value based on its scope is harder to get right.
Perry
@pfn
Oct 14 2016 15:55
and for that matter, depends on what key 2 and key 3 are
Julien Richard-Foy
@julienrf
Oct 14 2016 15:55
they are tasks
Perry
@pfn
Oct 14 2016 15:55
yes, scopes number 1 problem in sbt
Julien Richard-Foy
@julienrf
Oct 14 2016 15:55
(in my case)
Perry
@pfn
Oct 14 2016 15:56
in that case, the latter scope gets overwritten
there is only 1 task scope axis
Jeff May
@jeffmay
Oct 14 2016 16:08
Ok, I was able to fix it by explicitly setting:
dependencyOverrides += "org.scalatest" %% "scalatest" % "2.2.6" % "test"
Perry
@pfn
Oct 14 2016 17:26
@dwijnand awww, I was hoping you @pinged me for a PR that was gonna add some sort of support
Dale Wijnand
@dwijnand
Oct 14 2016 17:27
Are you talking about sbt-unused?
Perry
@pfn
Oct 14 2016 17:27
yes
Dale Wijnand
@dwijnand
Oct 14 2016 17:31
yeah, I do think that that plugin is very worthwhile objective
Perry
@pfn
Oct 14 2016 17:31
I don't have time to do anything to improve it right now
Devis Lucato
@dluc
Oct 14 2016 20:45
anyone knows a reason why "show test:definedTestNames" works on OSX but instead returns an empty list in a Debian container?
Rafael Grillo
@grillorafael
Oct 14 2016 20:48
we can run from th eterminal sbt 'project projectName' clean
is there a way to run something similar but from inside sbt console?
like > project projectName clean
Dale Wijnand
@dwijnand
Oct 14 2016 20:48
projectId/clean
Rafael Grillo
@grillorafael
Oct 14 2016 20:48
cool
thank you :D
Dale Wijnand
@dwijnand
Oct 14 2016 20:52
@dluc See if running test:compile first fixes it.
Devis Lucato
@dluc
Oct 14 2016 21:17

@dwijnand compilation (sometimes) fails with this error I've been fighting the whole day:

File name too long
[error] This can happen on some encrypted or legacy file systems. Please see SI-3623 for more details.

frustrating at the least
RomanIakovlev
@RomanIakovlev
Oct 14 2016 21:18
IIRC it’s really the too long path problem. Try to make path to your project shorter.
Devis Lucato
@dluc
Oct 14 2016 21:18
easy to say :)
RomanIakovlev
@RomanIakovlev
Oct 14 2016 21:19
Is it on Windows?
Devis Lucato
@dluc
Oct 14 2016 21:19
I'll try moving the tests to the root, rather than following the convention of using the same NS of the code
@RomanIakovlev it's a docker container, under OSX
having the same problem with Debian and Alpine Linux (containers)
I got to this point because my Travis CI build is failing, and Travis uses Debian containers to test the code on their infra
RomanIakovlev
@RomanIakovlev
Oct 14 2016 21:21
I see. I might have seen it in container, too. But my memory is too short to remember how I fixed that...
Devis Lucato
@dluc
Oct 14 2016 21:22
I saw some suggestions to add a param to scalac, tried that and didn't work.
Let's see if changing the NS solves the problem
Starofall
@Starofall
Oct 14 2016 21:24
This message was deleted
Devis Lucato
@dluc
Oct 14 2016 22:34
turned out to be some problem with scala-arm. Since I removed that dependency, everything else works untouched