when updating to 0.8.0 i have a weird bug with typ...
# kotlin-inject
j
when updating to 0.8.0 i have a weird bug with typealias but i can't create a reproduction so not sure where is best to start debugging 🧵
in my component i have this defined
Copy code
@NetworkScope @Provides
    fun provideMonthlyUpdatesClient(client: HttpClient): MonthlyUpdatesClient = MonthlyUpdateRoutesImpl(client)
MontlhyUpdatesClient
is a typealias
Copy code
typealias MonthlyUpdatesClient = MonthlyUpdateRoutes
i am now getting this error when updating to 0.8.0
[ksp] Cannot find an @Inject constructor or provider for: com.joshafeinberg.common.routes.MonthlyUpdateRoutes
if i change the return value on my function to
MonthlyUpdateRoutes
Copy code
@NetworkScope @Provides
    fun provideMonthlyUpdatesClient(client: HttpClient): MonthlyUpdateRoutes = MonthlyUpdateRoutesImpl(client)
then it works fine
the classes that need
MontlhyUpdatesClient/MonthlyUpdateRoutes
always have
MonthlyUpdatesClient
in their constructor param
m
what version were you on before updating to 0.8.0? was it 0.7.2?
j
yes
👍 1
m
I noticed something similar to your report today, but I downgraded step by step from 0.8.0 to 0.7.2, 0.7.1, 0.7.0, 0.6.3 and they all behaved the same 😅 so probably not quite the same scenario as yours