<@U01JRLZH77T> I'm using Anvil's generateDaggerFac...
# squarelibraries
d
@hfhbd I'm using Anvil's generateDaggerFactories true in Anvil, and switched to ksp for dagger but if I don't include the ksp plugin in those modules (even thought they don't need a component...) I get:
Copy code
e: [ksp] No providers found in processor classpath. e: Error occurred in KSP, check log for detail
Actually, I just noticed you worked on this @Zac Sweers... did you get it working yet in the latest stable release?
It seems like now it compiles, but I'm getting an unresolved reference error on the Dagger...Components it was supposed to generate.
That's after I added the ksp plugin to all the submodules and disabled that generateDaggerFactories option.
u
I don't think KSP is working yet
d
😵‍💫 Wow, I wonder if anybody will do this soon... it's not so nice to still have kapt in a project where everything else is ksp... I was even thinking of switching DIs...
u
it's been in the works for some time, I'm waiting for kotlin2 as well
d
It seems like there's a beta version out, but it doesn't seem to solve the ksp problem, unless I'm not configuring something properly... even though I saw in one of the issues that Zac said it was completed?
n
With the latest betas you can use Anvils KSP support to generate Anvil code but I don't believe you can use it with Dagger KSP just Dagger KAPT
d
Oh... so what's the point?
n
Whats the point of using Anvils KSP support? I think mostly to workaround some weird Kotlin Compiler plugin issues. This issue around incremental compilation was very frustrating while it was an issue and wouldn't be an issue with KSP and if you're trying to upgrade to Kotlin 2 while using Anvil you'll likely have to use it's KSP support until Anvil fully supports the changes in the Kotlin compiler as part of Kotlin 2
👍🏼 1