What's the compatibility story for KSP now that it's 1.0? Since there's still a Kotlin version in the version number, does that mean consumers are still tied to using that same version for the foreseeable future while we wait for compiler plugins to stabilize?
e
elihart
09/09/2021, 4:30 PM
I recently tried using KSP with a different kotlin version and it crashed with an internal method not found exception, so yes it seems quite tied to the kotlin version due to using internal compiler functions that are changing often right now.
KSP is comprised of two parts: API and implementation. The API is stable / backward compatible. The implementation is tied to compiler.
Processors only depend on API and therefore are not tied to compiler versions. On the other hand, users of processors need to bump KSP version when bumping compiler versions. Note that they don't need to bump processors' versions because processors only depend on API.
🙏 1
Ting-Yuan Huang
09/09/2021, 11:17 PM
For example, Some-Processor-2.0 is released and tested with KSP 1.5.30-1.0.0. Users will be able to use same version (2.0) with Kotlin 1.6.0 + KSP 1.6.0-1.0.0.
r
russhwolf
09/09/2021, 11:38 PM
That makes a lot of sense, thanks. Is there documentation around that anywhere? It’d be helpful to have something to point people to if they have compatibility concerns.
t
Ting-Yuan Huang
09/10/2021, 5:00 AM
Thanks for pointing that out. I'll update the docs / faq.