<@U4UGS5FC7> Hey, I have seen you adding some exte...
# arrow-meta
s
@raulraja Hey, I have seen you adding some extensions for PackageFragmentProvider. Did you find any use for those extensions in terms of providing additional files? I was trying to generate some synthetic descriptors using it, but failed miserably with lots of recursion errors.
r
I’m working on generalizing the generation of synth descriptors at this very moment
there is an extension you can use to add additional ktfiles
Copy code
org.jetbrains.kotlin.extensions.CollectAdditionalSourcesExtension
it only works in the Cli though
otherwise you can use the analysys phase in the cli too which does not work on Idea
in Idea you can register earlier by getting a hold of the current project
and subscribing to the message bus
all the interesting hooks are there as Topics
for example the one I’m using now is AsyncFileListener which monitors changes in the running virtual file system where the Kt files and all that is contained
s
My case was mostly about analyzing existing classes and adding new ones based on that result 😄 I am using Analysis phase, but was curious if it is possible to do generating descriptors myself.
r
in the IDE there is no analysis phase
you can bootstrap one yourself with the resolutionUtils