Hi! Is it a bug if `resolver.getSymbolsWithAnnotat...
# ksp
d
Hi! Is it a bug if
resolver.getSymbolsWithAnnotation()
returns duplicates in the sequence? I believe it’s due to this code in ResolverImpl
Copy code
private val deferredSymbolsUpdated: Collection<KSAnnotated> by lazy {
  deferredSymbols.values.flatten().mapNotNull { it.getInstanceForCurrentRound() }
}
where
deferredSymbols
is a map with SymbolProcessor as key. In my case, more than one SymbolProcessor defer same symbols, so that looks like the cause. Because
values.flatten
would result in duplicates
j
sounds like a bug to me.
d
Ok, what’s the usual procedure in such cases? Can I just submit a PR?
j
you can create a PR directly since this looks straightfoward enough to me so no need for an issue.
👍 1