-
-
Notifications
You must be signed in to change notification settings - Fork 46
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 ksp.useKSP2=true
#132
Comments
have you figured this out ? @ecstatic-morse I also get an error using the config above. generated code: `public val package_data_network_di_NetworkModule : Module = module {...} public val package.data.network.di.NetworkModule.module : org.koin.core.module.Module get() = package_data_network_di_NetworkModule` error:
((package and path was changed to hide project details)) |
Any chance this could get looked at? KSP1 is deprecated and will not support the upcoming Kotlin 2.1: |
Related: google/ksp#1854 |
the same error with Koin annotations 2.0.0-Beta1 kotlin = "2.0.20" |
I encountered the same issue when using Amper to build a project with KSP. In Amper, KSP only supports KSP2. |
I have the same problem with koin-annotation |
you need to stick to current adopted KSP version. On branch 2.0 it's 2.0.21-1.0.28 now, with Kotlin 2.0.21 👍 |
This happens because |
Describe the bug
Cannot build with
ksp.useKSP2=true
.The getter for
shortName
fails at this line inModuleScanner.kt
.There was a similar issue described here, which was ultimately determined to be a bug in the Room compiler. See this comment for the suggested fix.
To Reproduce
Set up a project with a koin
@Module
with@ComponentScan
using the followingksp
version andksp.useKSP2=true
ingradle.properties
. Then build.Koin project used and used version (please complete the following information):
Backtrace
The text was updated successfully, but these errors were encountered: