philglass
01/21/2022, 9:56 AMgetDeclarationsFromPackage) and the current compilation unit, but is otherwise pretty simple. I reproduced a simplified, standlone version as a KSP integration test here - you can run it with ./gradlew integration-tests:test --tests 'com.google.devtools.ksp.test.BrokenIncrementalIT.*'
Any idea where I’m going wrong? Or am I running into bugs in KSP?Ting-Yuan Huang
01/22/2022, 1:37 AMAppModule1 and AutoIncludeModule_app_AppModule1 are incorrectly considered as clean*1. So they are not included in subsequent processing and therefore getDeclarationsFromPackage didn't return AutoIncludeModule_app_AppModule1.
A workaround is to associate AppModule1 to MergedModule_AppMergedModule manually.
BTW, there is a missing association from AppModule1 to AutoIncludeModule_app_AppModule1. This needs to be fixed in AutoIncludeProcessor.
*1 They are dirty because MergedModule_AppMergedModule is dirty and it needs AutoIncludeModule_app_AppModule1 , which depends on AppModule1philglass
01/22/2022, 8:39 AMBTW, there is a missing association from AppModule1 to AutoIncludeModule_app_AppModule1. This needs to be fixed in AutoIncludeProcessor.Is this not enough? Kotlin Poet should be passing an appropriate
Dependencies instance to CodeGenerator for me.Ting-Yuan Huang
01/30/2022, 6:34 AM