How to Debug Groovy Compiler

已回答

 

In this project: https://github.com/wise-coders/groovyfx., a fork of GroovyFX http://groovyfx.org/ source code https://github.com/groovyfx-project/groovyfx I got an error during ‘gradlew build’.

The error is generated by the groovy compiler. How can I start Intellij gradlew in debug mode?

 

Here is a recommandation from Groovy team:

https://issues.apache.org/jira/projects/GROOVY/issues/GROOVY-11442?filter=allopenissues 

This means you need to start gradle itself in debug mode, since gradle will execute the groovy compiler... well... I guess a worker is doing that actually... so you may have to debug the gradle worker.

0

Hello!

You should be able to do that by running a Gradle Run Configuration in Debug mode.

Note that "Build and run using" options must be set to “Gradle”.

0

I tried this but without success. The error happen during compilation task which is done with Groovy. Maybe is some more setting I miss?

 

0

Pruteanu Does the issue persist when you run the build outside of IDEA (i. e. via OS Command Prompt)?

Since the issue seems to be highly-specific to GroovyFX it might be worth asking for advice there?

 

0

请先登录再写评论。