These are chat archives for sbt/sbt

29th
Oct 2015
Pius Friesch
@isn0gud
Oct 29 2015 14:40
Hey, i am on os x and the file system of os x creates these little files with meta information. They start with "._" but sbt wants to parse them as xml and fails. how do i tell sbt to ignore them?
Perry
@pfn
Oct 29 2015 14:42
by filtering it from whatever is failing
Pius Friesch
@isn0gud
Oct 29 2015 14:45
Error:Failed to load project configuration: cannot parse xml file. how do i filter form the configuration? http://www.scala-sbt.org/0.13.2/docs/Howto/defaultpaths.html only says how to filter sources
Perry
@pfn
Oct 29 2015 14:55
sbt doesn't parse xml files
you have a plugin that does that
paste stack
Pius Friesch
@isn0gud
Oct 29 2015 14:59
// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")
Error:Error while importing SBT project:
.../._build.sbt:1: error: illegal character '\u0000'
sorry the real error
Pius Friesch
@isn0gud
Oct 29 2015 15:07
k, deleted the files with the routine dot_clean but i am still interested in a sbt solution
pfn @pfn shrugs
Sam Halliday
@fommil
Oct 29 2015 21:44
my work project is extremely large and (one way) I can get at the build definition is by inspecting the Eclipse files. I'm planning on writing a project/Build.scala that will dynamically build up the project definition by parsing the eclipse files. However, I don't know how to do inter-Project dependencies. How can I call dependsOn when I only know the names of the dependencies, and don't have the fully formed Project instances yet.
I'd rather not have to build up a Map[String, Project] and then build it up from leaf to trunk (which will require some mental juggling)
I'm assuming there is some way of registering the Projects, as I can't set them as lazy vals like a static project definition.
eugene yokota
@eed3si9n
Oct 29 2015 22:10
@fommil
lazy val a = project

lazy val b = project.dependsOn(LocalProject("c"))

lazy val c = project
Sam Halliday
@fommil
Oct 29 2015 22:12
@eed3si9n cool! I was hoping for something like that
@eed3si9n but I can't create lazy vals so what do I override to provide the Seq[Project]?
eugene yokota
@eed3si9n
Oct 29 2015 22:35
@fommil not sure without digging in, but there might be def projects or some such?