java.lang.AssertionError: assertion failed: Cannot create ClassBType from NoSymbol while compiling: t6613/Broken.scala during phase: jvm library version: version 2.12.0-20160819-055227-d96cbbbe44 compiler version: version 2.12.0-20160819-230807-f419dc967d reconstructed args: <snip> last tree to typer: TypeTree(class Enummy$Broke) tree position: line 1 of t6613/Broken.scala tree tpe: Enummy$Broke symbol: (final sealed abstract) class Enummy$Broke symbol definition: final sealed abstract class Enummy$Broke extends Enum (a ClassSymbol) symbol package: <empty> symbol owners: class Enummy$Broke call site: constructor Broken in class Broken in package <empty> == Source file context for tree position == 0 class Broken() { def broken() = Enummy.Broke.CHIP }

GitHub | soc | 3 months ago
  1. 0

    GitHub comment 5352#241149559

    GitHub | 3 months ago | soc
    java.lang.AssertionError: assertion failed: Cannot create ClassBType from NoSymbol while compiling: t6613/Broken.scala during phase: jvm library version: version 2.12.0-20160819-055227-d96cbbbe44 compiler version: version 2.12.0-20160819-230807-f419dc967d reconstructed args: <snip> last tree to typer: TypeTree(class Enummy$Broke) tree position: line 1 of t6613/Broken.scala tree tpe: Enummy$Broke symbol: (final sealed abstract) class Enummy$Broke symbol definition: final sealed abstract class Enummy$Broke extends Enum (a ClassSymbol) symbol package: <empty> symbol owners: class Enummy$Broke call site: constructor Broken in class Broken in package <empty> == Source file context for tree position == 0 class Broken() { def broken() = Enummy.Broke.CHIP }
  2. 0

    paradise crashes when compiling annotations on classes/traits that have eponymous vals/defs

    GitHub | 2 years ago | xeno-by
    java.lang.AssertionError: assertion failed: module Foo#7934 with maybeExpandeeCompanionCompleter for Foo#7934 while compiling: Test.scala during phase: globalPhase=typer, enteringPhase=namer library version: version 2.11.5-20150109-132948-05612399f7 compiler version: version 2.11.5-20150109-132948-05612399f7 reconstructed args: -Xplugin-require:macroparadise -Xplugin:/Users/xeno_by/Projects/Paradise211x/plugin/target/scala-2.11/paradise_2.11.6-SNAPSHOT-2.1.0-SNAPSHOT.jar -classpath .:/Users/xeno_by/Projects/simulacrum/target/scala-2.11/simulacrum_2.11-0.2.0-SNAPSHOT.jar last tree to typer: TypeTree(class Nothing) tree position: line 4 of Test.scala tree tpe: Nothing symbol: (final abstract) class Nothing in package scala symbol definition: final abstract class Nothing extends Any (a NothingClass$) symbol package: scala symbol owners: class Nothing call site: method Foo in object Test in package <empty> == Source file context for tree position == 1 class ann extends scala.annotation.StaticAnnotation 2 @ann trait Foo[T] 3 def Foo = ??? 4 }
  3. 0

    GitHub comment 22#255719699

    GitHub | 1 month ago | japgolly
    java.lang.AssertionError: assertion failed: Cannot create ClassBType from non-class symbol type Prop while compiling: /home/golly/projects/nyaya/nyaya-prop/src/test/scala/nyaya/prop/PropTest.scala during phase: jvm library version: version 2.12.0-RC2 compiler version: version 2.12.0-RC2 reconstructed args: -deprecation -language:postfixOps -language:implicitConversions -language:higherKinds -language:existentials -feature -classpath /home/golly/projects/nyaya/nyaya-prop/target/jvm/scala-2.12.0-RC2/test-classes:/home/golly/projects/nyaya/nyaya-prop/target/jvm/scala-2.12.0-RC2/classes:/home/golly/projects/nyaya/nyaya-util/target/jvm/scala-2.12.0-RC2/classes:/home/golly/.ivy2/cache/org.scalaz/scalaz-core_2.12.0-RC2/bundles/scalaz-core_2.12.0-RC2-7.2.6.jar:/home/golly/.ivy2/cache/com.lihaoyi/utest_2.12.0-RC2/jars/utest_2.12.0-RC2-0.4.4.jar:/home/golly/.ivy2/cache/org.scala-sbt/test-interface/jars/test-interface-1.0.jar:/home/golly/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.12.0-RC2.jar -bootclasspath /usr/lib/jvm/java-8-jdk/jre/lib/resources.jar:/usr/lib/jvm/java-8-jdk/jre/lib/rt.jar:/usr/lib/jvm/java-8-jdk/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-jdk/jre/lib/jsse.jar:/usr/lib/jvm/java-8-jdk/jre/lib/jce.jar:/usr/lib/jvm/java-8-jdk/jre/lib/charsets.jar:/usr/lib/jvm/java-8-jdk/jre/lib/jfr.jar:/usr/lib/jvm/java-8-jdk/jre/classes:/home/golly/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.12.0-RC2.jar -unchecked last tree to typer: TypeTree(class Array) tree position: line 107 of /home/golly/projects/nyaya/nyaya-prop/src/test/scala/nyaya/prop/PropTest.scala tree tpe: Array[Object] symbol: final class Array in package scala symbol definition: final class Array[T] extends Object (a ClassSymbol) symbol package: scala symbol owners: class Array call site: constructor PropTest$Yay$4 in object PropTest$Yay$4 in package prop == Source file context for tree position == 104 val conF = failSimple("(even ∧ mod3 ∧ mod5)") 105 106 override def tests = TestSuite { 107 'atom { 108 test(even, 2, ok) 109 test(even, 3, evenF) 110 }
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    double definitions might make paradise crash

    GitHub | 3 years ago | xeno-by
    java.lang.AssertionError: assertion failed: module X#7915 with maybeExpandeeCompanionCompleter for X#7915 while compiling: Test.scala during phase: globalPhase=typer, enteringPhase=namer library version: version 2.11.0-20140415-163722-cac6383e66 compiler version: version 2.11.0-20140415-163722-cac6383e66 reconstructed args: -Xplugin-require:macroparadise -Xplugin:/Users/xeno_by/Projects/Paradise2110/plugin/target/scala-2.11/paradise_2.11.0-2.1.0-SNAPSHOT.jar last tree to typer: Ident(scala) tree position: line 6 of Test.scala tree tpe: scala.type symbol: final package scala symbol definition: final package scala (a ModuleSymbol) symbol package: <none> symbol owners: package scala call site: object M in package <empty> == Source file context for tree position == 3 @leaf class X 4 object X 5 }
  6. 0

    GitHub comment 22#255719699

    GitHub | 1 month ago | japgolly
    java.lang.AssertionError: assertion failed: Cannot create ClassBType from non-class symbol type Prop while compiling: /home/golly/projects/nyaya/nyaya-prop/src/test/scala/nyaya/prop/PropTest.scala during phase: jvm library version: version 2.12.0-RC2 compiler version: version 2.12.0-RC2 reconstructed args: -Xplugin:/home/golly/.ivy2/cache/org.scala-js/scalajs-compiler_2.12.0-RC2/jars/scalajs-compiler_2.12.0-RC2-0.6.13.jar -deprecation -language:postfixOps -language:implicitConversions -language:higherKinds -language:existentials -feature -classpath /home/golly/projects/nyaya/nyaya-prop/target/js/scala-2.12.0-RC2/test-classes:/home/golly/projects/nyaya/nyaya-prop/target/js/scala-2.12.0-RC2/classes:/home/golly/projects/nyaya/nyaya-util/target/js/scala-2.12.0-RC2/classes:/home/golly/.ivy2/cache/org.scalaz/scalaz-core_sjs0.6_2.12.0-RC2/bundles/scalaz-core_sjs0.6_2.12.0-RC2-7.2.6.jar:/home/golly/.ivy2/cache/com.lihaoyi/utest_sjs0.6_2.12.0-RC2/jars/utest_sjs0.6_2.12.0-RC2-0.4.4.jar:/home/golly/.ivy2/cache/org.scala-js/scalajs-test-interface_2.12.0-RC2/jars/scalajs-test-interface_2.12.0-RC2-0.6.13.jar:/home/golly/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.12.0-RC2.jar:/home/golly/.ivy2/cache/org.scala-js/scalajs-library_2.12.0-RC2/jars/scalajs-library_2.12.0-RC2-0.6.13.jar -bootclasspath /usr/lib/jvm/java-8-jdk/jre/lib/resources.jar:/usr/lib/jvm/java-8-jdk/jre/lib/rt.jar:/usr/lib/jvm/java-8-jdk/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-jdk/jre/lib/jsse.jar:/usr/lib/jvm/java-8-jdk/jre/lib/jce.jar:/usr/lib/jvm/java-8-jdk/jre/lib/charsets.jar:/usr/lib/jvm/java-8-jdk/jre/lib/jfr.jar:/usr/lib/jvm/java-8-jdk/jre/classes:/home/golly/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.12.0-RC2.jar -unchecked last tree to typer: TypeTree(class Array) tree position: line 107 of /home/golly/projects/nyaya/nyaya-prop/src/test/scala/nyaya/prop/PropTest.scala tree tpe: Array[Object] symbol: final class Array in package scala symbol definition: final class Array[T] extends Object (a ClassSymbol) symbol package: scala symbol owners: class Array call site: constructor PropTest$Yay$4 in object PropTest$Yay$4 in package prop == Source file context for tree position == 104 val conF = failSimple("(even ∧ mod3 ∧ mod5)") 105 106 override def tests = TestSuite { 107 'atom { 108 test(even, 2, ok) 109 test(even, 3, evenF) 110 }

    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. java.lang.AssertionError

      assertion failed: Cannot create ClassBType from NoSymbol while compiling: t6613/Broken.scala during phase: jvm library version: version 2.12.0-20160819-055227-d96cbbbe44 compiler version: version 2.12.0-20160819-230807-f419dc967d reconstructed args: <snip> last tree to typer: TypeTree(class Enummy$Broke) tree position: line 1 of t6613/Broken.scala tree tpe: Enummy$Broke symbol: (final sealed abstract) class Enummy$Broke symbol definition: final sealed abstract class Enummy$Broke extends Enum (a ClassSymbol) symbol package: <empty> symbol owners: class Enummy$Broke call site: constructor Broken in class Broken in package <empty> == Source file context for tree position == 0 class Broken() { def broken() = Enummy.Broke.CHIP }

      at scala.tools.nsc.Global.assert()
    2. Scala Compiler
      BCodeSkelBuilder$PlainSkelBuilder.$anonfun$gen$7$adapted
      1. scala.tools.nsc.Global.assert(Global.scala:229)
      2. scala.tools.nsc.backend.jvm.BTypesFromSymbols.classBTypeFromSymbol(BTypesFromSymbols.scala:109)
      3. scala.tools.nsc.backend.jvm.BCodeHelpers$BCInnerClassGen.internalName(BCodeHelpers.scala:529)
      4. scala.tools.nsc.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.fieldOp(BCodeBodyBuilder.scala:412)
      5. scala.tools.nsc.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.fieldLoad(BCodeBodyBuilder.scala:401)
      6. scala.tools.nsc.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoad(BCodeBodyBuilder.scala:341)
      7. scala.tools.nsc.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.emitNormalMethodBody$1(BCodeSkelBuilder.scala:597)
      8. scala.tools.nsc.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.genDefDef(BCodeSkelBuilder.scala:629)
      9. scala.tools.nsc.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.gen(BCodeSkelBuilder.scala:503)
      10. scala.tools.nsc.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.$anonfun$gen$7(BCodeSkelBuilder.scala:505)
      11. scala.tools.nsc.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.$anonfun$gen$7$adapted(BCodeSkelBuilder.scala:505)
      11 frames
    3. Scala
      List.foreach
      1. scala.collection.immutable.List.foreach(List.scala:378)
      1 frame
    4. Scala Compiler
      Global$Run.compile
      1. scala.tools.nsc.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.gen(BCodeSkelBuilder.scala:505)
      2. scala.tools.nsc.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.genPlainClass(BCodeSkelBuilder.scala:113)
      3. scala.tools.nsc.backend.jvm.GenBCode$BCodePhase$Worker1.visit(GenBCode.scala:190)
      4. scala.tools.nsc.backend.jvm.GenBCode$BCodePhase$Worker1.$anonfun$run$1(GenBCode.scala:139)
      5. scala.tools.nsc.Global$GlobalPhase.withCurrentUnitNoLog(Global.scala:395)
      6. scala.tools.nsc.backend.jvm.GenBCode$BCodePhase$Worker1.run(GenBCode.scala:139)
      7. scala.tools.nsc.backend.jvm.GenBCode$BCodePhase.buildAndSendToDisk(GenBCode.scala:381)
      8. scala.tools.nsc.backend.jvm.GenBCode$BCodePhase.run(GenBCode.scala:350)
      9. scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1412)
      10. scala.tools.nsc.Global$Run.compileUnits(Global.scala:1397)
      11. scala.tools.nsc.Global$Run.compileSources(Global.scala:1392)
      12. scala.tools.nsc.Global$Run.compile(Global.scala:1486)
      12 frames