Open ZacSweers opened 6 days ago
Hi, @ZacSweers , this should have been fixed with https://android-review.googlesource.com/c/platform/frameworks/support/+/3314733. A future Dagger release should include the fix.
Great! Between this and supporting Kotlin 2.1.0 (which is in RC but dagger apt is currently incompatible), it would be quite helpful if y'all would consider getting another release out. Sounds like dagger at HEAD would be fully compatible with K2 kapt and KSP
I don't believe this is fixed on HEAD. Just tested the latest snapshot and the same issue occurs
Or is the link above in androidx but not yet consumed in dagger?
Yes, sorry about the confusion and the internal link. It still needs to be consumed in Dagger. I've updated the link.
@ZacSweers
Great! Between this and supporting Kotlin 2.1.0 (which is in RC but dagger apt is currently incompatible), it would be quite helpful if y'all would consider getting another release out. Sounds like dagger at HEAD would be fully compatible with K2 kapt and KSP
Actually the story is unfortunately more complicated. We actually don't support KSP2 right now. See https://github.com/google/dagger/issues/2349#issuecomment-2329852274 for details, but we're right now still dealing with known issues with KSP2 and trying to make sure our own tests pass with KSP2. We're hoping to make more progress soon (several KSP2 issues have recently been fixed) but we still aren't in a spot where you should expect things to work. I know this is not what you probably want to hear, but a lot of it hasn't been in our control. It is however our top priority to get KSP2 working.
We ran into an odd case with KSP2 when assisted injecting an enum class from another module into a class
This seems like a fairly simple case, I'm not super sure where to look. This is with Kotlin 2.0.21 and KSP 2.0.21-1.0.27. It's unfortunately nearly impossible for me to debug directly because all these APIs are still shaded into
dagger.spi.internal.shaded.androidx.room.compiler.processing.javac.kotlin
Trace
Cause