当我运行sbt
任务compile
或assembly
时,我没有看到任何编译器错误,而且我得到了一个有效的jar。当我从IntelliJ 13.1.1#UI-135.480运行运行配置时,我看到来自scalac的以下错误。
我尝试运行sbt clean
,使缓存失效,杀死所有的nailgun跑步者,重新启动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重建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/首页/ 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/内容/首页/ 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 /阶-library.jar 最后一棵树到typer:TypeTree(trait Seq) symbol:trait包中的Seq集合(flags:abstract)符号定义: 抽象特征Seq [+ A]使用Iterable扩展PartialFunction [Int,A] [A] GenSeq [A]与GenericTraversableTemplate [A,Seq]一起使用 SeqLike [A,SEQ [A]] tpe:Seq 符号所有者:特质Seq - >包裹集合 上下文所有者:方法convertToStringShouldWrapper - > CareMailNotifierUtilTest类 - >包装cigna ==包含模板或块== Apply(//覆盖隐式def convertToStringShouldWrapper(o:String): 应该是特色的MayMatchers的theMatchers.this.StringShouldWrapper, tree.tpe = org.scalatest.matchers.ShouldMatchers#StringShouldWrapper
CareMailNotifierUtilTest.this" convertToStringShouldWrapper" // 覆盖隐式def convertToStringShouldWrapper(o:String): 应该是特色的MayMatchers的theMatchers.this.StringShouldWrapper, tree.tpe =(○: 字符串)org.scalatest.matchers.ShouldMatchers#StringShouldWrapper" o" // o:String,tree.tpe = String) ==扩展树类型== TypeRef(TypeSymbol( 抽象特征Seq [+ A]将带有Iserable [A]的PartialFunction [Int,A]与带有GenericTraversableTemplate [A,Seq]的GenSeq [A]一起扩展 SeqLike [A,SEQ [A]] )normalize = PolyType( typeParams = List(TypeParam(+ A)) resultType = TypeRef( TypeSymbol( 抽象特征Seq [+ A]将带有Iserable [A]的PartialFunction [Int,A]与带有GenericTraversableTemplate [A,Seq]的GenSeq [A]一起扩展 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 /内容/首页/ JRE / lib中/ JObjC.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre/classes:/Users/AudaxLoaner1/.sbt/boot/scala-2.10 0.3 / LIB /阶-library.jar 最后一棵树到typer:TypeTree(trait Seq) symbol:trait包中的Seq集合(flags:abstract)符号定义: 抽象特征Seq [+ A]使用Iterable扩展PartialFunction [Int,A] [A] GenSeq [A]与GenericTraversableTemplate [A,Seq]一起使用 SeqLike [A,SEQ [A]] tpe:Seq 符号所有者:特质Seq - >包裹集合 上下文所有者:方法convertToStringShouldWrapper - > CareMailNotifierUtilTest类 - >包装cigna ==包含模板或块== Apply(//覆盖隐式def convertToStringShouldWrapper(o:String): 应该是特色的MayMatchers的theMatchers.this.StringShouldWrapper, tree.tpe = org.scalatest.matchers.ShouldMatchers#StringShouldWrapper
CareMailNotifierUtilTest.this" convertToStringShouldWrapper" // 覆盖隐式def convertToStringShouldWrapper(o:String): 应该是特色的MayMatchers的theMatchers.this.StringShouldWrapper, tree.tpe =(○: 字符串)org.scalatest.matchers.ShouldMatchers#StringShouldWrapper" o" // o:String,tree.tpe = String) ==扩展树类型== TypeRef(TypeSymbol( 抽象特征Seq [+ A]将带有Iserable [A]的PartialFunction [Int,A]与带有GenericTraversableTemplate [A,Seq]的GenSeq [A]一起扩展 SeqLike [A,SEQ [A]] )normalize = PolyType( typeParams = List(TypeParam(+ A)) resultType = TypeRef( TypeSymbol( 抽象特征Seq [+ A]将带有Iserable [A]的PartialFunction [Int,A]与带有GenericTraversableTemplate [A,Seq]的GenSeq [A]一起扩展 SeqLike [A,SEQ [A]]) args = List(TypeParamTypeRef(TypeParam(+A))) ) ) ) class StringShouldWrapper at scala.tools.nsc.transform.AddInterfaces.transformMixinInfo(AddInterfaces.scala:213)
at scala.tools.nsc.transform.Erasure.transformInfo(Erasure.scala:329) 在 scala.tools.nsc.transform.InfoTransform $阶段$$不久$ 1.transform(InfoTransform.scala:38) 在scala.reflect.internal.Symbols $ Symbol.rawInfo(Symbols.scala:1312) 在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 $$不久$ 6.baseType(Types.scala:2544) at scala.reflect.internal.Types $ class.firstTry $ 1(Types.scala:6058) at scala.reflect.internal.Types $ class.isSubType2(Types.scala:6222) 在scala.reflect.internal.Types $ class.isSubType(Types.scala:5831)at at scala.reflect.internal.SymbolTable.isSubType(SymbolTable.scala:13)at at 。scala.reflect.internal.Types $输入$ $少结肠$以下(Types.scala:872) 在 scala.tools.nsc.transform.Erasure $ Eraser.scala $工具$ NSC $ $改造擦除$橡皮擦$$ 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) 在scala.tools.nsc.typechecker.Typers $ Typer.typed1(Typers.scala:5535) 在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 $工具$ NSC $ typechecker $ Typers $打字员$$ typedStat $ 1(Typers.scala:2927) 在 scala.tools.nsc.typechecker.Typers $打字员$$ anonfun $ 60.apply(Typers.scala:3031) 在 scala.tools.nsc.typechecker.Typers $打字员$$ anonfun $ 60.apply(Typers.scala:3031) 在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: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) 在scala.tools.nsc.typechecker.Typers $ Typer.typed(Typers.scala:5608) 在 scala.tools.nsc.typechecker.Typers $ Typer.scala $工具$ NSC $ typechecker $ Typers $打字员$$ typedStat $ 1(Typers.scala:2927) 在 scala.tools.nsc.typechecker.Typers $打字员$$ anonfun $ 60.apply(Typers.scala:3031) 在 scala.tools.nsc.typechecker.Typers $打字员$$ anonfun $ 60.apply(Typers.scala:3031) 在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:3031) 在 scala.tools.nsc.typechecker.Typers $ Typer.typedPackageDef $ 1(Typers.scala:5267) 在scala.tools.nsc.typechecker.Typers $ Typer.typed1(Typers.scala:5553) 在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.typed(Typers.scala:5670) 在 scala.tools.nsc.transform.Erasure $ ErasureTransformer $$ anonfun $ $转换2.适用(Erasure.scala:1291) 在 scala.tools.nsc.transform.Erasure $ ErasureTransformer $$ anonfun $ $转换2.适用(Erasure.scala:1287) 在scala.reflect.internal.SymbolTable.atPhase(SymbolTable.scala:207) 在 scala.reflect.internal.SymbolTable.afterPhase(SymbolTable.scala:216) 在 scala.tools.nsc.transform.Erasure $ ErasureTransformer.transform(Erasure.scala:1287) 在 scala.tools.nsc.transform.Erasure $ ErasureTransformer.transform(Erasure.scala:888) 在 scala.tools.nsc.ast.Trees $ Transformer.transformUnit(Trees.scala:227) 在 scala.tools.nsc.transform.Transform $ Phase.apply(Transform.scala:30) 在scala.tools.nsc.Global $ GlobalPhase.applyPhase(Global.scala:464) 在 scala.tools.nsc.Global $ GlobalPhase $$ anonfun $运行$ 1.适用(Global.scala:431) 在 scala.tools.nsc.Global $ GlobalPhase $$ anonfun $运行$ 1.适用(Global.scala:431) 在scala.collection.Iterator $ class.foreach(Iterator.scala:727)at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)at scala.tools.nsc.Global $ GlobalPhase.run(Global.scala:431)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:126)at xsbt.CachedCompiler0.run(CompilerInterface.scala:102)at xsbt.CompilerInterface.run(CompilerInterface.scala:27)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke(Method.java:606)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 org.jetbrains.jps.incremental.scala.local.IdeaIncrementalCompiler.compile(IdeaIncrementalCompiler.scala:28) 在 org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:25) 在 org.jetbrains.jps.incremental.scala.remote.Main $。使(Main.scala:58) 在 org.jetbrains.jps.incremental.scala.remote.Main $ .nailMain(Main.scala:21) 在 org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke(Method.java:606)at com.martiansoftware.nailgun.NGSession.run(NGSession.java:319)
答案 0 :(得分:0)
唯一帮助我的是删除项目中的所有“目标”目录并再次运行compile
(无助的步骤包括使缓存无效,重新加载项目并运行clean
)。