JetBrains / JetBrains/junie-workflows

Question: how to pass Java settings to IDE

Open
#35 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
33
Forks
4
PR merge metrics
No merged PRs in 30d

Description

When building the project there is an OOME. How can I pass settings like `-Xmx` to Junie for compilation?

```
The system is out of resources.
java: Consult the following stack trace for details.
java: OutOfMemoryError: insufficient memory
java: at com.sun.tools.javac.util.List.prepend(List.java:228)
java: at com.sun.tools.javac.util.ListBuffer.prepend(ListBuffer.java:118)
java: at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.push(TypeAnnotations.java:267)
java: at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(TypeAnnotations.java:274)
java: at com.sun.tools.javac.tree.TreeScanner.visitSelect(TreeScanner.java:264)
java: at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
java: at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
java: at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(TypeAnnotations.java:275)
java: at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitMethodDef(TypeAnnotations.java:1100)
java: at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:778)
java: at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
java: at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitClassDef(TypeAnnotations.java:1042)
java: at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:693)
java: at com.sun.tools.javac.code.TypeAnnotations$1.run(TypeAnnotations.java:127)
java: at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:152)
java: at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:129)
java: at com.sun.tools.javac.comp.Enter.complete(Enter.java:512)
java: at com.sun.tools.javac.comp.Enter.main(Enter.java:471)
java: at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:982)
java: at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:857)
java: at com.sun.tools.javac.main.Main.compile(Main.java:523)
java: at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
java: at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
java: at org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:241)
java: at org.jetbrains.jps.javac.ExternalJavacProcess.compile(ExternalJavacProcess.java:192)
java: at org.jetbrains.jps.javac.ExternalJavacProcess.access$400(ExternalJavacProcess.java:31)
java: at org.jetbrains.jps.javac.ExternalJavacProcess$CompilationRequestsHandler$1.run(ExternalJavacProcess.java:265)
```

When building the project on the command line we pass these settings: https://github.com/quickfix-j/quickfixj/blob/master/.mvn/jvm.config

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.