Open scabug opened 8 years ago
Imported From: https://issues.scala-lang.org/browse/SI-9696?orig=1 Reporter: ruslan shevchenko (rssh) Affected Versions: 2.11.8 See #9002
ruslan shevchenko (rssh) said: btw, this can be reincarnation of #9002
ruslan shevchenko (rssh) said: need check, how they are linked.
@janekdb said: I started seeing this exception a few days ago. Increasing the stack size avoids the problem.
This is my Maven configuration with the stack size specified at a value that fixes the problem.
||Value||Build successes out of 10 runs|| |1024|0| |2048|10|
<!-- Execute scalac before javac to support joint compilation. -->
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.2.2</version>
<configuration>
<args>
<!--
<arg>-verbose</arg>
<arg>-unchecked</arg>
<arg>-explaintypes</arg>
-->
<arg>-deprecation</arg>
</args>
<displayCmd>true</displayCmd>
<jvmArgs>
<jvmArg>-Xss2048K</jvmArg>
</jvmArgs>
</configuration>
<executions>
<!--
add-source is not required. java and scala source directories are included by default.
Scala sources can be located in either directory.
Java sources must be located in the java source directory.
. -->
<!--
<execution>
<id>scala-add-source</id>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sourceDir>${project.build.sourceDirectory}/../scala</sourceDir>
<testSourceDir>${project.build.testSourceDirectory}/../scala</testSourceDir>
</configuration>
</execution>
-->
<execution>
<id>scala-compile</id>
<phase>process-resources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>scala-test-compile</id>
<phase>process-test-resources</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
For me it's not a bug but it would be useful to have some tuning guidance logged when this happens.
typer error when trying to compile test. // Stripped-down version is available at https://github.com/rssh/scala-gopher/tree/scala-2.11.8-so-in-compiler
for reproduce: