Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Flavio W. Brasil
    @fwbrasil
    @jto does the error happen during the sbt initialization? could you send the log?
    Julien Tournay
    @jto
    @fwbrasil yep
    [info] Loading global plugins from /Users/jto/.sbt/0.13/plugins
    [info] Loading project definition from /private/tmp/bond/project
    [warn] There may be incompatibilities among your library dependencies.
    [warn] Here are some of the libraries that were evicted:
    [warn]     * com.typesafe.sbt:sbt-native-packager:0.7.4 -> 0.8.0-RC2
    [warn] Run 'evicted' to see detailed eviction warnings
    java.lang.ClassCastException: Cannot cast com.typesafe.sbt.SbtPgp$ to sbt.AutoPlugin
        at java.lang.Class.cast(Class.java:3176)
        at sbt.ModuleUtilities$.getCheckedObject(ModuleUtilities.scala:20)
        at sbt.ModuleUtilities$$anonfun$getCheckedObjects$1.apply(ModuleUtilities.scala:23)
        at sbt.ModuleUtilities$$anonfun$getCheckedObjects$1.apply(ModuleUtilities.scala:23)
        at scala.collection.immutable.Stream$$anonfun$map$1.apply(Stream.scala:376)
        at scala.collection.immutable.Stream$$anonfun$map$1.apply(Stream.scala:376)
        at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1085)
        at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1077)
        at scala.collection.immutable.Stream.foreach(Stream.scala:548)
        at scala.collection.generic.Growable$class.$plus$plus$eq(Growable.scala:48)
        at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:176)
        at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:45)
        at scala.collection.TraversableLike$class.to(TraversableLike.scala:629)
        at scala.collection.AbstractTraversable.to(Traversable.scala:105)
        at scala.collection.TraversableOnce$class.toList(TraversableOnce.scala:257)
        at scala.collection.AbstractTraversable.toList(Traversable.scala:105)
        at scala.collection.immutable.List.$plus$plus(List.scala:193)
        at sbt.PluginDiscovery$.discoverAll(PluginDiscovery.scala:38)
        at sbt.Load$.loadPlugins(Load.scala:833)
        at sbt.Load$.loadPluginDefinition(Load.scala:790)
        at sbt.Load$.buildPlugins(Load.scala:785)
        at sbt.Load$.plugins(Load.scala:773)
        at sbt.Load$.loadUnit(Load.scala:431)
        at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
        at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
        at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:91)
        at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:90)
        at sbt.BuildLoader.apply(BuildLoader.scala:140)
        at sbt.Load$.loadAll(Load.scala:334)
        at sbt.Load$.loadURI(Load.scala:289)
        at sbt.Load$.load(Load.scala:285)
        at sbt.Load$.load(Load.scala:276)
        at sbt.Load$.apply(Load.scala:130)
        at sbt.Load$.defaultLoad(Load.scala:36)
        at sbt.BuiltinCommands$.doLoadProject(Main.scala:481)
        at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
        at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
        at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58)
        at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58)
        at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)
        at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)
        at sbt.Command$.process(Command.scala:92)
        at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
        at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
        at sbt.State$$anon$1.process(State.scala:184)
        at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
        at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
        at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
        at sbt.MainLoop$.next(MainLoop.scala:98)
        at sbt.MainLoop$.run(MainLoop.scala:91)
        at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:70)
        at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:65)
        at sbt.Using.apply(Using.scala:24)
        at sbt.MainLoop$.runWithNewLog(MainLoop.scala:65)
        at sbt.MainLoop$.runAndClearLast(MainLoop.scala:48)
        at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:32)
        at sbt.MainLoop$.runLogged(MainLoop.scala:24)
        at sbt.StandardMain$.runManaged(Main.scala:53)
        at sbt.xMain.run(Main.scala:28)
        at xsbt.boot.Launch$$anonfun$
    Flavio W. Brasil
    @fwbrasil
    @jto I’ve removed the sbt-pgp plugin. It should work after a pull
    Julien Tournay
    @jto
    it does. Ths :)
    thx
    Flavio W. Brasil
    @fwbrasil
    :)
    Matthew Pocock
    @drdozer
    HI @fwbrasil - I saw this on the scala mailing list
    Flavio W. Brasil
    @fwbrasil
    hey @drdozer
    Matthew Pocock
    @drdozer
    very timely - I'm currently doing a re-implementation of xsd (http://www.w3.org/TR/xmlschema-2/) as first-class scala types
    Flavio W. Brasil
    @fwbrasil
    interesting! are you planning to use bond?
    Matthew Pocock
    @drdozer
    well we are aggressively splitting the code into 2 - one layer looks as close as we can get to a rendering of the specification into scala
    the next layer down is a concrete implementation that the compiler can then validate conforms to the first layer, and therefore, hopefully to the spec
    so bond would be great for the implementation layer
    Flavio W. Brasil
    @fwbrasil
    nice, will it be open source?
    Matthew Pocock
    @drdozer
    yes
    Flavio W. Brasil
    @fwbrasil
    cool, let me know if I can help with something :)
    Matthew Pocock
    @drdozer
    I'd like it to be possible to write scala programs that use the xsd datatypes as if they were native, and to be able to extend them
    so you could say Person(age: xs#positiveInteger)
    and hasFacet[xs#positiveInteger, xs#greaterThan](0) === true
    Flavio W. Brasil
    @fwbrasil
    yeah, it looks similar to what bond does
    Matthew Pocock
    @drdozer
    right ;)
    Ghost
    @ghost~54a283bfdb8155e6700e3f59
    Hi! I've a question about custom validations. The docs are saying that "one needs to manually guarantee that the validation class is compiled before the lift macro expansion". Why?
    Flavio W. Brasil
    @fwbrasil
    Hi @xeno-by. The macro uses reflection to invoke the isValid method that is implemented by the validation class.
    so the validation class must be already compiled and the bytecode available in the classpath
    Ghost
    @ghost~54a283bfdb8155e6700e3f59
    "Use the fact that Scala compiles resources in alphabetical order (including the package name)"
    How does this help?
    Even if the validation is defined in A.scala and the use is in B.scala
    Then you won't be able to reflectively call A.scala if you compile the project as scalac A.scala B.scala
    Flavio W. Brasil
    @fwbrasil
    Interesting, I was under the impression that it would compile A first
    I'll take a look as soon I have some free time
    Thanks for reporting this @xeno-by
    Ghost
    @ghost~54a283bfdb8155e6700e3f59
    It definitely won't. All inputs are compiled in a lockstep. First, we run parser on everything, then we run namer on everything, then typer on everything (this is when macros expand), then other compiler phases.
    Franklin Chen
    @FranklinChen
    @drdozer Ooh, I am actually migrating a JAXB-based Java program to Scala at the moment, would love to be able to use a better XSD system.