jw
07/08/2019, 1:32 PMwithJava()
). I see mention of Android support in the docs but nothing about jvm targets.Eugen Martynov
07/12/2019, 9:04 AMCaused by: java.lang.NullPointerException
at jdk.compiler/com.sun.tools.javac.util.JDK9Wrappers$Module.getModule(JDK9Wrappers.java:201)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.initProcessorLoader(JavacProcessingEnvironment.java:270)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.<init>(JavacProcessingEnvironment.java:235)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.instance(JavacProcessingEnvironment.java:192)
at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing(annotationProcessing.kt:38)
at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing$default(annotationProcessing.kt:36)
cafonsomota
07/17/2019, 1:31 PM./gradlew --no-daemon :app:clean :app:compileDebugKotlin -Dkotlin.daemon.jvm.options="-Xdebug,-Xrunjdwp:transport=dt_socket\,address=5005\,server=y\,suspend=n"
and then to attach a remote configurationDerek Berner
07/18/2019, 3:41 PMkapt
is very much a "here be dragons" region of Kotlin. Is that a fair assessment?Derek Berner
07/18/2019, 3:43 PMFudge
08/01/2019, 8:12 AM@NbtSerializable
class Foo // --> Generates source file named "FooUtil"
Now I remove @NbtSerializable
and need FooUtil
to be deleted as well.Fudge
08/04/2019, 10:34 AMEugen Martynov
08/07/2019, 8:45 AMEugen Martynov
08/08/2019, 6:44 AMjava.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
?Rainer Schlonvoigt
08/22/2019, 6:46 AMsuspend
method?Rainer Schlonvoigt
08/22/2019, 6:48 AMtrevjones
08/23/2019, 6:24 PMkapt.use.worker.api=true
still necessary with 1.3.50?Eugen Martynov
08/26/2019, 2:42 PMtschuchort
09/25/2019, 4:36 PMlaimiux
10/04/2019, 6:46 PMEugen Martynov
10/08/2019, 3:53 PMtapchicoma
10/08/2019, 9:05 PMdetectMemoryLeaks
kapt option does?
https://github.com/JetBrains/kotlin/blob/6bddfa806c44936586c2201c038217abb17047a8/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/KaptExtension.kt#L38Zac Sweers
11/29/2019, 6:42 PM"kapt.kotlin.generated"
option is also not compatible with remote caching? It uses an absolute path as wellmurdock
12/12/2019, 8:16 PMbad RuntimeInvisibleParameterAnnotations
if i use java enum class as parameter or return typeEthan Diamond
12/30/2019, 5:49 AMrciovati
01/06/2020, 4:47 PMafterEvaluate
Kapt doesn’t run. Any idea? Here the example:
class MyPlugin : Plugin<Project> {
override fun apply(project: Project) {
with(project) {
val extension = extensions.create("projectConfiguration", MyExtension::class.java)
// Adding the dependency in the apply works
addDependency("kapt", "library-coordinate")
// If the dependency is added in the afterEvaluate block kapt doesn't run.
// :myproject:dependencies shows the dependency properly
afterEvaluate {
if (extension.value) {
addDependency("kapt", "library-coordinate")
}
}
}
}
private fun Project.addDependency(configuration: String, dependency: String) {
dependencies.add(configuration, dependency)
}
}
Zac Sweers
02/04/2020, 10:54 PM--no-build-cache
and --rerun-tasks
after a clean? The full nuclear optionLiam Heneghan
02/09/2020, 1:06 PM[INFO] Kapt3 is enabled (stand-alone mode).
Annotation processing mode: apt
Memory leak detection mode: none
Show processor time: false
Verbose mode: true
Info as warnings: false
Use light analysis: false
Correct error types: false
Map diagnostic locations: false
Strict mode: false
Detect annotation processors in compile classpath: false
Incremental annotation processing (apt mode): true
Javac options: {-Xmaxerrs=500, -source=1.8}
[incremental apt] Changed files: [/path/to/file/changed/ViewModel.java] <- Correctly identifies changed file
[INFO] Processing java sources with annotation processors: [list of what looks like all source files in the app module]
Annotation processors in app module:
dagger.internal.codegen.ComponentProcessor
dagger.android.processor.AndroidProcessor
com.squareup.inject.assisted.dagger2.processor.AssistedInjectDagger2Processor
androidx.lifecycle.LifecycleProcessor
com.squareup.moshi.kotlin.codegen.JsonClassCodegenProcessor
butterknife.compiler.ButterKnifeProcessor
android.databinding.annotationprocessor.ProcessDataBinding
com.squareup.inject.assisted.processor.AssistedInjectProcessor
Sergei Dryganets
02/12/2020, 8:20 PM# See: <https://youtrack.jetbrains.com/oauth?state=%2Fissue%2FKT-17621>
kotlin.incremental.usePreciseJavaTracking=true
# Configure the Kotlin Gradle plugin to run tasks in parallel within a project.
# <https://blog.jetbrains.com/kotlin/2019/01/kotlin-1-3-20-released/>
kotlin.parallel.tasks.in.project=true
# There is a cache key inconsistency when enabling this
# Disable incremental kapt locally to avoid this
# <https://youtrack.jetbrains.com/issue/KT-31840>
kapt.incremental.apt=false
# Skips annotation processing completely when there are no changes in kapt stubs and only method
# bodies are changed in dependencies. See <https://blog.jetbrains.com/kotlin/2019/01/kotlin-1-3-20-released/>
kapt.include.compile.classpath=false
Alexey Anufriev
02/26/2020, 4:47 PM[WARNING] No sources found skipping Kotlin compile
Fleshgrinder
03/04/2020, 8:23 AMallWarningsAsErrors
active to ensure that people do not ignore warnings but this was no warning previously and I also don’t think that it should be a warning.cafonsomota
03/30/2020, 11:14 AM_messager_.printMessage(Diagnostic.Kind.NOTE, "test 1\n")
_messager_.printMessage(Diagnostic.Kind.NOTE, "test 2")
any idea what I’m doing wrong?tapchicoma
04/03/2020, 2:26 PMOverlapping outputs: Gradle does not know how file 'build/generated/source/kaptKotlin/debug' was created (output property 'kotlinSourcesDestinationDir'). Task output caching requires exclusive access to output paths to guarantee correctness.
This is happens after full project clean and I could not figure out some pattern here. Do anyone else see the same?Fudge
05/14/2020, 6:51 PMcompileJava
. Any idea why that could be happening?Arnav Gupta
06/01/2020, 12:31 PM@Persistable
interface Vehicle {
var wheels: Int
var color: String
@Optional
var automatic: Boolean
}
If I find all elements annotated with @Persistable
and I find Vehicle
Now if I want to find all properties annotated with @Optional
inside it, what is the best way to go about it ?
As I understand, there will atually be a synthetic void method automatic$annotations
created inside the DefaultImpls
Is there a way from the Metadata
to do what I am trying to ?Arnav Gupta
06/01/2020, 12:31 PM@Persistable
interface Vehicle {
var wheels: Int
var color: String
@Optional
var automatic: Boolean
}
If I find all elements annotated with @Persistable
and I find Vehicle
Now if I want to find all properties annotated with @Optional
inside it, what is the best way to go about it ?
As I understand, there will atually be a synthetic void method automatic$annotations
created inside the DefaultImpls
Is there a way from the Metadata
to do what I am trying to ?Zac Sweers
06/16/2020, 6:57 AM