You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a package name starts with "it" , ksp fails in generating the Koin Modules.
To Reproduce
Just annotate a class inside a package which name starts with "it"
package it.fabiocati.thegamedb.di
import org.koin.core.annotation.ComponentScan
import org.koin.core.annotation.Module
@Module
@ComponentScan
class GameDBModule
While compiling it throws this error: [ksp] /Users/fabio/gameDbApp/app/build/generated/ksp/debug/kotlin/org/koin/ksp/generated/GameDBModuleGenit$fabiocati$thegamedb$di.kt: (7, 71): Function declaration must have a name
And by going inside GameDBModuleGen I could find this:
I suppose that the issue lies in the fact that "it" is a reserved word in Kotlin.
Expected behavior
Koin should create a Koin Module.
Describe the bug
When a package name starts with "it" , ksp fails in generating the Koin Modules.
To Reproduce
Just annotate a class inside a package which name starts with "it"
While compiling it throws this error:
[ksp] /Users/fabio/gameDbApp/app/build/generated/ksp/debug/kotlin/org/koin/ksp/generated/GameDBModuleGen
it$fabiocati$thegamedb$di.kt: (7, 71): Function declaration must have a name
And by going inside
![Screenshot 2024-07-03 alle 11 01 44](https://private-user-images.githubusercontent.com/16861667/345356075-6c6146fd-1370-42c5-b144-1702d389472e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1OTE4MTAsIm5iZiI6MTcyMDU5MTUxMCwicGF0aCI6Ii8xNjg2MTY2Ny8zNDUzNTYwNzUtNmM2MTQ2ZmQtMTM3MC00MmM1LWIxNDQtMTcwMmQzODk0NzJlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDA2MDUxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQyMjRlNDYwZmE0YjE3ZTZlMWE1YzY2ZWE3NTFmMWIwNDE2NTc3ZDc3ZmJiOGVhMTkxYTAyODU0YzMxNmQ3Y2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.TWnijATE8u9lmJnC4S1KPpzeUOA_t_iDjpTwgKLyaeQ)
GameDBModuleGen
I could find this:I suppose that the issue lies in the fact that "it" is a reserved word in Kotlin.
Expected behavior
Koin should create a Koin Module.
Koin module and version:
koin-annotations-bom : 1.3.1
koin-annotations : 1.3.1
koin-ksp-compiler: 1.3.1
Can you help me? Unfortunately in Italy we use the prefix "it" a lot.
Thanks
The text was updated successfully, but these errors were encountered: