Open l0co opened 4 years ago
BTW. Application is built properly. Even if I run this build with tests, they all pass. The only problem is non-zero code from build process because of this exception, which results in failed build in gitlab CI.
This seems like a Kapt issue that its not calling init()
. Would be good to see the full stacktrace
How to generate a better stacktrace?
It seems it's something specific to alpine, I've tried different versions and this issue is present in all of them. However, it works fine for eg. openjdk:14.0.2
.
Unlikely we can or should do anything about this if the bug is in Kapt it needs to be fixed there. Most we could do is throw a better exception. If the init
method of the annotation processor is not called all sorts of things will not work.
Reported here: https://youtrack.jetbrains.com/issue/KT-41788
In
2.0.1
. There's some weird problem I cannot debug. When I build app using./gradlew clean build -x test
from my computer (Linux x64) it works OK. But when I try to do this from withinopenjdk:14-alpine
docker it fails with:And here is the detailed stacktrace:
Looking at
TypeElementVisitorProcessor
code, it lookstypeElementVisitors
isnull
whengetSupportedOptions()
is called, like it was no previousinit()
call.I'm able to reproduce this problem each time, because our CI always fails due to this issue, so I can do some more testing if you want. Just have no idea what to check next.