How can I repeat multiple times analysis phase? I have many extensions registered for analysis phase and in some I'm returning
RetryWithAdditionalRoots
but it rewinds only one time, I've already tried build these retry returning with different additional files but still repeating only one time, is this expected by Kotlin compiler? Is there a way that I can retry multiple times?
s
shikasd
06/30/2020, 8:02 AM
RetryWithAdditionalRoots does it only once, so for now no ways of retrying it
What you can do it run parser separately as a gradle task and there you can manipulate it as you want
b
bloder
06/30/2020, 10:12 AM
Thanks! How 2 or more plugins that depends of
RetryWithAdditionalRoots
works? They run the parser separately? Do u have an example that I can see how run it separately?
s
shikasd
06/30/2020, 10:15 AM
I have a suspicion that they just don't 😄
shikasd
06/30/2020, 10:16 AM
need to check compiler code
shikasd
06/30/2020, 10:17 AM
yep, as I suspected
b
bloder
06/30/2020, 10:28 AM
do you know if this is going to be fixed on 1.4?
s
shikasd
06/30/2020, 10:39 AM
Google now has KSP solution, so that's maybe going to be fixed there
For you I would recommend using some kind of extension on top of AnalysisExtension to make sure all your files are collected ¯\_(ツ)_/¯