Last active
August 29, 2015 14:12
-
-
Save ryoco/ef79f134cdca103a560d to your computer and use it in GitHub Desktop.
compile error
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] Compiling 1 Scala source to /Users/ryoco/work/repos/git/github/ryoco-scala-sample/target/scala-2.10/classes... | |
[error] /Users/ryoco/work/repos/git/github/ryoco-scala-sample/src/main/scala/ryoco/Main.scala:12: erroneous or inaccessible type | |
[error] index += 1 | |
[error] ^ | |
[error] one error found | |
[error] (compile:compile) Compilation failed |
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
java.lang.NullPointerException | |
at scala.tools.nsc.transform.Mixin$MixinTransformer.scala$tools$nsc$transform$Mixin$MixinTransformer$$postTransform(Mixin.scala:1154) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer$$anonfun$transform$1.apply(Mixin.scala:1261) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer$$anonfun$transform$1.apply(Mixin.scala:1261) | |
at scala.reflect.internal.SymbolTable.enteringPhase(SymbolTable.scala:242) | |
at scala.reflect.internal.SymbolTable.exitingPhase(SymbolTable.scala:263) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer.transform(Mixin.scala:1261) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer.transform(Mixin.scala:468) | |
at scala.reflect.internal.Trees$class.itransform(Trees.scala:1340) | |
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16) | |
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16) | |
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer.transform(Mixin.scala:1258) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer.transform(Mixin.scala:468) | |
at scala.reflect.api.Trees$Transformer$$anonfun$transformStats$1.apply(Trees.scala:2589) | |
at scala.reflect.api.Trees$Transformer$$anonfun$transformStats$1.apply(Trees.scala:2587) | |
at scala.collection.immutable.List.loop$1(List.scala:172) | |
at scala.collection.immutable.List.mapConserve(List.scala:188) | |
at scala.reflect.api.Trees$Transformer.transformStats(Trees.scala:2587) | |
at scala.reflect.internal.Trees$class.itransform(Trees.scala:1359) | |
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16) | |
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16) | |
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer.transform(Mixin.scala:1258) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer.transform(Mixin.scala:468) | |
at scala.reflect.internal.Trees$$anonfun$itransform$2.apply(Trees.scala:1356) | |
at scala.reflect.internal.Trees$$anonfun$itransform$2.apply(Trees.scala:1354) | |
at scala.reflect.api.Trees$Transformer.atOwner(Trees.scala:2600) | |
at scala.reflect.internal.Trees$class.itransform(Trees.scala:1353) | |
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16) | |
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16) | |
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer.transform(Mixin.scala:1258) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer.transform(Mixin.scala:468) | |
at scala.reflect.api.Trees$Transformer$$anonfun$transformStats$1.apply(Trees.scala:2589) | |
at scala.reflect.api.Trees$Transformer$$anonfun$transformStats$1.apply(Trees.scala:2587) | |
at scala.collection.immutable.List.loop$1(List.scala:172) | |
at scala.collection.immutable.List.mapConserve(List.scala:188) | |
at scala.reflect.api.Trees$Transformer.transformStats(Trees.scala:2587) | |
at scala.reflect.internal.Trees$class.itransform(Trees.scala:1397) | |
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16) | |
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16) | |
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer.transform(Mixin.scala:1258) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer.transform(Mixin.scala:468) | |
at scala.reflect.api.Trees$Transformer.transformTemplate(Trees.scala:2563) | |
at scala.reflect.internal.Trees$$anonfun$itransform$4.apply(Trees.scala:1401) | |
at scala.reflect.internal.Trees$$anonfun$itransform$4.apply(Trees.scala:1400) | |
at scala.reflect.api.Trees$Transformer.atOwner(Trees.scala:2600) | |
at scala.reflect.internal.Trees$class.itransform(Trees.scala:1399) | |
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16) | |
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16) | |
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer.transform(Mixin.scala:1258) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer.transform(Mixin.scala:468) | |
at scala.reflect.api.Trees$Transformer$$anonfun$transformStats$1.apply(Trees.scala:2589) | |
at scala.reflect.api.Trees$Transformer$$anonfun$transformStats$1.apply(Trees.scala:2587) | |
at scala.collection.immutable.List.loop$1(List.scala:172) | |
at scala.collection.immutable.List.mapConserve(List.scala:188) | |
at scala.reflect.api.Trees$Transformer.transformStats(Trees.scala:2587) | |
at scala.reflect.internal.Trees$$anonfun$itransform$7.apply(Trees.scala:1419) | |
at scala.reflect.internal.Trees$$anonfun$itransform$7.apply(Trees.scala:1419) | |
at scala.reflect.api.Trees$Transformer.atOwner(Trees.scala:2600) | |
at scala.reflect.internal.Trees$class.itransform(Trees.scala:1418) | |
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16) | |
at scala.reflect.internal.SymbolTable.itransform(SymbolTable.scala:16) | |
at scala.reflect.api.Trees$Transformer.transform(Trees.scala:2555) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer.transform(Mixin.scala:1258) | |
at scala.tools.nsc.transform.Mixin$MixinTransformer.transform(Mixin.scala:468) | |
at scala.tools.nsc.ast.Trees$Transformer.transformUnit(Trees.scala:147) | |
at scala.tools.nsc.transform.Transform$Phase.apply(Transform.scala:30) | |
at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:430) | |
at scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:397) | |
at scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:397) | |
at scala.collection.Iterator$class.foreach(Iterator.scala:743) | |
at scala.collection.AbstractIterator.foreach(Iterator.scala:1174) | |
at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:397) | |
at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1625) | |
at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1610) | |
at scala.tools.nsc.Global$Run.compileSources(Global.scala:1605) | |
at scala.tools.nsc.Global$Run.compile(Global.scala:1703) | |
at xsbt.CachedCompiler0.run(CompilerInterface.scala:116) | |
at xsbt.CachedCompiler0.run(CompilerInterface.scala:95) | |
at xsbt.CompilerInterface.run(CompilerInterface.scala:26) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101) | |
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47) | |
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41) | |
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply$mcV$sp(AggressiveCompile.scala:97) | |
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:97) | |
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:97) | |
at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:162) | |
at sbt.compiler.AggressiveCompile$$anonfun$3.compileScala$1(AggressiveCompile.scala:96) | |
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:139) | |
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.IncrementalCommon.cycle(IncrementalCommon.scala:31) | |
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:39) | |
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:38) | |
at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:66) | |
at sbt.inc.Incremental$.compile(Incremental.scala:38) | |
at sbt.inc.IncrementalCompile$.apply(Compile.scala:26) | |
at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:153) | |
at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:70) | |
at sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:45) | |
at sbt.Compiler$.apply(Compiler.scala:74) | |
at sbt.Compiler$.apply(Compiler.scala:65) | |
at sbt.Defaults$.sbt$Defaults$$compileTaskImpl(Defaults.scala:789) | |
at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:781) | |
at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:781) | |
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) | |
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40) | |
at sbt.std.Transform$$anon$4.work(System.scala:63) | |
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226) | |
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226) | |
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17) | |
at sbt.Execute.work(Execute.scala:235) | |
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226) | |
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226) | |
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159) | |
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28) | |
at java.util.concurrent.FutureTask.run(FutureTask.java:262) | |
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) | |
at java.util.concurrent.FutureTask.run(FutureTask.java:262) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) | |
at java.lang.Thread.run(Thread.java:745) |
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
// Lift 2.6-RC2, Scala 2.10.4, 2.11.1 | |
import xml.{Text, NodeSeq} | |
import net.liftweb.util.Helpers._ | |
object Main extends App { | |
val list = List("a", "b", "c", "d") | |
def hoge(n: NodeSeq): NodeSeq = { | |
var index: Int = 0 | |
list.flatMap(u => { | |
index += 1 | |
bind("e", n, | |
"hoge" -> u) | |
}) | |
} | |
hoge(<span></span>) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment