These are chat archives for sbt/sbt

17th
Feb 2016
Eric K Richardson
@ekrich
Feb 17 2016 01:30
@reactormonk Not anymore in .sbt files if that is what you are asking.
Joe Arasin
@joearasin
Feb 17 2016 16:58
Is there any current tooling to look at if I want to run an IDE on one machine pointing at SBT on another?
Simon Hafner
@reactormonk
Feb 17 2016 17:00
Maybe ensime supports tramp - not sure.
nafg
@nafg
Feb 17 2016 17:00
@joearasin what do you mean pointing at SBT? What IDE?
Joe Arasin
@joearasin
Feb 17 2016 17:00
I’m open to suggestions on the IDE
In my mind, I’m editing code, it’s synced to a remote server running SBT, and when I click “build” in the IDE, it builds
not sure if this is crazy, currently feasible, or feasible-in-the-future
nafg
@nafg
Feb 17 2016 17:07
@joearasin what is your reason for wanting this
Feasible in the future yes - the plan is for sbt to be client/server based
Sam Halliday
@fommil
Feb 17 2016 17:34
@joearasin if your source code is synced already with the remote, you can do this today in emacs
actually, even an ssh connection on the remote
wouldn't you just need a button in your ide to sync the files, log in to that box and run the relevant command?
Joe Arasin
@joearasin
Feb 17 2016 17:36
@nafg Short-term: I don’t have enough memory on my dev box.
Long-term: It’d be great to be able to develop on an iPad.
Sam Halliday
@fommil
Feb 17 2016 17:51
scalanator is going to do that (for training). But you'll need a net connection the whole time
I can't imagine developing on a tablet to be any fun
the input devices are so limited
Joe Arasin
@joearasin
Feb 17 2016 17:53
“a tablet”? sure. But I’m pretty excited for when someone finally gets development right on the ipad pro
13” screen, long battery, and built-in 4g is plenty of good starting ground until we figure out the input device
Sam Halliday
@fommil
Feb 17 2016 17:55
you'll never be able to run the compiler locally on an iPad which means no tooling either, so everything needs to be remotely hosted. I think whatever you'd use would be based on ENSIME. Come join the fun if you'd like to help out
Joe Arasin
@joearasin
Feb 17 2016 19:54
That’s sort of what I was wondering in general — where’s the best place to start with “remote tooling"
so thanks!
I want to get it off my local box — perhaps a docker image that I can point something at the port and be happy?
Benjamin Darfler
@bdarfler
Feb 17 2016 20:42
Is there something "special" about IntegrationTest vs another Config I create manually. Specifically when it comes to dependencyClasspath? scoverage/sbt-scoverage#141
eugene yokota
@eed3si9n
Feb 17 2016 20:43
@bdarfler not in the configuration per se
Benjamin Darfler
@bdarfler
Feb 17 2016 20:45
Me either but I am
  configs(FunTest, IntegrationTest)
  settings(inConfig(FunTest)(Defaults.testSettings): _*),
  settings(inConfig(IntegrationTest)(Defaults.testSettings): _*)
and in Config.scala
```scala
lazy val FunTest = config("fun") extend (Test)
could there be an issue with init order? in the coverage plugin it adds the deps to the global librariesDependencies but somehow IntegrationTest picks them up but not FunTest?
eugene yokota
@eed3si9n
Feb 17 2016 20:52
that might be a question you might want to ask the authors of the plugin
Benjamin Darfler
@bdarfler
Feb 17 2016 20:53
yah, ok, well I'll temporarily rule out sbt itself then ;-)
Benjamin Darfler
@bdarfler
Feb 17 2016 21:38

@eed3si9n I think I might have narrowed this down to an sbt thing

I removed the sbt-scoverage plugin and instead added the dependency manually "org.scoverage" %% "scalac-scoverage-runtime" % "1.0.4" % "provided"

I've created a FunTest config as directed in the sbt docs lazy val FunTest = config("fun") extend (Test)

and init both the FunTest and IntegrationTest like so

lazy val skeleton = (project in file(".")).
  configs(FunTest, IntegrationTest).
  settings(inConfig(FunTest)(Defaults.testSettings): _*).
  settings(inConfig(IntegrationTest)(Defaults.testSettings): _*)

then when I go into sbt and run show fun:managedClasspath and show it:managedClasspath the dependency shows up in it but not in fun

> show fun:managedClasspath
[info] List(Attributed(/Users/Bdarfler/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.7.jar), Attributed(/Users/Bdarfler/.ivy2/cache/com.typesafe.scala-logging/scala-logging_2.11/jars/scala-logging_2.11-3.1.0.jar), Attributed(/Users/Bdarfler/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.11.7.jar), Attributed(/Users/Bdarfler/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.7.7.jar), Attributed(/Users/Bdarfler/.ivy2/cache/org.scalacheck/scalacheck_2.11/jars/scalacheck_2.11-1.13.0.jar), Attributed(/Users/Bdarfler/.ivy2/cache/org.scala-sbt/test-interface/jars/test-interface-1.0.jar), Attributed(/Users/Bdarfler/.ivy2/cache/org.scalatest/scalatest_2.11/bundles/scalatest_2.11-2.2.6.jar), Attributed(/Users/Bdarfler/.ivy2/cache/org.scala-lang.modules/scala-xml_2.11/bundles/scala-xml_2.11-1.0.2.jar))
[success] Total time: 0 s, completed Feb 17, 2016 4:37:46 PM
> show it:managedClasspath
[info] List(Attributed(/Users/Bdarfler/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.7.jar), Attributed(/Users/Bdarfler/.ivy2/cache/com.typesafe.scala-logging/scala-logging_2.11/jars/scala-logging_2.11-3.1.0.jar), Attributed(/Users/Bdarfler/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.11.7.jar), Attributed(/Users/Bdarfler/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.7.7.jar), Attributed(/Users/Bdarfler/.ivy2/cache/org.scalacheck/scalacheck_2.11/jars/scalacheck_2.11-1.13.0.jar), Attributed(/Users/Bdarfler/.ivy2/cache/org.scala-sbt/test-interface/jars/test-interface-1.0.jar), Attributed(/Users/Bdarfler/.ivy2/cache/org.scalatest/scalatest_2.11/bundles/scalatest_2.11-2.2.6.jar), Attributed(/Users/Bdarfler/.ivy2/cache/org.scala-lang.modules/scala-xml_2.11/bundles/scala-xml_2.11-1.0.2.jar), Attributed(/Users/Bdarfler/.ivy2/cache/org.scoverage/scalac-scoverage-runtime_2.11/jars/scalac-scoverage-runtime_2.11-1.0.4.jar))
[success] Total time: 0 s, completed Feb 17, 2016 4:37:52 PM
I'm sure I can make a very simple repo to repro if that would be helpful. Its probably doing the right thing ™ but just not what I was hoping it would do.
Also happy to open an issue if need be
eugene yokota
@eed3si9n
Feb 17 2016 22:19
@bdarfler that sounds like a tight enough case on sbt. plz open an issue :)
I noticed that there's IntegrationTestInternal so maybe i was wrong about it not being special
Benjamin Darfler
@bdarfler
Feb 17 2016 22:47
Cool, will do in the AM.