-
Notifications
You must be signed in to change notification settings - Fork 4
Move to Kotlin Symbol Processing? #29
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
Comments
Hi. I did actually intend to use KSP in the earliest days, but I found that the content generated by KSP seemed to be required as a separate file/class (i.e. it couldn't directly change the original class), which was different to what I needed at the time, so I ended up going with the compiler plugin. KSP might indeed be a good option though, and perhaps I'll try to provide an additional version of KSP when I have time. But with my limited abilities this probably won't be soon 😣 |
Guess this one can be closed too. There is no way to accomplish what this plugin has to do with KSP. |
KSP enables extensions to the outside world without tampering with the original definition, but comes with some problems, such as calling functions becomes more difficult (especially for Java on the JVM) For example: interface Original {
suspend fun run(): String
}
// The functions generated by KSP
fun Original.runBlocking(): String = runBlocking { run() }
After #93, KSP could theoretically collect and share configuration information such as Therefore, we have no plans to provide KSP implementations at this time either. This issue will be closed for now, if anyone has a pressing application scenario, a better suggestion, or can help me (👈 most expected 😚), please feel free to comment~! |
Have you thought about moving to Kotlin Symbol Processing as a way to work around the library with the compiler api you are encountering?
https://kotlinlang.org/docs/ksp-overview.html
The text was updated successfully, but these errors were encountered: