kotlin-compile-testing icon indicating copy to clipboard operation
kotlin-compile-testing copied to clipboard

resolver.getSymbolsWithAnnotation return null

Open Mao0509 opened this issue 1 year ago • 2 comments

image this return false lead to getSymbolsWithAnnotation return null annotationType.resolveToUnderlying() return ERROR TYPE

What is the reason for this? The AS Rebuild Project does not make this error Android Studio Hedgehog | 2023.1.1 Runtime version: 17.0.7+0-b2043.56-10550314 amd64 ksp: 1.9.22-1.0.16 com.github.tschuchortdev:kotlin-compile-testing-ksp:1.5.0

Mao0509 avatar Jan 03 '24 07:01 Mao0509

I don't see how this is related to the KCT library. Can you provide more information? Perhaps the annotated class is not on the classpath.

tschuchortdev avatar May 26 '24 16:05 tschuchortdev

@Mao0509 I had the same problem, in the end inheritClassPath = true fixed it.

Aidanvii7 avatar Jun 20 '24 11:06 Aidanvii7