hfhbd
12/18/2025, 12:17 PMgeneratedKotlin but ksp2 does not resolve these generated classes.hfhbd
12/18/2025, 4:35 PMefemoney
12/18/2025, 7:46 PMhfhbd
12/18/2025, 7:51 PMtapchicoma
12/19/2025, 9:58 AMgeneratedKotlin sources as then it returns to the problem of distinguishing own generated sources from other plugins generated sources.
Imho KSP should also provide a way to register additional generated sources that should be analysed as well.hfhbd
12/19/2025, 10:05 AMhfhbd
12/19/2025, 10:07 AMtapchicoma
12/19/2025, 10:07 AMtapchicoma
12/19/2025, 10:08 AMAnd generatedKotlin is also used by IDEA to mark the directory as generated, isn't it?Not yet supported, but planned to do so in 2026.1 IDEA release
hfhbd
12/19/2025, 10:08 AMShould your generated sources be analysed by KSP to produce additional generated by KSP sources?Yes
tapchicoma
12/19/2025, 10:09 AMhfhbd
12/19/2025, 10:14 AMhfhbd
12/19/2025, 10:46 AMEdoardo Luppi
12/19/2025, 10:56 PMgeneratedKotlin?
I mean, nothing wrong with simply associating generated sources to a normal Kotlin source set imo, it's what we did up until now. Or have you got strong reasons to prefer the new way?hfhbd
12/20/2025, 7:13 AMefemoney
12/20/2025, 8:21 AMnothing wrong with simply associating generated sources to a normal Kotlin source set imoThere is a reason why generated kotlin was introduced. Code coverage, code style & static analysis tools running on generated sources is very undesirable. Also, IDE can properly now distinguish between generated and handwritten source. Imo, all generated source should go in the generated folder, even for correctness sake its the right thing to do. We will just need to figure out the right mode of operation or integration with all the tools.