Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by ValentinRutz
, 1 year ago
encountered unexpected trees during syntactic + semantic merge: Term.ApplyInfix(Lit(3), Term.Name("::"), Nil, Seq(Term.Name("x"))) Term.Block(Seq(Defn.Val(Nil, Seq(Pat.Var.Term(Term.Name("x$1"))), Some(Type.Name("Int")), Lit(3)), Term.Apply
via GitHub by ValentinRutz
, 1 year ago
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
scala.meta.internal.ast.MergeException: encountered unexpected trees during syntactic + semantic merge:
 Term.ApplyInfix(Lit(3), Term.Name("::"), Nil, Seq(Term.Name("x")))
 Term.Block(Seq(Defn.Val(Nil, Seq(Pat.Var.Term(Term.Name("x$1"))), Some(Type.Name("Int")), Lit(3)), Term.Apply(Term.ApplyType(Term.Select(Term.Name("x"), Term.Name("::")), Seq(Type.Name("Int"))), Seq(Term.Name("x$1")))))
 <-(Term.ApplyInfix) 3 :: x
 ->(Term.Block) {   val x$1: Int = 3   x.::[Int](x$1) }
 <-(Term.Block) {   val x = List(2)   3 :: x }
 ->(Term.Block) {   val x: List[Int] = immutable.this.List.apply[Int](2)   {...	at scala.meta.internal.ast.mergeTrees$.fail(MergeTrees.scala:403)	at scala.meta.internal.ast.mergeTrees$.scala$meta$internal$ast$mergeTrees$$failCorrelate(MergeTrees.scala:368)	at scala.meta.internal.ast.mergeTrees$loop$2$.apply(MergeTrees.scala:266)	at scala.meta.internal.ast.mergeTrees$.apply(MergeTrees.scala:338)	at scala.meta.internal.ast.mergeTrees$loop$2$.apply(MergeTrees.scala:47)	at scala.meta.internal.ast.mergeTrees$loop$2$$anonfun$apply$2.apply(MergeTrees.scala:330)	at scala.meta.internal.ast.mergeTrees$loop$2$$anonfun$apply$2.apply(MergeTrees.scala:330)	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)	at scala.collection.immutable.List.foreach(List.scala:381)