Closed jinwookjungs closed 3 years ago
In section 3.4, MyFir test codes doesn't work due to java.lang.AssertionError. The entire error message is attached below.
MyFir
java.lang.AssertionError
java.lang.AssertionError: assertion failed: List(method apply$mcI$sp, method apply$mcI$sp) while compiling: cmd12.sc during phase: globalPhase=specialize, enteringPhase=explicitouter library version: version 2.12.10 compiler version: version 2.12.10 reconstructed args: -nowarn -Xsource:2.11.12 -Yresolve-term-conflict:object last tree to typer: Select(Apply(method until), foreach$mVc$sp) tree position: line 37 of cmd12.sc tree tpe: (f: Int => Unit)Unit symbol: (final override) method foreach$mVc$sp in class Range symbol definition: final override def foreach$mVc$sp(f: Int => Unit): Unit (a MethodSymbol) symbol package: scala.collection.immutable symbol owners: method foreach$mVc$sp -> class Range call site: method $anonfun$new in package $sess == Source file context for tree position == 34 35 // push data through our FIR and check the result 36 reset(5) 37 for (i <- 0 until n) { 38 poke(c.io.in, sine(i)) 39 if (i >= length-1) { // wait for all registers to be initialized since we didn't zero-pad the data 40 expect(c.io.out, expected(i-length+1)) scala.reflect.internal.SymbolTable.throwAssertionError(SymbolTable.scala:184) scala.reflect.internal.Symbols$Symbol.suchThat(Symbols.scala:2000) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.matchingSymbolInPrefix$1(SpecializeTypes.scala:1559) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transformSelect$1(SpecializeTypes.scala:1582) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1677) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.internal.Trees.itransform(Trees.scala:1385) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1806) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.$anonfun$transformTrees$1(Trees.scala:2567) scala.reflect.api.Trees$Transformer.transformTrees(Trees.scala:2567) scala.reflect.internal.Trees.itransform(Trees.scala:1385) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1806) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.$anonfun$transformTrees$1(Trees.scala:2567) scala.reflect.api.Trees$Transformer.transformTrees(Trees.scala:2567) scala.reflect.internal.Trees.itransform(Trees.scala:1385) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1806) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.internal.Trees.itransform(Trees.scala:1406) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1806) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.$anonfun$transformStats$1(Trees.scala:2597) scala.reflect.api.Trees$Transformer.transformStats(Trees.scala:2595) scala.reflect.internal.Trees.itransform(Trees.scala:1404) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1806) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.internal.Trees.$anonfun$itransform$2(Trees.scala:1401) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:37) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:32) scala.reflect.internal.Trees.itransform(Trees.scala:1399) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1786) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.$anonfun$transformStats$1(Trees.scala:2597) scala.reflect.api.Trees$Transformer.transformStats(Trees.scala:2595) scala.reflect.internal.Trees.itransform(Trees.scala:1404) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1806) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.$anonfun$transformTrees$1(Trees.scala:2567) scala.reflect.api.Trees$Transformer.transformTrees(Trees.scala:2567) scala.reflect.internal.Trees.itransform(Trees.scala:1385) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1806) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.$anonfun$transformTrees$1(Trees.scala:2567) scala.reflect.api.Trees$Transformer.transformTrees(Trees.scala:2567) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.$anonfun$transform$25(SpecializeTypes.scala:1700) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:37) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transformTemplate$1(SpecializeTypes.scala:1700) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1702) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.transformTemplate(Trees.scala:2571) scala.reflect.internal.Trees.$anonfun$itransform$4(Trees.scala:1446) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:37) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:32) scala.reflect.internal.Trees.itransform(Trees.scala:1445) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1806) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.$anonfun$transformStats$1(Trees.scala:2597) scala.reflect.api.Trees$Transformer.transformStats(Trees.scala:2595) scala.reflect.internal.Trees.itransform(Trees.scala:1404) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1806) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.internal.Trees.$anonfun$itransform$2(Trees.scala:1401) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:37) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:32) scala.reflect.internal.Trees.itransform(Trees.scala:1399) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1786) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.$anonfun$transformStats$1(Trees.scala:2597) scala.reflect.api.Trees$Transformer.transformStats(Trees.scala:2595) scala.reflect.internal.Trees.itransform(Trees.scala:1404) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1806) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.$anonfun$transformTrees$1(Trees.scala:2567) scala.reflect.api.Trees$Transformer.transformTrees(Trees.scala:2567) scala.reflect.internal.Trees.itransform(Trees.scala:1385) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1806) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.internal.Trees.$anonfun$itransform$1(Trees.scala:1395) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:37) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:32) scala.reflect.internal.Trees.itransform(Trees.scala:1394) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1806) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.$anonfun$transformTrees$1(Trees.scala:2567) scala.reflect.api.Trees$Transformer.transformTrees(Trees.scala:2567) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.$anonfun$transform$25(SpecializeTypes.scala:1700) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:37) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transformTemplate$1(SpecializeTypes.scala:1700) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1702) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.transformTemplate(Trees.scala:2571) scala.reflect.internal.Trees.$anonfun$itransform$4(Trees.scala:1446) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:37) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:32) scala.reflect.internal.Trees.itransform(Trees.scala:1445) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1806) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.$anonfun$transformTrees$1(Trees.scala:2567) scala.reflect.api.Trees$Transformer.transformTrees(Trees.scala:2567) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.$anonfun$transform$25(SpecializeTypes.scala:1700) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:37) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transformTemplate$1(SpecializeTypes.scala:1700) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1702) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.transformTemplate(Trees.scala:2571) scala.reflect.internal.Trees.$anonfun$itransform$4(Trees.scala:1446) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:37) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:32) scala.reflect.internal.Trees.itransform(Trees.scala:1445) scala.reflect.internal.Trees.itransform$(Trees.scala:1374) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:28) scala.reflect.api.Trees$Transformer.transform(Trees.scala:2563) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1806) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.$anonfun$transformStats$1(Trees.scala:2597) scala.reflect.api.Trees$Transformer.transformStats(Trees.scala:2595) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.$anonfun$transform$21(SpecializeTypes.scala:1683) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:37) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1681) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.reflect.api.Trees$Transformer.$anonfun$transformStats$1(Trees.scala:2597) scala.reflect.api.Trees$Transformer.transformStats(Trees.scala:2595) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.$anonfun$transform$21(SpecializeTypes.scala:1683) scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:37) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1681) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transform(SpecializeTypes.scala:1470) scala.tools.nsc.ast.Trees$Transformer.transformUnit(Trees.scala:147) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.super$transformUnit(SpecializeTypes.scala:1475) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.$anonfun$transformUnit$1(SpecializeTypes.scala:1475) scala.tools.nsc.transform.SpecializeTypes$SpecializationTransformer.transformUnit(SpecializeTypes.scala:1475) scala.tools.nsc.transform.Transform$Phase.apply(Transform.scala:37) scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:453) scala.tools.nsc.Global$GlobalPhase.run(Global.scala:399) scala.tools.nsc.transform.SpecializeTypes$SpecializationPhase.run(SpecializeTypes.scala:208) scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1503) scala.tools.nsc.Global$Run.compileUnits(Global.scala:1487) scala.tools.nsc.Global$Run.compileSources(Global.scala:1480) scala.tools.nsc.Global$Run.compileFiles(Global.scala:1588) ammonite.interp.Compiler$$anon$1.compile(Compiler.scala:326) ammonite.interp.CompilerLifecycleManager.compileClass(CompilerLifecycleManager.scala:146) ammonite.interp.Interpreter.$anonfun$evaluateLine$2(Interpreter.scala:285) ammonite.util.Catching.flatMap(Res.scala:115) ammonite.interp.Interpreter.evaluateLine(Interpreter.scala:281) ammonite.interp.Interpreter.$anonfun$processLine$6(Interpreter.scala:268) ammonite.util.Res$Success.flatMap(Res.scala:62) ammonite.interp.Interpreter.$anonfun$processLine$4(Interpreter.scala:252) ammonite.util.Res$Success.flatMap(Res.scala:62) ammonite.interp.Interpreter.$anonfun$processLine$2(Interpreter.scala:245) ammonite.util.Catching.flatMap(Res.scala:115) ammonite.interp.Interpreter.processLine(Interpreter.scala:244) almond.Execute.$anonfun$ammResult$9(Execute.scala:227) almond.internals.CaptureImpl.$anonfun$apply$2(CaptureImpl.scala:53) scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) scala.Console$.withErr(Console.scala:196) almond.internals.CaptureImpl.$anonfun$apply$1(CaptureImpl.scala:45) scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) scala.Console$.withOut(Console.scala:167) almond.internals.CaptureImpl.apply(CaptureImpl.scala:45) almond.Execute.capturingOutput(Execute.scala:165) almond.Execute.$anonfun$ammResult$8(Execute.scala:223) almond.Execute.$anonfun$withClientStdin$1(Execute.scala:145) scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) scala.Console$.withIn(Console.scala:230) almond.Execute.withClientStdin(Execute.scala:141) almond.Execute.$anonfun$ammResult$7(Execute.scala:223) almond.Execute.withInputManager(Execute.scala:133) almond.Execute.$anonfun$ammResult$6(Execute.scala:222) ammonite.repl.Signaller.apply(Signaller.scala:28) almond.Execute.interruptible(Execute.scala:182) almond.Execute.$anonfun$ammResult$5(Execute.scala:221) ammonite.util.Res$Success.flatMap(Res.scala:62) almond.Execute.$anonfun$ammResult$1(Execute.scala:212) almond.Execute.withOutputHandler(Execute.scala:156) almond.Execute.ammResult(Execute.scala:212) almond.Execute.apply(Execute.scala:296) almond.ScalaInterpreter.execute(ScalaInterpreter.scala:120) almond.interpreter.InterpreterToIOInterpreter.$anonfun$execute$2(InterpreterToIOInterpreter.scala:69) cats.effect.internals.IORunLoop$.cats$effect$internals$IORunLoop$$loop(IORunLoop.scala:87) cats.effect.internals.IORunLoop$RestartCallback.signal(IORunLoop.scala:355) cats.effect.internals.IORunLoop$RestartCallback.apply(IORunLoop.scala:376) cats.effect.internals.IORunLoop$RestartCallback.apply(IORunLoop.scala:316) cats.effect.internals.IOShift$Tick.run(IOShift.scala:36) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748)
This appears to be tickling a very old Breeze/Scala bug: https://github.com/scalanlp/breeze/issues/65.
Using the suggested fix there of DenseVector.valueAt instead of DenseVector.apply does work.
DenseVector.valueAt
DenseVector.apply
In section 3.4,
MyFir
test codes doesn't work due tojava.lang.AssertionError
. The entire error message is attached below.