scala.meta.internal.ast.MergeException: encountered unexpected trees during syntactic + semantic merge: Term.ApplyInfix(Lit.Int(0), Term.Name("+"), Nil, Seq(Lit.Int(2))) Lit.Int(2) <-(Term.ApplyInfix) 0 + 2 ->(Lit.Int) 2

GitHub | ValentinRutz | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    q"0+ 2" gives scala.meta.internal.ast.MergeException

    GitHub | 1 year ago | ValentinRutz
    scala.meta.internal.ast.MergeException: encountered unexpected trees during syntactic + semantic merge: Term.ApplyInfix(Lit.Int(0), Term.Name("+"), Nil, Seq(Lit.Int(2))) Lit.Int(2) <-(Term.ApplyInfix) 0 + 2 ->(Lit.Int) 2

    Root Cause Analysis

    1. scala.meta.internal.ast.MergeException

      encountered unexpected trees during syntactic + semantic merge: Term.ApplyInfix(Lit.Int(0), Term.Name("+"), Nil, Seq(Lit.Int(2))) Lit.Int(2) <-(Term.ApplyInfix) 0 + 2 ->(Lit.Int) 2

      at scala.meta.internal.ast.mergeTrees$.fail()
    2. scala.meta.internal
      Adapter.defns
      1. scala.meta.internal.ast.mergeTrees$.fail(MergeTrees.scala:281)
      2. scala.meta.internal.ast.mergeTrees$.scala$meta$internal$ast$mergeTrees$$failCorrelate(MergeTrees.scala:246)
      3. scala.meta.internal.ast.mergeTrees$loop$2$.apply(MergeTrees.scala:175)
      4. scala.meta.internal.ast.mergeTrees$.apply(MergeTrees.scala:220)
      5. scala.meta.internal.hosts.scalac.contexts.Adapter.loop$1(Adapter.scala:118)
      6. scala.meta.internal.hosts.scalac.contexts.Adapter.loop$1(Adapter.scala:88)
      7. scala.meta.internal.hosts.scalac.contexts.Adapter.typecheck(Adapter.scala:121)
      8. scala.meta.internal.hosts.scalac.contexts.Adapter.defns(Adapter.scala:125)
      8 frames
    3. scala.meta.semantic
      Api$XtensionSemanticRefDefn.defn
      1. scala.meta.semantic.Api$XtensionSemanticRefDefn.defns(Api.scala:137)
      2. scala.meta.semantic.Api$XtensionSemanticRefDefn.defn(Api.scala:139)
      2 frames