jglapa commented on issue #15169:
URL: https://github.com/apache/grails-core/issues/15169#issuecomment-3883315271

   After multiple tries with bisecting the test set nothing was revealed. Test 
compilation worked fine but I sometimes started getting `java heap spaces` 
errors so I increased the memory allocated `GroovyCompile` task type and the 
**problem went away** 
   
   Somehow with my project setup and amount of code I was getting _parsing 
failed_ with :
   ```
   tasks.withType(GroovyCompile) {
       configure(groovyOptions) {
           forkOptions.jvmArgs = ['-Xmx1024m']
       }
   }
   ```
   
   decreasing it to `512m` caused `java heap error` increasing it to `2048m` 
made the problem go completely away.
   
   Unsure how the compilation happens that I was getting parsing failure 
instead of heap errors (even after disabling gradle 
`org.gradle.parallel=false`) but this is the outcome, needed more memory.
   
   I tried fabricating a project to reproduce but I cannot, it's either java 
heap error or everything works.
   
   I think we can close the issue and whoever encounters the problem should be 
able to find this issue and just increase the memory.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to