Kotlin / kotlinx-rpc

Add asynchronous RPC services to your multiplatform applications.
https://kotlin.github.io/kotlinx-rpc/
Apache License 2.0
468 stars 7 forks source link

Duplicate Imports Issue in Code Generation #94

Open anton-knyazev opened 2 weeks ago

anton-knyazev commented 2 weeks ago

While experimenting with the ktor-all-platforms-app example, I observed an anomaly during the code generation phase. Specifically, when extending the UserServiceClient class by adding a new function (hello2) that mirrors the functionality of an existing function (hello), the code generation process unexpectedly produces duplicate import statements for UserData. This occurs despite the logical expectation that both functions should share the same import statement for UserData, resulting in unnecessary redundancy and potential confusion.

Mr3zee commented 2 weeks ago

Hi! Thanks for noticing As we are currently moving from KSP to compiler plugins, this issue will be fixed by itself when were are done.