How can I repeat multiple times analysis phase? I ...
# compiler
b
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
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
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
I have a suspicion that they just don't 😄
need to check compiler code
yep, as I suspected
b
do you know if this is going to be fixed on 1.4?
s
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 ¯\_(ツ)_/¯
👍 1