Last active
February 16, 2016 03:22
-
-
Save justgage/778db305c28eb5b59447 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[info] Set current project to hello-world (in build file:/home/justgage/exercism/scala/hello-world/) | |
[info] Compiling 1 Scala source to /home/justgage/exercism/scala/hello-world/target/scala-2.11/classes... | |
[error] | |
[error] while compiling: /home/justgage/exercism/scala/hello-world/src/main/scala/Hello.scala | |
[error] during phase: typer | |
[error] library version: version 2.10.4 | |
[error] compiler version: version 2.10.4 | |
[error] reconstructed args: -classpath /home/justgage/exercism/scala/hello-world/target/scala-2.11/classes -bootclasspath /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc22.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc22.x86_64/jre/lib/rt.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc22.x86_64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc22.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc22.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc22.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc22.x86_64/jre/lib/jfr.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-14.b27.fc22.x86_64/jre/classes:/home/justgage/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.7.jar | |
[error] | |
[error] last tree to typer: Literal(Constant(World)) | |
[error] symbol: null | |
[error] symbol definition: null | |
[error] tpe: String("World") | |
[error] symbol owners: | |
[error] context owners: method hello$default$1 -> object HelloWorld -> package scala | |
[error] | |
[error] == Enclosing template or block == | |
[error] | |
[error] DefDef( // def hello$default$1: String @scala.annotation.unchecked.uncheckedVariance in object HelloWorld | |
[error] <method> <synthetic> <defaultparam/trait> | |
[error] "hello$default$1" | |
[error] [] | |
[error] Nil | |
[error] "String" // tree.tpe=String | |
[error] "World" | |
[error] ) | |
[error] | |
[error] == Expanded type of tree == | |
[error] | |
[error] ConstantType(value = Constant(World)) | |
[error] | |
[error] uncaught exception during compilation: scala.reflect.internal.MissingRequirementError | |
scala.reflect.internal.MissingRequirementError: class scala.annotation.serializable in compiler mirror not found. | |
at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:16) | |
at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:17) | |
at scala.reflect.internal.Mirrors$RootsBase$$anonfun$getModuleOrClass$3.apply(Mirrors.scala:49) | |
at scala.reflect.internal.Mirrors$RootsBase$$anonfun$getModuleOrClass$3.apply(Mirrors.scala:49) | |
at scala.reflect.internal.Symbols$Symbol.orElse(Symbols.scala:2229) | |
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:48) | |
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:61) | |
at scala.reflect.internal.Mirrors$RootsBase.getClassByName(Mirrors.scala:99) | |
at scala.reflect.internal.Mirrors$RootsBase.getRequiredClass(Mirrors.scala:102) | |
at scala.reflect.internal.Mirrors$RootsBase.requiredClass(Mirrors.scala:105) | |
at scala.reflect.internal.Definitions$DefinitionsClass.SerializableAttr$lzycompute(Definitions.scala:962) | |
at scala.reflect.internal.Definitions$DefinitionsClass.SerializableAttr(Definitions.scala:962) | |
at scala.reflect.internal.Symbols$Symbol.isSerializable(Symbols.scala:720) | |
at scala.tools.nsc.typechecker.SyntheticMethods$class.needsReadResolve$1(SyntheticMethods.scala:324) | |
at scala.tools.nsc.typechecker.SyntheticMethods$class.extras$1(SyntheticMethods.scala:357) | |
at scala.tools.nsc.typechecker.SyntheticMethods$class.synthesize$1(SyntheticMethods.scala:367) | |
at scala.tools.nsc.typechecker.SyntheticMethods$$anonfun$addSyntheticMethods$2.apply(SyntheticMethods.scala:400) | |
at scala.tools.nsc.typechecker.SyntheticMethods$$anonfun$addSyntheticMethods$2.apply(SyntheticMethods.scala:398) | |
at scala.reflect.internal.Trees$class.deriveTemplate(Trees.scala:1610) | |
at scala.reflect.internal.SymbolTable.deriveTemplate(SymbolTable.scala:13) | |
at scala.tools.nsc.typechecker.SyntheticMethods$class.addSyntheticMethods(SyntheticMethods.scala:398) | |
at scala.tools.nsc.Global$$anon$1.addSyntheticMethods(Global.scala:493) | |
at scala.tools.nsc.typechecker.Typers$Typer.finishMethodSynthesis(Typers.scala:1848) | |
at scala.tools.nsc.typechecker.Typers$Typer.typedModuleDef(Typers.scala:1810) | |
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5584) | |
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5642) | |
at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2928) | |
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$61.apply(Typers.scala:3032) | |
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$61.apply(Typers.scala:3032) | |
at scala.collection.immutable.List.loop$1(List.scala:170) | |
at scala.collection.immutable.List.mapConserve(List.scala:186) | |
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3032) | |
at scala.tools.nsc.typechecker.Typers$Typer.typedPackageDef$1(Typers.scala:5301) | |
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5587) | |
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5642) | |
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5704) | |
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:99) | |
at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:464) | |
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:91) | |
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:91) | |
at scala.collection.Iterator$class.foreach(Iterator.scala:727) | |
at scala.collection.AbstractIterator.foreach(Iterator.scala:1157) | |
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:91) | |
at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1583) | |
at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1557) | |
at scala.tools.nsc.Global$Run.compileSources(Global.scala:1553) | |
at scala.tools.nsc.Global$Run.compile(Global.scala:1662) | |
at xsbt.CachedCompiler0.run(CompilerInterface.scala:123) | |
at xsbt.CachedCompiler0.run(CompilerInterface.scala:99) | |
at xsbt.CompilerInterface.run(CompilerInterface.scala:27) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:497) | |
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:102) | |
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:48) | |
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41) | |
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply$mcV$sp(AggressiveCompile.scala:98) | |
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:98) | |
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:98) | |
at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:159) | |
at sbt.compiler.AggressiveCompile$$anonfun$3.compileScala$1(AggressiveCompile.scala:97) | |
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:142) | |
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:86) | |
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:38) | |
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:36) | |
at sbt.inc.Incremental$.cycle(Incremental.scala:73) | |
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:33) | |
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:32) | |
at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:41) | |
at sbt.inc.Incremental$.compile(Incremental.scala:32) | |
at sbt.inc.IncrementalCompile$.apply(Compile.scala:26) | |
at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:150) | |
at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:70) | |
at sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:45) | |
at sbt.Compiler$.apply(Compiler.scala:70) | |
at sbt.Defaults$.sbt$Defaults$$compileTaskImpl(Defaults.scala:736) | |
at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:730) | |
at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:730) | |
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) | |
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) | |
at sbt.std.Transform$$anon$4.work(System.scala:64) | |
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) | |
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) | |
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) | |
at sbt.Execute.work(Execute.scala:244) | |
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) | |
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) | |
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) | |
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) | |
at java.util.concurrent.FutureTask.run(FutureTask.java:266) | |
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) | |
at java.util.concurrent.FutureTask.run(FutureTask.java:266) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) | |
at java.lang.Thread.run(Thread.java:745) | |
[error] (compile:[31mcompile) scala.reflect.internal.MissingRequirementError: class scala.annotation.serializable in compiler mirror not found. | |
[error] Total time: 2 s, completed Feb 15, 2016 8:17:27 PM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main.scala | |
object HelloWorld { | |
def hello(name: String = "World") = "Hello, " + name; | |
// sudo tests | |
def main(args: Array[String]):Unit = { | |
println(hello()) | |
println(hello("Gage")) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.scalatest.{Matchers, FunSuite} | |
import main.scala.HelloWorld | |
class HelloWorldTest extends FunSuite with Matchers { | |
test("Without name") { | |
HelloWorld.hello() should be ("Hello, World!") | |
} | |
test("with name") { | |
HelloWorld.hello("Jane") should be ("Hello, Jane!") | |
} | |
test("with umlaut name") { | |
HelloWorld.hello("Jürgen") should be ("Hello, Jürgen!") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment