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) {...

GitHub | ValentinRutz | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    converter doesn't handle right-associative operators

    GitHub | 1 year ago | ValentinRutz
    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) {...
  2. 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
  3. 0

    InvariantFailedException?

    GitHub | 5 months ago | DavidDudson
    org.scalameta.invariants.InvariantFailedException: invariant failed: when verifying pats.forall(((x$14: scala.meta.Pat) => scala.meta.classifiers.`package`.XtensionClassifiable[scala.meta.Pat](x$14)(scala.meta.Tree.classifiable[scala.meta.Pat]).is[Term.Name](Term.this.Name.ClassifierClass[scala.meta.Pat]).`unary_!`)) found that pats.forall(((x$14: scala.meta.Pat) => scala.meta.classifiers.`package`.XtensionClassifiable[scala.meta.Pat](x$14)(scala.meta.Tree.classifiable[scala.meta.Pat]).is[Term.Name](Term.this.Name.ClassifierClass[scala.meta.Pat]).`unary_!`)) is false where Term = scala.meta.Term$@136c21a6 where pats = List(stateInitial)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I encountered java.lang.AssertionError, when I compile my project [slick-pg](https://github.com/tminglei/slick-pg). Here's related [change](https://github.com/tminglei/slick-pg/commit/7e3976d854be9287159acfe950afb6e3cef9d519) / (https://github.com/tminglei/slick-pg/commit/8e172a8de8cecc56aa9c5eaf9ba97a74b51b4026), and related codes: {code:title=src/test/scala/com/github/tminglei/slickpg/PgAggFunctionTest.scala} @Test def testAggFunctions(): Unit = { db withSession { implicit session: Session => import PgAggregateFunctions._ /// tabs ++= Seq( Tab("foo", 1, 103.05, 179.17), Tab("quux", 3, 57.39, 99.07), Tab("bar", 2, 35.89, 101.33), Tab("bar", 11, 73.75, 28.57) ) val q = tabs.map(t => (t.name ^: StringAgg(",").forDistinct().orderBy(t.name), t.count ^: Avg[Int])) println(s"q = ${q.selectStatement}") assertEquals(("bar,foo,quux", 4), q.first) val q1 = tabs.map(t => (t.y, t.x) ^: Corr()) println(s"q = ${q1.selectStatement}") assertEquals(0.45, q1.first, 0.01) } } {code} Here's the exception output: {code} > test:compile [info] Compiling 9 Scala sources to /MySpace/Workspace/repos/slick-pg/target/scala-2.10/test-classes... [error] uncaught exception during compilation: java.lang.AssertionError [trace] Stack trace suppressed: run last slick-pg/test:compile for the full output. [error] (slick-pg/test:compile) java.lang.AssertionError: assertion failed: [error] while compiling: /MySpace/Workspace/repos/slick-pg/src/test/scala/com/github/tminglei/slickpg/PgAggFunctionTest.scala [error] during phase: erasure [error] library version: version 2.10.3 [error] compiler version: version 2.10.3 [error] reconstructed args: -bootclasspath /usr/lib64/icedtea7/jre/lib/resources.jar:/usr/lib64/icedtea7/jre/lib/rt.jar:/usr/lib64/icedtea7/jre/lib/sunrsasign.jar:/usr/lib64/icedtea7/jre/lib/jsse.jar:/usr/lib64/icedtea7/jre/lib/jce.jar:/usr/lib64/icedtea7/jre/lib/charsets.jar:/usr/lib64/icedtea7/jre/lib/netx.jar:/usr/lib64/icedtea7/jre/lib/plugin.jar:/usr/lib64/icedtea7/jre/lib/rhino.jar:/usr/lib64/icedtea7/jre/lib/jfr.jar:/usr/lib64/icedtea7/jre/classes:/home/tminglei/.sbt/boot/scala-2.10.3/lib/scala-library.jar -deprecation -language:implicitConversions -language:reflectiveCalls -language:higherKinds -language:postfixOps -feature -classpath /MySpace/Workspace/repos/slick-pg/target/scala-2.10/test-classes:/MySpace/Workspace/repos/slick-pg/target/scala-2.10/classes:/MySpace/Workspace/repos/slick-pg/core/target/scala-2.10/classes:/home/tminglei/.sbt/boot/scala-2.10.3/lib/scala-reflect.jar:/home/tminglei/.m2/repository/com/typesafe/slick/slick_2.10/2.1.0-SNAPSHOT/slick_2.10-2.1.0-SNAPSHOT.jar:/home/tminglei/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.4.jar:/home/tminglei/.ivy2/cache/org.postgresql/postgresql/jars/postgresql-9.3-1100-jdbc41.jar:/home/tminglei/.ivy2/cache/junit/junit/jars/junit-4.11.jar:/home/tminglei/.ivy2/cache/org.hamcrest/hamcrest-core/jars/hamcrest-core-1.3.jar:/home/tminglei/.ivy2/cache/com.novocode/junit-interface/jars/junit-interface-0.10.jar:/home/tminglei/.ivy2/cache/junit/junit-dep/jars/junit-dep-4.10.jar:/home/tminglei/.ivy2/cache/org.scala-tools.testing/test-interface/jars/test-interface-0.5.jar [error] [error] last tree to typer: TypeTree(trait DDL) [error] symbol: trait DDL in trait SqlProfile (flags: <interface> abstract <trait> <lateinterface>) [error] symbol definition: abstract trait DDL extends SqlProfile.this.SchemaDescriptionDef [error] tpe: slick.profile.SqlProfile#DDL [error] symbol owners: trait DDL -> trait SqlProfile -> package profile [error] context owners: value x$2 -> method apply -> anonymous class $anonfun -> value q -> method apply -> anonymous class $anonfun -> method testAggFunctions -> class PgAggFunctionTest -> package slickpg [error] [error] == Enclosing template or block == [error] [error] DefDef( // final def apply(t: PgAggFunctionTest.this.Tabs): (scala.slick.lifted.Column[String], scala.slick.lifted.Column[Int]) [error] <method> final [error] "apply" [error] [] [error] // 1 parameter list [error] ValDef( // t: PgAggFunctionTest.this.Tabs [error] <param> <triedcooking> [error] "t" [error] <tpt> // tree.tpe=com.github.tminglei.slickpg.PgAggFunctionTest#Tabs [error] <empty> [error] ) [error] <tpt> // tree.tpe=Tuple2 [error] Apply( // def <init>(_1: T1,_2: T2): (T1, T2) in class Tuple2, tree.tpe=(scala.slick.lifted.Column[String], scala.slick.lifted.Column[Int]) [error] new Tuple2."<init>" // def <init>(_1: T1,_2: T2): (T1, T2) in class Tuple2 [error] // 2 arguments [error] Block( // tree.tpe=scala.slick.lifted.Column[String] [error] ValDef( // val x$2: scala.slick.lifted.Column[String] [error] <synthetic> <triedcooking> [error] "x$2" [error] <tpt> // tree.tpe=slick.lifted.Column [error] Apply( // def name(): scala.slick.lifted.Column[String] in class Tabs [error] "t"."name" // def name(): scala.slick.lifted.Column[String] in class Tabs [error] Nil [error] ) [error] ) [error] Apply( // def ^:[P1, PR](expr: scala.slick.lifted.Column[P1],implicit tm: scala.slick.jdbc.JdbcType[R],implicit om: scala.slick.lifted.OptionMapper2[T,T,R,P1,P1,PR]): scala.slick.lifted.Column[PR] in trait UnaryAggFunction, tree.tpe=scala.slick.lifted.Column[String] [error] TypeApply( // def ^:[P1, PR](expr: scala.slick.lifted.Column[P1],implicit tm: scala.slick.jdbc.JdbcType[R],implicit om: scala.slick.lifted.OptionMapper2[T,T,R,P1,P1,PR]): scala.slick.lifted.Column[PR] in trait UnaryAggFunction, tree.tpe=(expr: scala.slick.lifted.Column[String], implicit tm: scala.slick.jdbc.JdbcType[String], implicit om: scala.slick.lifted.OptionMapper2[String,String,String,String,String,String])scala.slick.lifted.Column[String] [error] new com.github.tminglei.slickpg.agg.PgAggregateExtensions#PgAggregateFunctions#StringAgg(slickpg.this.MyPostgresDriver.simple.PgAggregateFunctions, ",").forDistinct().orderBy(MyPostgresDriver.simple().columnToOrdered[String](t.name()))."$up$colon" // def ^:[P1, PR](expr: scala.slick.lifted.Column[P1],implicit tm: scala.slick.jdbc.JdbcType[R],implicit om: scala.slick.lifted.OptionMapper2[T,T,R,P1,P1,PR]): scala.slick.lifted.Column[PR] in trait UnaryAggFunction, tree.tpe=[P1, PR](expr: scala.slick.lifted.Column[P1], implicit tm: scala.slick.jdbc.JdbcType[String], implicit om: scala.slick.lifted.OptionMapper2[String,String,String,P1,P1,PR])scala.slick.lifted.Column[PR] [error] // 2 type arguments [error] <tpt> // tree.tpe=String [error] <tpt> // tree.tpe=String [error] ) [error] // 3 arguments [error] "x$2" // val x$2: scala.slick.lifted.Column[String], tree.tpe=scala.slick.lifted.Column[String] [error] Apply( // implicit def stringColumnType(): JdbcTypesComponent.this.columnTypes.StringJdbcType in trait ImplicitColumnTypes, tree.tpe=com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.StringJdbcType [error] MyPostgresDriver.simple()."stringColumnType" // implicit def stringColumnType(): JdbcTypesComponent.this.columnTypes.StringJdbcType in trait ImplicitColumnTypes, tree.tpe=()com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.StringJdbcType [error] Nil [error] ) [error] Apply( // implicit def getOptionMapper2TT[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2]): scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] in object OptionMapper2, tree.tpe=scala.slick.lifted.OptionMapper2[String,String,String,String,String,String] [error] TypeApply( // implicit def getOptionMapper2TT[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2]): scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] in object OptionMapper2, tree.tpe=(evidence$1: scala.slick.ast.BaseTypedType[String])scala.slick.lifted.OptionMapper2[String,String,String,String,String,String] [error] lifted.this."OptionMapper2"."getOptionMapper2TT" // implicit def getOptionMapper2TT[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2]): scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] in object OptionMapper2, tree.tpe=[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2])scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] [error] // 3 type arguments [error] <tpt> // tree.tpe=String [error] <tpt> // tree.tpe=String [error] <tpt> // tree.tpe=String [error] ) [error] Apply( // implicit def stringColumnType(): JdbcTypesComponent.this.columnTypes.StringJdbcType in trait ImplicitColumnTypes, tree.tpe=com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.StringJdbcType [error] MyPostgresDriver.simple()."stringColumnType" // implicit def stringColumnType(): JdbcTypesComponent.this.columnTypes.StringJdbcType in trait ImplicitColumnTypes, tree.tpe=()com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.StringJdbcType [error] Nil [error] ) [error] ) [error] ) [error] ) [error] Block( // tree.tpe=scala.slick.lifted.Column[Int] [error] ValDef( // val x$3: scala.slick.lifted.Column[Int] [error] <synthetic> <triedcooking> [error] "x$3" [error] <tpt> // tree.tpe=scala.slick.lifted.Column[Int] [error] Apply( // def count(): scala.slick.lifted.Column[Int] in class Tabs, tree.tpe=scala.slick.lifted.Column[Int] [error] "t"."count" // def count(): scala.slick.lifted.Column[Int] in class Tabs, tree.tpe=()scala.slick.lifted.Column[Int] [error] Nil [error] ) [error] ) [error] Apply( // def ^:[P1, PR](expr: scala.slick.lifted.Column[P1],implicit tm: scala.slick.jdbc.JdbcType[R],implicit om: scala.slick.lifted.OptionMapper2[T,T,R,P1,P1,PR]): scala.slick.lifted.Column[PR] in trait UnaryAggFunction, tree.tpe=scala.slick.lifted.Column[Int] [error] TypeApply( // def ^:[P1, PR](expr: scala.slick.lifted.Column[P1],implicit tm: scala.slick.jdbc.JdbcType[R],implicit om: scala.slick.lifted.OptionMapper2[T,T,R,P1,P1,PR]): scala.slick.lifted.Column[PR] in trait UnaryAggFunction, tree.tpe=(expr: scala.slick.lifted.Column[Int], implicit tm: scala.slick.jdbc.JdbcType[Int], implicit om: scala.slick.lifted.OptionMapper2[Int,Int,Int,Int,Int,Int])scala.slick.lifted.Column[Int] [error] new com.github.tminglei.slickpg.MyPostgresDriver.simple.PgAggregateFunctions.Avg[Int](slickpg.this.MyPostgresDriver.simple.PgAggregateFunctions)."$up$colon" // def ^:[P1, PR](expr: scala.slick.lifted.Column[P1],implicit tm: scala.slick.jdbc.JdbcType[R],implicit om: scala.slick.lifted.OptionMapper2[T,T,R,P1,P1,PR]): scala.slick.lifted.Column[PR] in trait UnaryAggFunction, tree.tpe=[P1, PR](expr: scala.slick.lifted.Column[P1], implicit tm: scala.slick.jdbc.JdbcType[Int], implicit om: scala.slick.lifted.OptionMapper2[Int,Int,Int,P1,P1,PR])scala.slick.lifted.Column[PR] [error] // 2 type arguments [error] <tpt> // tree.tpe=Int [error] <tpt> // tree.tpe=Int [error] ) [error] // 3 arguments [error] "x$3" // val x$3: scala.slick.lifted.Column[Int], tree.tpe=scala.slick.lifted.Column[Int] [error] Apply( // implicit def intColumnType(): JdbcTypesComponent.this.columnTypes.IntJdbcType in trait ImplicitColumnTypes, tree.tpe=com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.IntJdbcType [error] MyPostgresDriver.simple()."intColumnType" // implicit def intColumnType(): JdbcTypesComponent.this.columnTypes.IntJdbcType in trait ImplicitColumnTypes, tree.tpe=()com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.IntJdbcType [error] Nil [error] ) [error] Apply( // implicit def getOptionMapper2TT[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2]): scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] in object OptionMapper2, tree.tpe=scala.slick.lifted.OptionMapper2[Int,Int,Int,Int,Int,Int] [error] TypeApply( // implicit def getOptionMapper2TT[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2]): scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] in object OptionMapper2, tree.tpe=(evidence$1: scala.slick.ast.BaseTypedType[Int])scala.slick.lifted.OptionMapper2[Int,Int,Int,Int,Int,Int] [error] lifted.this."OptionMapper2"."getOptionMapper2TT" // implicit def getOptionMapper2TT[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2]): scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] in object OptionMapper2, tree.tpe=[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2])scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] [error] // 3 type arguments [error] <tpt> // tree.tpe=Int [error] <tpt> // tree.tpe=Int [error] <tpt> // tree.tpe=Int [error] ) [error] Apply( // implicit def intColumnType(): JdbcTypesComponent.this.columnTypes.IntJdbcType in trait ImplicitColumnTypes, tree.tpe=com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.IntJdbcType [error] MyPostgresDriver.simple()."intColumnType" // implicit def intColumnType(): JdbcTypesComponent.this.columnTypes.IntJdbcType in trait ImplicitColumnTypes, tree.tpe=()com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.IntJdbcType [error] Nil [error] ) [error] ) [error] ) [error] ) [error] ) [error] ) [error] [error] == Expanded type of tree == [error] [error] TypeRef( [error] pre = TypeRef( [error] TypeSymbol( [error] abstract trait SqlProfile extends RelationalProfile with SqlExecutorComponent with SqlTableComponent [error] [error] ) [error] ) [error] TypeSymbol( [error] abstract trait DDL extends SqlProfile.this.SchemaDescriptionDef [error] ) [error] ) [error] [error] object PgAggregateFunctions [error] Total time: 37 s, completed May 1, 2014 4:39:30 PM {code} What's wrong? Can you tell me what shall I do?

    Scala JIRA | 3 years ago | Minglei Tu
    java.lang.AssertionError: assertion failed: while compiling: /MySpace/Workspace/repos/slick-pg/src/test/scala/com/github/tminglei/slickpg/PgAggFunctionTest.scala during phase: erasure library version: version 2.10.4 compiler version: version 2.10.4 reconstructed args: -deprecation -language:implicitConversions -language:reflectiveCalls -language:higherKinds -language:postfixOps -feature -classpath /MySpace/Workspace/repos/slick-pg/target/scala-2.10/test-classes:/MySpace/Workspace/repos/slick-pg/target/scala-2.10/classes:/MySpace/Workspace/repos/slick-pg/core/target/scala-2.10/classes:/home/tminglei/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.10.4.jar:/home/tminglei/.m2/repository/com/typesafe/slick/slick_2.10/2.1.0-SNAPSHOT/slick_2.10-2.1.0-SNAPSHOT.jar:/home/tminglei/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.4.jar:/home/tminglei/.ivy2/cache/org.postgresql/postgresql/jars/postgresql-9.3-1100-jdbc41.jar:/home/tminglei/.ivy2/cache/junit/junit/jars/junit-4.11.jar:/home/tminglei/.ivy2/cache/org.hamcrest/hamcrest-core/jars/hamcrest-core-1.3.jar:/home/tminglei/.ivy2/cache/com.novocode/junit-interface/jars/junit-interface-0.10.jar:/home/tminglei/.ivy2/cache/junit/junit-dep/jars/junit-dep-4.10.jar:/home/tminglei/.ivy2/cache/org.scala-tools.testing/test-interface/jars/test-interface-0.5.jar -bootclasspath /usr/lib64/icedtea7/jre/lib/resources.jar:/usr/lib64/icedtea7/jre/lib/rt.jar:/usr/lib64/icedtea7/jre/lib/sunrsasign.jar:/usr/lib64/icedtea7/jre/lib/jsse.jar:/usr/lib64/icedtea7/jre/lib/jce.jar:/usr/lib64/icedtea7/jre/lib/charsets.jar:/usr/lib64/icedtea7/jre/lib/netx.jar:/usr/lib64/icedtea7/jre/lib/plugin.jar:/usr/lib64/icedtea7/jre/lib/rhino.jar:/usr/lib64/icedtea7/jre/lib/jfr.jar:/usr/lib64/icedtea7/jre/classes:/home/tminglei/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.10.4.jar last tree to typer: TypeTree(trait DDL) symbol: trait DDL in trait SqlProfile (flags: <interface> abstract <trait> <lateinterface>) symbol definition: abstract trait DDL extends SqlProfile.this.SchemaDescriptionDef tpe: slick.profile.SqlProfile#DDL symbol owners: trait DDL -> trait SqlProfile -> package profile context owners: value x$2 -> method apply -> anonymous class $anonfun -> value q -> method apply -> anonymous class $anonfun -> method testAggFunctions -> class PgAggFunctionTest -> package slickpg == Enclosing template or block == DefDef( // final def apply(t: PgAggFunctionTest.this.Tabs): (scala.slick.lifted.Column[String], scala.slick.lifted.Column[Int]) <method> final "apply" [] // 1 parameter list ValDef( // t: PgAggFunctionTest.this.Tabs <param> <triedcooking> "t" <tpt> // tree.tpe=com.github.tminglei.slickpg.PgAggFunctionTest#Tabs <empty> ) <tpt> // tree.tpe=Tuple2 Apply( // def <init>(_1: T1,_2: T2): (T1, T2) in class Tuple2, tree.tpe=(scala.slick.lifted.Column[String], scala.slick.lifted.Column[Int]) new Tuple2."<init>" // def <init>(_1: T1,_2: T2): (T1, T2) in class Tuple2 // 2 arguments Block( // tree.tpe=scala.slick.lifted.Column[String] ValDef( // val x$2: scala.slick.lifted.Column[String] <synthetic> <triedcooking> "x$2" <tpt> // tree.tpe=slick.lifted.Column Apply( // def name(): scala.slick.lifted.Column[String] in class Tabs "t"."name" // def name(): scala.slick.lifted.Column[String] in class Tabs Nil ) ) Apply( // def ^:[P1, PR](expr: scala.slick.lifted.Column[P1],implicit tm: scala.slick.jdbc.JdbcType[R],implicit om: scala.slick.lifted.OptionMapper2[T,T,R,P1,P1,PR]): scala.slick.lifted.Column[PR] in trait UnaryAggFunction, tree.tpe=scala.slick.lifted.Column[String] TypeApply( // def ^:[P1, PR](expr: scala.slick.lifted.Column[P1],implicit tm: scala.slick.jdbc.JdbcType[R],implicit om: scala.slick.lifted.OptionMapper2[T,T,R,P1,P1,PR]): scala.slick.lifted.Column[PR] in trait UnaryAggFunction, tree.tpe=(expr: scala.slick.lifted.Column[String], implicit tm: scala.slick.jdbc.JdbcType[String], implicit om: scala.slick.lifted.OptionMapper2[String,String,String,String,String,String])scala.slick.lifted.Column[String] new com.github.tminglei.slickpg.agg.PgAggregateExtensions#PgAggregateFunctions#StringAgg(slickpg.this.MyPostgresDriver.simple.PgAggregateFunctions, ",").forDistinct().orderBy(MyPostgresDriver.simple().columnToOrdered[String](t.name()))."$up$colon" // def ^:[P1, PR](expr: scala.slick.lifted.Column[P1],implicit tm: scala.slick.jdbc.JdbcType[R],implicit om: scala.slick.lifted.OptionMapper2[T,T,R,P1,P1,PR]): scala.slick.lifted.Column[PR] in trait UnaryAggFunction, tree.tpe=[P1, PR](expr: scala.slick.lifted.Column[P1], implicit tm: scala.slick.jdbc.JdbcType[String], implicit om: scala.slick.lifted.OptionMapper2[String,String,String,P1,P1,PR])scala.slick.lifted.Column[PR] // 2 type arguments <tpt> // tree.tpe=String <tpt> // tree.tpe=String ) // 3 arguments "x$2" // val x$2: scala.slick.lifted.Column[String], tree.tpe=scala.slick.lifted.Column[String] Apply( // implicit def stringColumnType(): JdbcTypesComponent.this.columnTypes.StringJdbcType in trait ImplicitColumnTypes, tree.tpe=com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.StringJdbcType MyPostgresDriver.simple()."stringColumnType" // implicit def stringColumnType(): JdbcTypesComponent.this.columnTypes.StringJdbcType in trait ImplicitColumnTypes, tree.tpe=()com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.StringJdbcType Nil ) Apply( // implicit def getOptionMapper2TT[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2]): scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] in object OptionMapper2, tree.tpe=scala.slick.lifted.OptionMapper2[String,String,String,String,String,String] TypeApply( // implicit def getOptionMapper2TT[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2]): scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] in object OptionMapper2, tree.tpe=(evidence$1: scala.slick.ast.BaseTypedType[String])scala.slick.lifted.OptionMapper2[String,String,String,String,String,String] lifted.this."OptionMapper2"."getOptionMapper2TT" // implicit def getOptionMapper2TT[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2]): scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] in object OptionMapper2, tree.tpe=[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2])scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] // 3 type arguments <tpt> // tree.tpe=String <tpt> // tree.tpe=String <tpt> // tree.tpe=String ) Apply( // implicit def stringColumnType(): JdbcTypesComponent.this.columnTypes.StringJdbcType in trait ImplicitColumnTypes, tree.tpe=com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.StringJdbcType MyPostgresDriver.simple()."stringColumnType" // implicit def stringColumnType(): JdbcTypesComponent.this.columnTypes.StringJdbcType in trait ImplicitColumnTypes, tree.tpe=()com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.StringJdbcType Nil ) ) ) ) Block( // tree.tpe=scala.slick.lifted.Column[Int] ValDef( // val x$3: scala.slick.lifted.Column[Int] <synthetic> <triedcooking> "x$3" <tpt> // tree.tpe=scala.slick.lifted.Column[Int] Apply( // def count(): scala.slick.lifted.Column[Int] in class Tabs, tree.tpe=scala.slick.lifted.Column[Int] "t"."count" // def count(): scala.slick.lifted.Column[Int] in class Tabs, tree.tpe=()scala.slick.lifted.Column[Int] Nil ) ) Apply( // def ^:[P1, PR](expr: scala.slick.lifted.Column[P1],implicit tm: scala.slick.jdbc.JdbcType[R],implicit om: scala.slick.lifted.OptionMapper2[T,T,R,P1,P1,PR]): scala.slick.lifted.Column[PR] in trait UnaryAggFunction, tree.tpe=scala.slick.lifted.Column[Int] TypeApply( // def ^:[P1, PR](expr: scala.slick.lifted.Column[P1],implicit tm: scala.slick.jdbc.JdbcType[R],implicit om: scala.slick.lifted.OptionMapper2[T,T,R,P1,P1,PR]): scala.slick.lifted.Column[PR] in trait UnaryAggFunction, tree.tpe=(expr: scala.slick.lifted.Column[Int], implicit tm: scala.slick.jdbc.JdbcType[Int], implicit om: scala.slick.lifted.OptionMapper2[Int,Int,Int,Int,Int,Int])scala.slick.lifted.Column[Int] new com.github.tminglei.slickpg.MyPostgresDriver.simple.PgAggregateFunctions.Avg[Int](slickpg.this.MyPostgresDriver.simple.PgAggregateFunctions)."$up$colon" // def ^:[P1, PR](expr: scala.slick.lifted.Column[P1],implicit tm: scala.slick.jdbc.JdbcType[R],implicit om: scala.slick.lifted.OptionMapper2[T,T,R,P1,P1,PR]): scala.slick.lifted.Column[PR] in trait UnaryAggFunction, tree.tpe=[P1, PR](expr: scala.slick.lifted.Column[P1], implicit tm: scala.slick.jdbc.JdbcType[Int], implicit om: scala.slick.lifted.OptionMapper2[Int,Int,Int,P1,P1,PR])scala.slick.lifted.Column[PR] // 2 type arguments <tpt> // tree.tpe=Int <tpt> // tree.tpe=Int ) // 3 arguments "x$3" // val x$3: scala.slick.lifted.Column[Int], tree.tpe=scala.slick.lifted.Column[Int] Apply( // implicit def intColumnType(): JdbcTypesComponent.this.columnTypes.IntJdbcType in trait ImplicitColumnTypes, tree.tpe=com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.IntJdbcType MyPostgresDriver.simple()."intColumnType" // implicit def intColumnType(): JdbcTypesComponent.this.columnTypes.IntJdbcType in trait ImplicitColumnTypes, tree.tpe=()com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.IntJdbcType Nil ) Apply( // implicit def getOptionMapper2TT[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2]): scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] in object OptionMapper2, tree.tpe=scala.slick.lifted.OptionMapper2[Int,Int,Int,Int,Int,Int] TypeApply( // implicit def getOptionMapper2TT[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2]): scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] in object OptionMapper2, tree.tpe=(evidence$1: scala.slick.ast.BaseTypedType[Int])scala.slick.lifted.OptionMapper2[Int,Int,Int,Int,Int,Int] lifted.this."OptionMapper2"."getOptionMapper2TT" // implicit def getOptionMapper2TT[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2]): scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] in object OptionMapper2, tree.tpe=[B1, B2, BR](evidence$1: scala.slick.ast.BaseTypedType[B2])scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] // 3 type arguments <tpt> // tree.tpe=Int <tpt> // tree.tpe=Int <tpt> // tree.tpe=Int ) Apply( // implicit def intColumnType(): JdbcTypesComponent.this.columnTypes.IntJdbcType in trait ImplicitColumnTypes, tree.tpe=com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.IntJdbcType MyPostgresDriver.simple()."intColumnType" // implicit def intColumnType(): JdbcTypesComponent.this.columnTypes.IntJdbcType in trait ImplicitColumnTypes, tree.tpe=()com.github.tminglei.slickpg.MyPostgresDriver.columnTypes.IntJdbcType Nil ) ) ) ) ) ) == Expanded type of tree == TypeRef( pre = TypeRef( TypeSymbol( abstract trait SqlProfile extends RelationalProfile with SqlExecutorComponent with SqlTableComponent ) ) TypeSymbol( abstract trait DDL extends SqlProfile.this.SchemaDescriptionDef ) ) object PgAggregateFunctions
  6. 0

    Crash in uncurry with tpe == null

    GitHub | 4 years ago | VladUreche
    java.lang.AssertionError: assertion failed: while compiling: ../miniboxing-plugin/test/benchmarks/C.scala during phase: uncurry library version: version 2.10.0-20121014-154054-f3550d25e0 compiler version: version 2.10.0-20121014-154054-f3550d25e0 reconstructed args: -Xprint:minibox -Xprint:specialize -d mboxing -classpath /home/sun/workspace/dev/miniboxing-plugin/components/plugin/target/scala-2.10/miniboxing-plugin_2.10-0.1-SNAPSHOT.jar:/home/sun/workspace/dev/miniboxing-plugin/components/runtime/target/scala-2.10/miniboxing-runime_2.10-0.1-SNAPSHOT.jar -Xplugin:/home/sun/workspace/dev/miniboxing-plugin/components/plugin/target/scala-2.10/miniboxing-plugin_2.10-0.1-SNAPSHOT.jar last tree to typer: term benchmarks symbol: package benchmarks (flags: final <module> <package> <java> <triedcooking>) symbol definition: final package benchmarks tpe: <notype> symbol owners: package benchmarks -> package <root> context owners: method length -> class C_L -> package benchmarks == Enclosing template or block == DefDef( // def length: Int in class C_L <method> <triedcooking> <synchronized> "length" [] List(Nil) <tpt> // tree.tpe=Int If( // tree.tpe=Int Apply( // final def !=(x$1: AnyRef): Boolean in class Object, tree.tpe=Boolean C_L.this."tail"."$bang$eq" // final def !=(x$1: AnyRef): Boolean in class Object, tree.tpe=(x$1: Object)Boolean null ) C_L.this."tail"."length" // def length: Int in trait C_interface 0 ) ) == Expanded type of tree == <notype> C_L.this.tail.length tpe is null

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. scala.meta.internal
      mergeTrees$loop$2$$anonfun$apply$2.apply
      1. scala.meta.internal.ast.mergeTrees$.fail(MergeTrees.scala:403)
      2. scala.meta.internal.ast.mergeTrees$.scala$meta$internal$ast$mergeTrees$$failCorrelate(MergeTrees.scala:368)
      3. scala.meta.internal.ast.mergeTrees$loop$2$.apply(MergeTrees.scala:266)
      4. scala.meta.internal.ast.mergeTrees$.apply(MergeTrees.scala:338)
      5. scala.meta.internal.ast.mergeTrees$loop$2$.apply(MergeTrees.scala:47)
      6. scala.meta.internal.ast.mergeTrees$loop$2$$anonfun$apply$2.apply(MergeTrees.scala:330)
      7. scala.meta.internal.ast.mergeTrees$loop$2$$anonfun$apply$2.apply(MergeTrees.scala:330)
      7 frames
    3. Scala
      List.foreach
      1. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
      2. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
      3. scala.collection.immutable.List.foreach(List.scala:381)
      3 frames