How to get AspectJ post-compilation weave debug output?
已回答
I have a project that uses AspectJ in compile-time weave mode. Sometimes AspectJ fails in the weave stage and IntelliJ's build output contains a message like, "Error:Module 'app_main' production: org.aspectj.bridge.AbortException: trouble in: com.xyz.SomeClassName".
Is there a way to get more verbose output so I can see what specifically is failing in these cases?
请先登录再写评论。
Please check the build.log for exceptions (https://intellij-support.jetbrains.com/hc/articles/207241085).
The build log has a stack trace but isn't much more informative regarding what actually happened:
Do yo have "Settings | Build, Execution, Deployment | Compiler | Compile independent modules in parallel" option enabled?
I don't. I'll try enabling that and see if the error recurs. It is pretty intermittent and I haven't yet discovered a sequence of steps that will cause it to happen reliably, but it normally happens several times a day so I'll find out before long.
I thought weaving in parallel may be the reason...
Please replace plugins/aspectj/lib/aspectj-jps-plugin.jar with this file. When the issue happens again, please attach the build log to IDEA-171444.