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

jw

06/10/2017, 4:29 AM
logs are
Copy code
00:11:21.355 [DEBUG] [org.gradle.api.Project] [KOTLIN] kapt: Discovered annotation processors: com.google.auto.service.processor.AutoServiceProcessor
00:11:21.355 [DEBUG] [org.gradle.api.Project] [KOTLIN] kapt: Stub annotation generated: /Users/jw/dev/square/cash/thing-processor/build/tmp/kapt/main/wrappers/__gen/KotlinAptAnnotation.class
00:11:21.356 [DEBUG] [org.gradle.api.Project] [KOTLIN] kapt: Wrapper for com.google.auto.service.processor.AutoServiceProcessor generated: /Users/jw/dev/square/cash/thing-processor/build/tmp/kapt/main/wrappers/__gen/AnnotationProcessorWrapper_main_com_google_auto_service_processor_AutoServiceProcessor.class
and then the compiler args
Copy code
-processor __gen.AnnotationProcessorWrapper_main_com_google_auto_service_processor_AutoServiceProcessor -s /Users/jw/dev/square/cash/thing-processor/build/generated/source/kapt/main -Akapt.annotations=/Users/jw/dev/square/cash/thing-processor/build/tmp/kapt/main/wrappers/annotations.main.txt -Akapt.kotlin.generated=/Users/jw/dev/square/cash/thing-processor/build/tmp/kapt/main/kotlinGenerated /Users/jw/dev/square/cash/thing-processor/build/tmp/kapt/main/java_src/__gen/annotation/Cl.java
p

prestongarno

06/14/2017, 12:37 AM
jw: Grepped the source real quick led me to this commit: https://github.com/JetBrains/kotlin/commit/9b5129a0f32f3f9e24c3276f8c1d4884357476a9 Which references back to this ticket which is caused by auto+kapt: https://github.com/JetBrains/kotlin/commit/9b5129a0f32f3f9e24c3276f8c1d4884357476a9 Apparently it uses a temporary directory and then clears it out. Sources & class dirs are separate and I think the temp dir doesn't take that into account
3 Views