austynm
10/26/2017, 7:46 PMaustynm
10/26/2017, 7:47 PMgradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xmaxerrs" << "500"
}
}
kapt {
javacOptions {
option("-Xmaxerrs", 500)
}
}
david.bilik
11/01/2017, 4:00 PMerror: annotation @OnLifecycleEvent is missing a default value for the element 'value'
I am not sure if its related to kapt, Android studio gradle plugin, Architecture Components library or something else whatsoever. Any ideas? Rebuilding project solves it but two consecutive builds always fails. Kotlin 1.1.51, AS 3.0spierce7
11/04/2017, 5:34 PMapply plugin: 'kotlin-kapt'
for the latest stable kotlin (1.1.51), and then we are using kapt
in the dependencies section to compile the annotation processors.markotron
11/06/2017, 10:25 AMprocessingEnv.options["kapt.kotlin.generated"]
. Although everything works, Intellij is not recognizing generated classes (shown as errors). I tried to add the generated folder as a source directory, but still nothing.. any ideas?
[11:13]
sourceSets {
main {
java {
srcDir "${buildDir.absolutePath}/generated/source/kaptKotlin/"
}
}
}
yan
11/23/2017, 12:05 PMjkbbwr
11/26/2017, 1:23 PMmarkotron
11/27/2017, 12:53 PMgildor
12/21/2017, 1:59 AMcarrot
12/23/2017, 5:13 PMuhe
01/19/2018, 8:59 AMkapt { useBuildCache = true }
? We're relying heavily on annotation processing and I think this could help speed up our build times significantly. However, I'm a bit afraid we'll end up with broken apps half the time...gildor
01/25/2018, 4:56 AM$
sign.
@yan Could you please take a look? Not sure that my analysis is correct, but I will try to prepare sample project.
We really want migrate to 1.2.20 but it’s blocker for us.
https://youtrack.jetbrains.com/issue/KT-22493jw
01/25/2018, 8:54 PMe: /Users/jakew/dev/JakeWharton/SdkSearch/api/circleci/src/main/java/com/jakewharton/sdksearch/api/circleci/CircleCiModule.java:13: error: incompatible types: Module cannot be converted to Annotation
@Module //
^
e: /Users/jakew/dev/JakeWharton/SdkSearch/api/circleci/src/main/java/com/jakewharton/sdksearch/api/circleci/CircleCiModule.java:15: error: cannot find symbol
@Provides static CircleCiService documentationService(String token) {
^
symbol: class Provides
location: class CircleCiModule
gildor
01/27/2018, 11:25 AMgildor
01/31/2018, 3:35 AMspierce7
02/04/2018, 11:14 PMkapt.useBuildCache = true
dkhusainov
02/06/2018, 10:09 PMkapt
module is part of your project(not a separate dependency somewhere in maven) and is referenced as kapt project(":processor")
, you can't rebuild your project, because you get this message Unable to delete file processor\build\libs\lua-deserealizator.jar
. I have to manually kill gradle deamons to release this file, so it could delete it...raulraja
02/11/2018, 4:29 PMkotlin.annotation.AnnotationTarget.EXPRESSION
like in the example below?
fun main(args: Array<String>) {
println(@myannotation doStuff())
}
Zac Sweers
02/20/2018, 3:49 PMagrosner
02/24/2018, 4:08 PMchristopher
03/06/2018, 5:05 AMjw
03/06/2018, 3:52 PMzhouij
03/13/2018, 4:10 PMraulraja
04/01/2018, 11:32 PMadrik77
04/05/2018, 1:21 PM@Assisted
annotation. I have a function similar to this
fun createPublishHysCmd(@Assisted("message") message: TBase)
When I see the compiled version, it decompiles to:
public abstract fun createPublishHysCmd(@com.google.inject.assistedinject.Assisted message: org.apache.thrift.TBase
Without the value of the annotation.
If I write a similar function in java:
PublishMessageHysCmd createPublishHysCmd(@Assisted("message") TBase message)
I can see it decompiled to:
PublishMessageHysCmd createPublishHysCmd(@Assisted("message") TBase var1)
Could kapt
fix this for me? I couldn’t find an annotationProcessor for google guice.okaymak
04/20/2018, 6:52 AM1.2.40
building a project fails with this error:
> Task :shared:kaptGenerateStubsDebugKotlin
e: [kapt] An exception occurred: java.lang.NoClassDefFoundError: org/jetbrains/kotlin/serialization/jvm/JvmProtoBufUtil
at me.eugeniomarletti.kotlin.metadata.KotlinClassMetadata$data$2.invoke(KotlinMetadata.kt:51)
at me.eugeniomarletti.kotlin.metadata.KotlinClassMetadata$data$2.invoke(KotlinMetadata.kt:50)
at kotlin.SynchronizedLazyImpl.getValue(Lazy.kt:131)
at me.eugeniomarletti.kotlin.metadata.KotlinClassMetadata.getData(KotlinMetadata.kt)
at android.arch.persistence.room.ext.KotlinMetadataProcessor$DefaultImpls.getParameterNames(KotlinMetadataProcessor.kt:33)
at android.arch.persistence.room.processor.PojoProcessor.getParameterNames(PojoProcessor.kt:73)
at android.arch.persistence.room.processor.PojoProcessor.getParamNames(PojoProcessor.kt:245)
...
Caused by: java.lang.ClassNotFoundException: org.jetbrains.kotlin.serialization.jvm.JvmProtoBufUtil
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 77 more
> Task :shared:kaptDebugKotlin FAILED
When I go back to 1.2.31
, it builds without errors.
Do I need to add an extra dependency for 1.2.40
?poohbar
04/25/2018, 7:54 PMsourceDirs
in the kapt
goal of kotlin-maven-plugin
can I use wildcards? it does not seem to work 😞FranGSierra
05/03/2018, 3:19 PMpoohbar
05/03/2018, 6:12 PMAlso "Kapt2" was just some sort transition version from kapt1 to kapt2mmkkaaay 😄 😄
nitrog42
05/18/2018, 8:46 AMnitrog42
05/18/2018, 8:46 AMyan
05/18/2018, 1:21 PMnitrog42
05/18/2018, 1:32 PM