java.lang.AssertionError: assertion failed: while compiling: newSource1.scala during phase: jscode library version: version 2.11.8 compiler version: version 2.11.8 reconstructed args: -bootclasspath C:\Users\someuser\.m2\repository\org\scala-lang\scala-library\2.10.3\scala-library-2.10.3.jar -classpath C:\Users\some\.m2\repository\org\scala-js\scalajs-library_2.10\0.6.10\scalajs-library_2.10-0.6.10.jar -d C:\work\testprojects\scala-js\target last tree to typer: Ident(option) tree position: line 11 of newSource1.scala tree tpe: scala.scalajs.js.Any symbol: value option symbol definition: option: scala.scalajs.js.Any (a TermSymbol) symbol package: <empty> symbol owners: value option -> method add -> class Derived call site: class Derived in package <empty> <Cannot read source file>

GitHub | glmars | 10 months 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

    Overriding a JS native method with default parameters leads to AssertionError in the compiler

    GitHub | 10 months ago | glmars
    java.lang.AssertionError: assertion failed: while compiling: newSource1.scala during phase: jscode library version: version 2.11.8 compiler version: version 2.11.8 reconstructed args: -bootclasspath C:\Users\someuser\.m2\repository\org\scala-lang\scala-library\2.10.3\scala-library-2.10.3.jar -classpath C:\Users\some\.m2\repository\org\scala-js\scalajs-library_2.10\0.6.10\scalajs-library_2.10-0.6.10.jar -d C:\work\testprojects\scala-js\target last tree to typer: Ident(option) tree position: line 11 of newSource1.scala tree tpe: scala.scalajs.js.Any symbol: value option symbol definition: option: scala.scalajs.js.Any (a TermSymbol) symbol package: <empty> symbol owners: value option -> method add -> class Derived call site: class Derived in package <empty> <Cannot read source file>
  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

    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 }
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    typechecking annottees inside a macroTransform crashes the compiler

    GitHub | 2 years ago | matanster
    java.lang.AssertionError: assertion failed: module TestPassword#7867 with maybeExpandeeCompanionCompleter for TestPassword#7867 while compiling: /repos/sbt-example-paradise/core/src/main/scala/b.scala during phase: typer library version: version 2.11.6 compiler version: version 2.11.6 reconstructed args: .......ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.11.6.jar:/home/matan/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.7.12.jar -deprecation -Xplugin:/home/matan/.ivy2/cache/org.scalamacros/paradise_2.11.6/jars/paradise_2.11.6-2.1.0-M5.jar -bootclasspath /usr/lib/jvm/java-7-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-7-oracle/jre/lib/rt.jar:/usr/lib/jvm/java-7-oracle/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-7-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-7-oracle/jre/classes:/home/matan/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.6.jar last tree to typer: term TestPassword tree position: <unknown> symbol: object TestPassword symbol definition: object TestPassword (a ModuleSymbol) symbol package: <empty> symbol owners: object TestPassword call site: method doB in class B1 in package <empty> <Cannot read source file>
  6. 0

    Uncurry messing up types (tracking Scala bugs SI-9442 and SI-9475)

    GitHub | 2 years ago | VladUreche
    java.lang.AssertionError: assertion failed: Stupid node: typeMappings$1.apply(nme2).zip[context.universe.Type, context.mirror.universe.Tree, List[(context.universe.Type, context.mirror.universe.Tree)]] false false

    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: while compiling: newSource1.scala during phase: jscode library version: version 2.11.8 compiler version: version 2.11.8 reconstructed args: -bootclasspath C:\Users\someuser\.m2\repository\org\scala-lang\scala-library\2.10.3\scala-library-2.10.3.jar -classpath C:\Users\some\.m2\repository\org\scala-js\scalajs-library_2.10\0.6.10\scalajs-library_2.10-0.6.10.jar -d C:\work\testprojects\scala-js\target last tree to typer: Ident(option) tree position: line 11 of newSource1.scala tree tpe: scala.scalajs.js.Any symbol: value option symbol definition: option: scala.scalajs.js.Any (a TermSymbol) symbol package: <empty> symbol owners: value option -> method add -> class Derived call site: class Derived in package <empty> <Cannot read source file>

      at scala.tools.nsc.Global.assert()
    2. Scala Compiler
      Global.assert
      1. scala.tools.nsc.Global.assert(Global.scala:261)
      2. scala.tools.nsc.Global.assert(Global.scala:264)
      2 frames
    3. org.scalajs.core
      GenJSExports$JSExportsPhase$$anonfun$genPrepareArgs$2.apply
      1. org.scalajs.core.compiler.GenJSExports$JSExportsPhase$$anonfun$genPrepareArgs$2.apply(GenJSExports.scala:670)
      2. org.scalajs.core.compiler.GenJSExports$JSExportsPhase$$anonfun$genPrepareArgs$2.apply(GenJSExports.scala:630)
      2 frames
    4. Scala
      TraversableLike$WithFilter.map
      1. scala.collection.TraversableLike$WithFilter$$anonfun$map$2.apply(TraversableLike.scala:683)
      2. scala.collection.immutable.List.foreach(List.scala:381)
      3. scala.collection.TraversableLike$WithFilter.map(TraversableLike.scala:682)
      3 frames
    5. org.scalajs.core
      GenJSExports$JSExportsPhase$class.org$scalajs$core$compiler$GenJSExports$JSExportsPhase$$genExportSameArgc
      1. org.scalajs.core.compiler.GenJSExports$JSExportsPhase$class.genPrepareArgs(GenJSExports.scala:630)
      2. org.scalajs.core.compiler.GenJSExports$JSExportsPhase$class.genApplyForSymNonJSSuperCall(GenJSExports.scala:605)
      3. org.scalajs.core.compiler.GenJSExports$JSExportsPhase$class.org$scalajs$core$compiler$GenJSExports$JSExportsPhase$$genApplyForSym(GenJSExports.scala:546)
      4. org.scalajs.core.compiler.GenJSExports$JSExportsPhase$ExportedSymbol.genBody(GenJSExports.scala:730)
      5. org.scalajs.core.compiler.GenJSExports$JSExportsPhase$class.org$scalajs$core$compiler$GenJSExports$JSExportsPhase$$genExportSameArgc(GenJSExports.scala:412)
      5 frames