triplequote / intellij-scala

Scala plugin for IntelliJ IDEA
http://blog.jetbrains.com/scala/
Apache License 2.0
0 stars 2 forks source link

Race condition with the reporter #12

Closed dotta closed 7 years ago

dotta commented 7 years ago

This occurred while compiling. I think we might have to fix this on the Hydra side, but I haven't explored it so I'm filing a ticket here to not forget.

Error:scalac: Error: -1
java.lang.ArrayIndexOutOfBoundsException: -1
    at scala.collection.mutable.ArrayBuffer.$plus$eq(ArrayBuffer.scala:85)
    at scala.collection.mutable.ArrayBuffer.$plus$eq(ArrayBuffer.scala:48)
    at org.jetbrains.jps.incremental.scala.local.AbstractCompiler$ClientReporter.log(AbstractCompiler.scala:97)
    at xsbt.DelegatingReporter.info0(DelegatingReporter.scala:125)
    at xsbt.DelegatingReporter.info0(DelegatingReporter.scala:102)
    at scala.reflect.internal.Reporter.error(Reporting.scala:84)
    at com.triplequote.hydra.Hydra$.compile(Hydra.scala:221)
    at com.triplequote.hydra.Hydra$.compile(Hydra.scala:107)
    at xsbt.CachedCompiler0.run(CompilerInterface.scala:160)
    at xsbt.CachedCompiler0.run(CompilerInterface.scala:135)
    at xsbt.CompilerInterface.run(CompilerInterface.scala:45)
    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:498)
    at sbt.internal.inc.AnalyzingCompiler.call(AnalyzingCompiler.scala:237)
    at sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:111)
    at sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:90)
    at org.jetbrains.jps.incremental.scala.local.IdeaIncrementalCompiler.compile(IdeaIncrementalCompiler.scala:40)
    at org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:30)
    at org.jetbrains.jps.incremental.scala.remote.Main$.make(Main.scala:68)
    at org.jetbrains.jps.incremental.scala.remote.Main$.nailMain(Main.scala:25)
    at org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala)
    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:498)
    at com.martiansoftware.nailgun.NGSession.run(NGSession.java:319)