-
Notifications
You must be signed in to change notification settings - Fork 21
Stack Overflow Exception in typer #9696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Imported From: https://issues.scala-lang.org/browse/SI-9696?orig=1 |
ruslan shevchenko (rssh) said: |
ruslan shevchenko (rssh) said: |
@janekdb said: This is my Maven configuration with the stack size specified at a value that fixes the problem. ||Value||Build successes out of 10 runs|| <!-- 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. |
When you run out of stack, you don't know how much more you needed. I think a test tool that records resources required by a test would be helpful: how much CPU, stack, heap etc. Then deviations would alert. |
Uh oh!
There was an error while loading. Please reload this page.
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:
The text was updated successfully, but these errors were encountered: