in K2, is KSP planning to block other plugins from running or would it be possible to intercept KSP's parsing of FIR types?
The context is I'm neck-deep in this, and while I'm making progress, it's coming with a lot of caveats. With FIR coming, I'm curious this is maybe a better longer term venue if Anvil could have an FIR transformer that runs before KSP does
10/18/2023, 7:40 PM
If ksp will not be a compiler plugin anymore, would it run after Kotlin compile tasks? I would expect the opposite and run before any compile task 🤔
10/18/2023, 7:41 PM
Not sure where you got that idea
AFAIK it’s going to be built on top of FIR in the future
I remember some comment in which they mention they will build it based on the analysis API, not FIR. It should be there in some thread in this channel, maybe this has changed as it was some months ago.
10/18/2023, 7:50 PM
10/18/2023, 9:23 PM
Right, KSP 2 will no longer be a compiler plugin. It can be seen as a separate tool which always runs before compilation.
10/18/2023, 9:45 PM
Is there a design doc or write up anywhere?
10/20/2023, 8:01 PM
We do internally. I'll convert it to a github issue for discussion next week.