当我运行sbt
任务compile
或者assembly
我没有看到任何编译器错误并且我得到一个有效的 jar 时。当我从 IntelliJ 13.1.1 #UI-135.480 运行运行配置时,我看到来自 scalac 的以下错误。
我尝试运行sbt clean
,使缓存无效,杀死所有 nailgun runner,重新启动 IntelliJ IDEA。我现在总是看到这个错误。我之前遇到过类似的问题,解决它的唯一方法是从我的计算机中删除每个 IntelliJ 文件并重新安装它。我希望这次我不必这样做。在此之前,我将在 IntelliJ 12 中尝试此操作。
任何想法这可能是什么?
错误:scalac:错误:断言失败:编译时:/code/zensey/backend/common/CareDataExchange/src/test/scala/com/careverge/cigna/NotifierTest.scala 在阶段:擦除库版本:2.10.3 版编译器版本:版本 2.10.3 重构参数:-deprecation -language:experimental.macros -feature -classpath Giant:ass:classpath -unchecked -bootclasspath /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre/ lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/ jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/主页/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.7。0_25.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1 .7.0_25.jdk/Contents/Home/jre/lib/JObjC.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre/classes:/Users/AudaxLoaner1/.sbt/boot/ scala-2.10.3/lib/scala-library.jar 最后一棵树到 typer: TypeTree(trait Seq) 符号: trait Seq in package collection (flags: abstract ) 符号定义: abstract trait Seq[+A] extends PartialFunction[Int, A] with Iterable[A] with GenSeq[A] with GenericTraversableTemplate[A,Seq] with SeqLike[A,Seq[A]] ->package cigna == 封闭模板或块 == Apply( // 覆盖隐式 def convertToStringShouldWrapper(o: String): ShouldMatchers.this.StringShouldWrapper in trait ShouldMatchers, tree.tpe=org.scalatest.matchers.ShouldMatchers#StringShouldWrapper
CareMailNotifierUtilTest.this."convertToStringShouldWrapper" // 覆盖隐式 def convertToStringShouldWrapper(o: String): ShouldMatchers.this.StringShouldWrapper in trait ShouldMatchers, tree.tpe=(o: String)org.scalatest.matchers.ShouldMatchers#StringShouldWrapper "o" / / o: String, tree.tpe=String ) == 树的扩展类型 == TypeRef( TypeSymbol( abstract trait Seq[+A] extends PartialFunction[Int,A] with Iterable[A] with GenSeq[A] with GenericTraversableTemplate[ A,Seq] with SeqLike[A,Seq[A]] ) normalize = PolyType( typeParams = List(TypeParam(+A)) resultType = TypeRef( TypeSymbol( abstract trait Seq[+A] extends PartialFunction[Int,A] with Iterable[A] with GenSeq[A] with GenericTraversableTemplate[A,Seq] with SeqLike[A,Seq[A]]) args = List(TypeParamTypeRef(TypeParam(+A))) ) ) ) class StringShouldWrapper java.lang.AssertionError: assertion failed: while compiling: /code/zensey/backend/common/CareDataExchange/src/test/scala/com/careverge/cigna/NotifierTest.scala during phase: erasure library version: version 2.10.3 compiler version: version 2.10.3 reconstructed args: -deprecation -language:experimental.macros -feature -classpath giant:ass:classpath
-unchecked -bootclasspath /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre/ lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/ jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/ Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/ Contents/Home/jre/lib/JObjC.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre/classes:/Users/AudaxLoaner1/.sbt/boot/scala-2.10.3/ lib/scala-library.jar 最后一棵树到 typer:TypeTree(trait Seq) 符号:包集合中的 trait Seq (flags: abstract ) 符号定义:抽象 trait Seq[+A] extends PartialFunction[Int,A] with Iterable[A] with GenSeq[A] with GenericTraversableTemplate[A,Seq ] with SeqLike[A,Seq[A]] tpe: Seq symbol owner: trait Seq -> package collection context owner: method convertToStringShouldWrapper -> class CareMailNotifierUtilTest -> package cigna == Enclosure template or block == Apply( // 覆盖隐式def convertToStringShouldWrapper(o: String): ShouldMatchers.this.StringShouldWrapper in trait ShouldMatchers, tree.tpe=org.scalatest.matchers.ShouldMatchers#StringShouldWrapperabstract trait Seq[+A] extends PartialFunction[Int,A] with Iterable[A] with GenSeq[A] with GenericTraversableTemplate[A,Seq] with SeqLike[A,Seq[A]] tpe: Seq symbol owner: trait Seq - > 包集合上下文所有者:方法 convertToStringShouldWrapper -> 类 CareMailNotifierUtilTest -> 包 cigna == 封闭模板或块 == Apply( // 覆盖隐式 def convertToStringShouldWrapper(o: String): ShouldMatchers.this.StringShouldWrapper in trait ShouldMatchers, tree.tpe =org.scalatest.matchers.ShouldMatchers#StringShouldWrapperabstract trait Seq[+A] extends PartialFunction[Int,A] with Iterable[A] with GenSeq[A] with GenericTraversableTemplate[A,Seq] with SeqLike[A,Seq[A]] tpe: Seq symbol owner: trait Seq - > 包集合上下文所有者:方法 convertToStringShouldWrapper -> 类 CareMailNotifierUtilTest -> 包 cigna == 封闭模板或块 == Apply( // 覆盖隐式 def convertToStringShouldWrapper(o: String): ShouldMatchers.this.StringShouldWrapper in trait ShouldMatchers, tree.tpe =org.scalatest.matchers.ShouldMatchers#StringShouldWrapper方法 convertToStringShouldWrapper -> class CareMailNotifierUtilTest -> package cigna == 封闭模板或块 == Apply( // 覆盖隐式 def convertToStringShouldWrapper(o: String): ShouldMatchers.this.StringShouldWrapper in trait ShouldMatchers, tree.tpe=org.scalatest.matchers .ShouldMatchers#StringShouldWrapper方法 convertToStringShouldWrapper -> class CareMailNotifierUtilTest -> package cigna == 封闭模板或块 == Apply( // 覆盖隐式 def convertToStringShouldWrapper(o: String): ShouldMatchers.this.StringShouldWrapper in trait ShouldMatchers, tree.tpe=org.scalatest.matchers .ShouldMatchers#StringShouldWrapper
CareMailNotifierUtilTest.this."convertToStringShouldWrapper" // 覆盖隐式 def convertToStringShouldWrapper(o: String): ShouldMatchers.this.StringShouldWrapper in trait ShouldMatchers, tree.tpe=(o: String)org.scalatest.matchers.ShouldMatchers#StringShouldWrapper "o" / / o: String, tree.tpe=String ) == 树的扩展类型 == TypeRef( TypeSymbol( abstract trait Seq[+A] extends PartialFunction[Int,A] with Iterable[A] with GenSeq[A] with GenericTraversableTemplate[ A,Seq] with SeqLike[A,Seq[A]] ) normalize = PolyType( typeParams = List(TypeParam(+A)) resultType = TypeRef( TypeSymbol( abstract trait Seq[+A] extends PartialFunction[Int,A] with Iterable[A] with GenSeq[A] with GenericTraversableTemplate[A,Seq] with SeqLike[A,Seq[A]]) args = List(TypeParamTypeRef(TypeParam(+A))) ) ) ) class StringShouldWrapper at scala.tools.nsc.transform.AddInterfaces.transformMixinInfo(AddInterfaces.scala:213)
在 scala.tools.nsc.transform.Erasure.transformInfo(Erasure.scala:329) 在 scala.tools.nsc.transform.InfoTransform$Phase$$anon$1.transform(InfoTransform.scala:38) 在 scala.reflect.internal .Symbols$Symbol.rawInfo(Symbols.scala:1312) at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1239) at scala.reflect.internal.Types$ClassTypeRef$class.baseType(Types.scala :2186) 在 scala.reflect.internal.Types$TypeRef$$anon$6.baseType(Types.scala:2544) 在 scala.reflect.internal.Types$class.firstTry$1(Types.scala:6058) 在 scala.reflect .internal.Types$class.isSubType2(Types.scala:6222) at scala.reflect.internal.Types$class.isSubType(Types.scala:5831) at scala.reflect.internal.SymbolTable.isSubType(SymbolTable.scala:13 ) 在 scala.tools.nsc 的 scala.reflect.internal.Types$Type.$less$colon$less(Types.scala:872)。transform.Erasure$Eraser.scala$tools$nsc$transform$Erasure$Eraser$$adaptToType(Erasure.scala:690) 在 scala.tools.nsc.transform.Erasure$Eraser.adapt(Erasure.scala:816) 在 scala .tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5626) 在 scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:5811) 在 scala.tools.nsc.typechecker.Typers $Typer.typedDefDef(Typers.scala:2256) at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5535) at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala :835) 在 scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608) 在 scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$ typedStat$1(Typers.scala:2927) 在 scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031) 在 scala。tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3031) at scala.collection.immutable.List.loop$1(List.scala:170) at scala.collection.immutable.List.mapConserve (List.scala:186) 在 scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3031) 在 scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1918) 在scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:1758) 在 scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5549) 在 scala.tools.nsc.transform。 Erasure$Eraser.typed1(Erasure.scala:835) at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608) at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$ nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2927) 在 scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60。在 scala.tools.nsc.typechecker.Typers$Typer$$anonfun 应用(Typers.scala:3031)$60.apply(Typers.scala:3031) 在 scala.collection.immutable.List.loop$1(List.scala:170 ) 在 scala.collection.immutable.List.mapConserve(List.scala:186) 在 scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3031) 在 scala.tools.nsc.typechecker.Typers$ Typer.typedPackageDef$1(Typers.scala:5267) at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5553) at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala :835) 在 scala.tools 的 scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5608) 在 scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5670)。 nsc.transform.Erasure$ErasureTransformer$$anonfun$transform$2.apply(Erasure.scala:1291) 在 scala.tools.nsc.transform。Erasure$ErasureTransformer$$anonfun$transform$2.apply(Erasure.scala:1287) at scala.reflect.internal.SymbolTable.atPhase(SymbolTable.scala:207) at scala.reflect.internal.SymbolTable.afterPhase(SymbolTable.scala: 216) 在 scala.tools.nsc.transform.Erasure$ErasureTransformer.transform(Erasure.scala:888) 在 scala.tools.nsc .ast.Trees$Transformer.transformUnit(Trees.scala:227) at scala.tools.nsc.transform.Transform$Phase.apply(Transform.scala:30) at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global .scala:464) 在 scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:431) 在 scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global .scala:431) 在 scala.collection.Iterator$class.foreach(Iterator.scala:727) 在 scala.collection.AbstractIterator.foreach(Iterator.scala:1157) 在 scala.tools.nsc.Global$GlobalPhase.run(Global.scala:431) 在 scala.tools.nsc.Global$Run.compileUnitsInternal (Global.scala:1583) 在 scala.tools.nsc.Global$Run.compileUnits(Global.scala:1557) 在 scala.tools.nsc.Global$Run.compileSources(Global.scala:1553) 在 scala.tools。 nsc.Global$Run.compile(Global.scala:1662) at xsbt.CachedCompiler0.run(CompilerInterface.scala:126) at xsbt.CachedCompiler0.run(CompilerInterface.scala:102) at xsbt.CompilerInterface.run(CompilerInterface.scala :27) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在 java.lang.reflect.Method.invoke(Method.java:606) 在 sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:102) 在 sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:48) 在sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41) 在 org.jetbrains.jps.incremental.scala.local.IdeaIncrementalCompiler.compile(IdeaIncrementalCompiler.scala:28) 在 org.jetbrains.jps.incremental.scala.local。 LocalServer.compile(LocalServer.scala:25) at org.jetbrains.jps.incremental.scala.remote.Main$.make(Main.scala:58) at org.jetbrains.jps.incremental.scala.remote.Main$。 nailMain(Main.scala:21) 在 org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在 sun.reflect.NativeMethodAccessorImpl。在 com.martiansoftware.nailgun.NGSession.run 的 java.lang.reflect.Method.invoke(Method.java:606) 的 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 的调用(NativeMethodAccessorImpl.java:57) (NGSession.java:319)