https://kotlinlang.org logo
#compose-ios
Title
# compose-ios
a

aidanvii

12/13/2023, 12:47 PM
I upgraded from Kotlin 1.9.20 to 1.9.21 and compose multiplatform 1.5.10 to 1.5.11, but now I’m getting IDE errors in the iOS sources. It compiles though. Has anyone seen this?
p

Pablichjenkov

12/13/2023, 12:51 PM
Sometimes in a while. You know the cycle, clean, invalidate caches and restart, delete .idea, .gradle files, the classic
1
s

spierce7

12/13/2023, 7:55 PM
Try Repair IDE or Invalidate Caches
a

aidanvii

12/14/2023, 7:24 AM
I see this error in the IDE when I hover over some of the compose code in the iOS source set: > Internal error occurred while analyzing this expression: > java.lang.NullPointerException at androidx.compose.compiler.plugins.kotlin.k1.AnnotationUtilsKt$makeComposableAnnotation$1.getType(AnnotationUtils.kt:38) at org.jetbrains.kotlin.resolve.descriptorUtil.DescriptorUtilsKt.getAnnotationClass(DescriptorUtils.kt:402) at org.jetbrains.kotlin.descriptors.annotations.AnnotationDescriptor$DefaultImpls.getFqName(AnnotationDescriptor.kt:34) at androidx.compose.compiler.plugins.kotlin.k1.AnnotationUtilsKt$makeComposableAnnotation$1.getFqName(AnnotationUtils.kt:36) at org.jetbrains.kotlin.descriptors.annotations.Annotations$DefaultImpls.findAnnotation(Annotations.kt:29) at org.jetbrains.kotlin.descriptors.annotations.AnnotationsImpl.findAnnotation(AnnotationsImpl.kt:22) at androidx.compose.compiler.plugins.kotlin.k1.AnnotationUtilsKt.hasComposableAnnotation(AnnotationUtils.kt:64) at androidx.compose.compiler.plugins.kotlin.k1.ComposableCallCheckerKt.isMarkedAsComposable(ComposableCallChecker.kt:547) at androidx.compose.compiler.plugins.kotlin.k1.ComposableCallCheckerKt.isComposableCallable(ComposableCallChecker.kt:554) at androidx.compose.compiler.plugins.kotlin.k1.ComposableCallChecker.checkType(ComposableCallChecker.kt:391) at org.jetbrains.kotlin.types.expressions.DataFlowAnalyzer.checkType(DataFlowAnalyzer.java:354) at org.jetbrains.kotlin.types.expressions.DataFlowAnalyzer.checkType(DataFlowAnalyzer.java:277) at org.jetbrains.kotlin.resolve.calls.tower.KotlinToResolvedCallTransformer.updateRecordedType(KotlinToResolvedCallTransformer.kt:392) at org.jetbrains.kotlin.resolve.calls.tower.KotlinToResolvedCallTransformer.runArgumentsChecks(KotlinToResolvedCallTransformer.kt:337) at org.jetbrains.kotlin.resolve.calls.tower.ResolvedAtomCompleter.completeResolvedCall(ResolvedAtomCompleter.kt:198) at org.jetbrains.kotlin.resolve.calls.tower.KotlinToResolvedCallTransformer.transformAndReport(KotlinToResolvedCallTransformer.kt:142) at org.jetbrains.kotlin.resolve.calls.tower.PSICallResolver.convertToOverloadResolutionResults(PSICallResolver.kt:257)
3 Views