Does KSP always have to run in two passes? If I am...
# ksp
v
Does KSP always have to run in two passes? If I am not generating any (source code) files, can I skip the second pass? I'm having to catch the "file already exists" exception on the second pass after I've generated my yaml output.
d
This came up previously here: https://kotlinlang.slack.com/archives/C013BA8EQSE/p1715984598277089?thread_ts=1715950731.281579&cid=C013BA8EQSE From what I understand, you can't assume that your processor will be called just once because it could live in an ecosystem together with other processors. When these processors defer symbols, this means that they are waiting for other processors to provide information so they can continue. So in this situation your processor would be called again. The rounds stop when there are no new files. So you have to design your processor it so that in the case where no symbols of interest are found, it doesn't write anything.