https://kotlinlang.org logo
#ksp
Title
# ksp
z

Zac Sweers

10/18/2023, 6:33 PM
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
j

Javier

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 🤔
z

Zac Sweers

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.
z

Zac Sweers

10/18/2023, 7:50 PM
Huh, interesting
t

Ting-Yuan Huang

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.
👀 4
z

Zac Sweers

10/18/2023, 9:45 PM
Oh, darn
Is there a design doc or write up anywhere?
t

Ting-Yuan Huang

10/20/2023, 8:01 PM
We do internally. I'll convert it to a github issue for discussion next week.
👍 3
🙏 3
👍🏾 1
🙏🏾 1
3 Views