Skip to content

Instantly share code, notes, and snippets.

@fommil
Last active August 28, 2017 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fommil/72422bfe3a4df0f428aa817d7ad3169a to your computer and use it in GitHub Desktop.
Save fommil/72422bfe3a4df0f428aa817d7ad3169a to your computer and use it in GitHub Desktop.
[info] java.lang.NoSuchMethodError: xmlformat.examples.Optimal$: method <init>()V not found
[info] at xmlformat.examples.Optimal$.<clinit>(examples.scala)
[info] at xmlformat.EncoderTests.$anonfun$new$16(EncoderTests.scala:113)
[info] at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
ModuleDef(Modifiers(), TermName("Optimal"), Template(List(), noSelfType, List(ValDef(Modifiers(IMPLICIT), TermName("xmlformat$u002EEncoder"), AppliedTypeTree(Select(Ident(xmlformat), TypeName("Encoder")), List(Ident(TypeName("Optimal")))), Apply(Select(TypeApply(Select(Select(Select(Ident(termNames.ROOTPKG), TermName("scala")), TermName("Predef")), TermName("implicitly")), List(AppliedTypeTree(Select(Ident(xmlformat), TypeName("Encoder")), List(Ident(TypeName("String")))))), TermName("xmap")), List(Function(List(ValDef(Modifiers(PARAM | SYNTHETIC), TermName("x"), TypeTree(), EmptyTree)), Apply(Select(New(Ident(TypeName("Optimal"))), termNames.CONSTRUCTOR), List(Ident(TermName("x"))))), Function(List(ValDef(Modifiers(PARAM | SYNTHETIC), TermName("x"), TypeTree(), EmptyTree)), Select(Ident(TermName("x")), TermName("thing")))))), ValDef(Modifiers(IMPLICIT), TermName("xmlformat$u002EDecoder"), AppliedTypeTree(Select(Ident(xmlformat), TypeName("Decoder")), List(Ident(TypeName("Optimal")))), Apply(Select(TypeApply(Select(Select(Select(Ident(termNames.ROOTPKG), TermName("scala")), TermName("Predef")), TermName("implicitly")), List(AppliedTypeTree(Select(Ident(xmlformat), TypeName("Decoder")), List(Ident(TypeName("String")))))), TermName("xmap")), List(Function(List(ValDef(Modifiers(PARAM | SYNTHETIC), TermName("x"), TypeTree(), EmptyTree)), Apply(Select(New(Ident(TypeName("Optimal"))), termNames.CONSTRUCTOR), List(Ident(TermName("x"))))), Function(List(ValDef(Modifiers(PARAM | SYNTHETIC), TermName("x"), TypeTree(), EmptyTree)), Select(Ident(TermName("x")), TermName("thing")))))))))
and same for Foo
ModuleDef(Modifiers(), TermName("Foo"), Template(List(), noSelfType, List(ValDef(Modifiers(IMPLICIT), TermName("xmlformat$u002EEncoder"), AppliedTypeTree(Select(Ident(xmlformat), TypeName("Encoder")), List(Ident(TypeName("Foo")))), Select(Select(Ident(xmlformat), TermName("DerivedEncoder")), TermName("gen"))), ValDef(Modifiers(IMPLICIT), TermName("xmlformat$u002EDecoder"), AppliedTypeTree(Select(Ident(xmlformat), TypeName("Decoder")), List(Ident(TypeName("Foo")))), Select(Select(Ident(xmlformat), TermName("DerivedDecoder")), TermName("gen"))))))
generated for
@deriving(Encoder, Decoder) final case class Foo(s: String) extends SimpleTrait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment