Zac Sweers
07/16/2024, 6:22 PMtypealias CommonAnnotation = RealAnnotation
and then someone calls getSymbolsAnnotatedWith("com.example.RealAnnotation") , KSP does not return any symbols annotated with CommonAnnotation even though it is an alias (or in the case of the bug linked above - actualized) to RealAnnotationTing-Yuan Huang
07/16/2024, 8:17 PMactual present in the failing ksp task?
I feel that this is MPP specific, because for non-MPP cases, we have some tests covering this: https://github.com/google/ksp/blob/main/test-utils/testData/api/getSymbolsFromAnnotation.ktZac Sweers
07/16/2024, 8:17 PMZac Sweers
07/16/2024, 8:18 PMTing-Yuan Huang
07/16/2024, 11:07 PMZac Sweers
07/16/2024, 11:20 PMTing-Yuan Huang
07/16/2024, 11:31 PMKSAnnotated. It just doesn't expand them. If Resolve.getSymbolsWithAnnotation doesn't work for you, you'll have to expand both the querying annotation and annotations on KSAnnotated before fqn comparison.Zac Sweers
07/17/2024, 4:49 AMTing-Yuan Huang
07/17/2024, 5:30 PMfindActuals on the KSClassDeclaration you saw. Unfortunately findActuals hasn't been properly implemented in KSP2. I'll address this in 1.0.25 (1.0.24 will likely be a hotfix)