-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails with multi module android project with Kotlin 2.0.0 #388
Comments
I tried that project with 0.7.0 and #349 and it still doesn't work. The issue seems to be that KSP in Function1<Function1<Long, Unit>, Unit> However, looking at Function3<Function1<Long, Unit>, Composer, Integer, Unit> I'm not sure if this is an issue in kotlin-inject, KSP, or Compose. |
Hmm maybe that's not it, because the first commit where it works sees the type the same way. The first commit fails on 0.7.0-SNAPSHOT though, because it needs to use |
Did some more digging, and it looks like in the working case, the |
And looks like it's this issue in KSP - google/ksp#1849 |
Interestingly enough I get a very similar failure when setting
|
OK probably not related to that issue. I filed a new one - google/ksp#1921 |
FYI: As a workaround I had to inject composables through wrapper classes instead of using type aliases.
becomes
|
Looks like this is fixed in newer versions of KSP / Kotlin. |
Repro project: https://github.com/julioromano/kotlin-inject-bug-repro-1
It's got 2 commit, the 1st commit builds fine, the second triggers the error.
The difference between the commits is that some code has been moved out from the app module to an external one.
Slack convo: https://kotlinlang.slack.com/archives/C0255B8KX7W/p1716363571041319
The text was updated successfully, but these errors were encountered: