Open jakubvimn opened 4 years ago
After upgrading to 1.4.x kotlin version, the compatibility version fails so it sets data as null giving this NPE
value received: mayor=1, minor=4
I come across the same problem:
Caused by: org.jetbrains.kotlin.kapt3.base.util.KaptBaseError: Exception while annotation processing
at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing(annotationProcessing.kt:87)
at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing$default(annotationProcessing.kt:31)
at org.jetbrains.kotlin.kapt3.base.Kapt.kapt(Kapt.kt:45)
... 22 more
Caused by: kotlin.KotlinNullPointerException
at me.eugeniomarletti.kotlin.metadata.KotlinClassMetadata$data$2.invoke(KotlinMetadata.kt:55)
at me.eugeniomarletti.kotlin.metadata.KotlinClassMetadata$data$2.invoke(KotlinMetadata.kt:53)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at me.eugeniomarletti.kotlin.metadata.KotlinClassMetadata.getData(KotlinMetadata.kt)
at com.huya.mtp.furion.codegen.FurionDescriptProcessor.process(FurionDescriptProcessor.kt:61)
at org.jetbrains.kotlin.kapt3.base.incremental.IncrementalProcessor.process(incrementalProcessors.kt:89)
at org.jetbrains.kotlin.kapt3.base.ProcessorWrapper.process(annotationProcessing.kt:166)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing(annotationProcessing.kt:84)
... 24 more
FYI: probably libraries should migrate to kotlinx-metadata-jvm official Kotlin library.
@Tapchicoma unfortunately that library doesn't provide (yet) all the info this library gives you.
@juanchosaravia regarding missing info/features please open a new issue in Kotlin issue tracker or vote for existing ones
@Tapchicoma @juanchosaravia @liao123abc I am facing same issue. Did anyone found a fix for it?
After upgrading Kotlin to 1.4 my build fails with the following exception.