scala – sbt编译导致stackoverflow错误
发布时间:2020-12-16 09:17:09 所属栏目:安全 来源:网络整理
导读:我现在已经面临这个错误了.完全激怒因为这个.尝试了在stackoverflow和其他站点中看到的所有类似解决方案. 我有4个独立的scala项目.在这些中,我在编译拖曳项目时遇到了StackOverflow错误.这两个项目是四个项目中最大的一个. 当我尝试在Ubuntu Server机器中构
我现在已经面临这个错误了.完全激怒因为这个.尝试了在stackoverflow和其他站点中看到的所有类似解决方案.
我有4个独立的scala项目.在这些中,我在编译拖曳项目时遇到了StackOverflow错误.这两个项目是四个项目中最大的一个. 任何人都可以帮我解决这个问题,因为我因此而生气.如果我打造这个项目10次,那么1到2次就会成功. 我从错误日志中了解到的是类型检查问题.但是,我不知道发生在哪里. 其中一个失败的项目有超过1000个类/特征(不包括病例类). 细节: Ubuntu Server(14) Sbt : 0.13.6 and 0.13.8 tried Scala Version : 2.11.6 JDK: 1.8 下面列出了几行错误: java.lang.StackOverflowError at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:696) at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5396) at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5423) at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5370) at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5374) at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$96.apply(Typers.scala:4523) at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$96.apply(Typers.scala:4523) at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:680) at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4522) at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4578) at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5343) at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5360) at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:696) at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5396) at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5423) at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5370) at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5374) at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5472) at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5480) at scala.tools.nsc.transform.Erasure$Eraser.adaptMember(Erasure.scala:642) at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:696) at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5396) at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5423) at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5370) at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5374) at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$96.apply(Typers.scala:4523) at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$96.apply(Typers.scala:4523) at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:680) at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4522) at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4578) at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5343) at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5360) at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:696) at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5396) at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5423) at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5370) at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5374) at scala.tools.nsc.typechecker.Typers$Typer.typedArg(Typers.scala:3163) at scala.tools.nsc.typechecker.PatternTypers$PatternTyper$class.typedArgWithFormal$1(PatternTypers.scala:112) at scala.tools.nsc.typechecker.PatternTypers$PatternTyper$$anonfun$2.apply(PatternTypers.scala:115) at scala.tools.nsc.typechecker.PatternTypers$PatternTyper$$anonfun$2.apply(PatternTypers.scala:115) at scala.runtime.Tuple2Zipped$$anonfun$map$extension$1.apply(Tuple2Zipped.scala:46) at scala.runtime.Tuple2Zipped$$anonfun$map$extension$1.apply(Tuple2Zipped.scala:44) at scala.collection.immutable.List.foreach(List.scala:381) at scala.runtime.Tuple2Zipped$.map$extension(Tuple2Zipped.scala:44) at scala.tools.nsc.typechecker.PatternTypers$PatternTyper$class.typedArgsForFormals(PatternTypers.scala:115) at scala.tools.nsc.typechecker.Typers$Typer.typedArgsForFormals(Typers.scala:111) at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$handleMonomorphicCall$1(Typers.scala:3469) at scala.tools.nsc.typechecker.Typers$Typer.doTypedApply(Typers.scala:3494) at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4544) at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4578) at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5343) at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5360) at scala.tools.nsc.transform.Erasure$Eraser.typed1(E 解决方法
自2.11.4至2.11.6 afaik以来一直影响Scala.在2.11.7的最新发行说明中,它不会显示为固定的.
幸运的是在track的问题跟踪器上,这是一个重复的ticket,这里在stack overflow 没有源代码更难给出更多的指示,但这肯定是一个很好的指针,以找到问题并应用提出的解决方案 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |