https://kotlinlang.org logo
#kapt
Title
# kapt
a

austynm

10/26/2017, 7:47 PM
Copy code
gradle.projectsEvaluated {
    tasks.withType(JavaCompile) {
        options.compilerArgs << "-Xmaxerrs" << "500"
    }
}

kapt {
    javacOptions {
        option("-Xmaxerrs", 500)
    }
}
o

orangy

11/02/2017, 6:11 PM
@yan ^^
y

yan

11/03/2017, 12:40 AM
Can you reproduce it somehow? I think there might be such an issue with a long chain of exceptions. But there are no limiters on the kapt side, so it might be Java and/or Gradle problem.
a

austynm

11/04/2017, 12:03 AM
I have not found a way to reproduce it outside of our project, but I've seen a few other people report the same issue on kotlinlang forums.
@yan Is there some kind of debugging I could do or switch I can add that may give you more information?
I’ve confirmed that
kapt.javacOptions
is passing the value correctly (setting to 150 limited the error output correctly, setting to 200 showed all 190 error messages). It still does not fix the underlying kapt exception though.
For anyone following along we found a workaround to at least show the errors (tl;dr use original kapt)
7 Views