In building this project (link below), kapt complains vigorously that Micronaut annotations are non-incremental. I presume this issue is a "feature" request, rather than a bug. The code runs fine.
This only happens in Kotlin 1.3.50. With Kotlin 1.3.41, it does not happen.
(Note, there are other kapt warnings; I didn't want to mix concerns in the same GitHub issue.)
No warnings from kapt about non-incremental annotations.
This happens in every module of the project:
w: [kapt] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: io.micronaut.annotation.processing.TypeElementVisitorProcessor (NON_INCREMENTAL), io.micronaut.annotation.processing.PackageConfigurationInjectProcessor (NON_INCREMENTAL), io.micronaut.annotation.processing.BeanDefinitionInjectProcessor (NON_INCREMENTAL).
I use this project as a showcase to encourage colleagues and client to consider Kotlin over Java, and Micronaut over Spring Boot.
I have an expected error to the console:
hm.binkley.basilisk.chef.PersistedChefsControllerTest > should get no chef() STANDARD_OUT
07:31:07.667 [pool-3-thread-3] ERROR i.m.h.s.netty.RoutingInBoundHandler - Unexpected error occurred: No chef for CHEF123
I do not want this to distract, so mention it to avoid confusion when running the tests. I'm still working to understand @Error, and how Micronaut logs problems.
Waiting for debugger never goes away. This is the only error I get.
I have an app on 1.2.0 where I was seeing this, I upgraded straight to 1.3.1 and I still get this warning.
Tried with 1.2.10 and the warning disappears. Has this fix been lost between 1.2.10 -> 1.3.x?
We had to disable it by default because it turns out that incremental annotation processors cannot handle all annotations so you have to configure the packages where you may have custom annotations defined. See https://docs.micronaut.io/latest/guide/index.html#java for information.
@graemerocher Thank you for the work and explanation on this. I still tout Kotlin+Micronaut to colleagues. :)
Probably self explanatory but I will add it here for future references:
If you are using kapt you pass the argument as so:
kapt {
arguments {
arg("micronaut.processing.incremental", true)
}
}
Most helpful comment
Probably self explanatory but I will add it here for future references:
If you are using kapt you pass the argument as so:
kapt { arguments { arg("micronaut.processing.incremental", true) } }