-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Java arguments specified via jvmArgs are ignored for incremental compilation #507
Comments
For |
If we use the default value of |
I'm going to try and fix this. |
So actually, this is super complicated to implement. The incremental compiler needs a huge amount of parameters, it would be a huge effort. Not impossible, but not something I'll be able to tackle any time soon. As a workaround, I think we could:
@davidB WDYT? |
I prefer 2. (less magic/hidden behavior for end-user). I guess by "crash" you mean exit with an error message to explain the cause. Thanks @slandelle for your support. |
…close #507 Motivation: The incremental mode which is now the default one doesn't handle jvmArgs as it can't run in a forked process. A user might need this for example in order to increase the Xss to compile complex code with lots of method chaining and type inference. Modification: * introduce a new Fork class (only used for the incremental compiler for now. * run the incremental compiler as soon as jvmArgs are defined Result: The default incremental compiler now properly handles jvmArgs.
…close #507 Motivation: The incremental mode which is now the default one doesn't handle jvmArgs as it can't run in a forked process. A user might need this for example in order to increase the Xss to compile complex code with lots of method chaining and type inference. Modification: * introduce a new Fork class (only used for the incremental compiler for now. * run the incremental compiler as soon as jvmArgs are defined Result: The default incremental compiler now properly handles jvmArgs.
…close #507 Motivation: The incremental mode which is now the default one doesn't handle jvmArgs as it can't run in a forked process. A user might need this for example in order to increase the Xss to compile complex code with lots of method chaining and type inference. Modification: * introduce a new Fork class (only used for the incremental compiler for now. * run the incremental compiler as soon as jvmArgs are defined Result: The default incremental compiler now properly handles jvmArgs.
…close #507 Motivation: The incremental mode which is now the default one doesn't handle jvmArgs as it can't run in a forked process. A user might need this for example in order to increase the Xss to compile complex code with lots of method chaining and type inference. Modification: * introduce a new Fork class (only used for the incremental compiler for now. * run the incremental compiler as soon as jvmArgs are defined Result: The default incremental compiler now properly handles jvmArgs.
…close #507 Motivation: The incremental mode which is now the default one doesn't handle jvmArgs as it can't run in a forked process. A user might need this for example in order to increase the Xss to compile complex code with lots of method chaining and type inference. Modification: * introduce a new Fork class (only used for the incremental compiler for now. * run the incremental compiler as soon as jvmArgs are defined Result: The default incremental compiler now properly handles jvmArgs.
…close #507 Motivation: The incremental mode which is now the default one doesn't handle jvmArgs as it can't run in a forked process. A user might need this for example in order to increase the Xss to compile complex code with lots of method chaining and type inference. Modification: * introduce a new Fork class (only used for the incremental compiler for now. * run the incremental compiler as soon as jvmArgs are defined Result: The default incremental compiler now properly handles jvmArgs.
Fixed in 4.8.0 |
The original goal was to increase Java stack size for the Scala compilation with help of the
-Xss
Java argument:It looks like all settings from
jvmArgs
are completely ignored for the goalscompile
andtestCompile
.Surprisingly,
jvmArgs
are effective (not ignored) for the goaldoc-jar
.The problem occurs for scala-maven-plugin versions starting from 4.0.0. For the version 3.4.6 the problem does not occur.
This is a severe problem, as it leaves no possibility to overcome StackOverflowError during Scala compilation. For example: Stackoverflow in typechecker.Typers$Typer.
I am attaching a simple Maven project illustrating the problem. Here the JVM argument
-XshowSettings:all
is used as a marker: JVM settings are printed only when running the goaldoc-jar
- neithercompile
nortestCompile
goals.scalac-xss.tar.gz
The text was updated successfully, but these errors were encountered: