|
Re: Out of memory Xtext RC1 (IDEA) [message #1715293 is a reply to message #1715258] |
Sat, 21 November 2015 06:09 |
|
Java 6 is way too memory constrained out of the box. You can use the MAVEN_OPTS environment variable to set more generous memory settings.
I have: -Xmx1024m -XX:MaxPermSize=256m
The build errors you are seeing happen because you need to start the Gradle build at least once so it will download the IntelliJ version you compile against. After that you can hit the refresh button in the Gradle view and your dependencies will be there. If you work with IntelliJ, I would highly recommend going with Gradle all the way.
|
|
|
Re: Out of memory Xtext RC1 (IDEA) [message #1715382 is a reply to message #1715293] |
Mon, 23 November 2015 07:51 |
|
Thank you Stephan
I've create new "Hello World" project with Gradle as build tool. And try to build. I observed compile time error. I looked in generated source code and found out that part of packages is not available. For example
====
18:43:24.527 [DEBUG] [org.eclipse.xtend.core.compiler.batch.XtendBatchCompiler] 2. ERROR in C:\Users\agorlov\Documents\workspaces\ide-mydsl\ide-mydsl.parent\ide-mydsl.idea\src\main\xtext-gen\org\xtext\example\mydsl\idea\AbstractMyDslIdeaModule.java
18:43:24.527 [DEBUG] [org.eclipse.xtend.core.compiler.batch.XtendBatchCompiler] (at line
import com.intellij.facet.FacetTypeId;
====
Seems to be a library is not reachable. I looked into gradle's cache and found required modules. Seems to me something wrong in gradle build configuration.
Can anybody help me in this case?
Thanks
Alex
|
|
|
Re: Out of memory Xtext RC1 (IDEA) [message #1715855 is a reply to message #1715382] |
Thu, 26 November 2015 16:28 |
|
Hey Alex,
my only guess is that the download of the idea SDK was interrupted. Try deleting <userHome>/.gradle/ideaSDK.
I made a note that we need to improve the logic of our Gradle plugin so it detects corrupted SDK downloads.
Cheers,
Stefan
|
|
|
Powered by
FUDForum. Page generated in 0.03079 seconds