Open IanChilds opened 5 years ago
I looked a bit into this and there was no obvious public api at the time that would give us the same level of instrumentation as the Javac file. It didnt help that there was no clear documentation around this either. It could be potentially done as a compiler plugin. Might just need to reach out to jetbrains folks directly
@kageiit Is there an issue on youtrack tracking this?
I've added https://youtrack.jetbrains.com/issue/KT-34253 for this
Why are we closing this one? I don't see progress made on the youtrack yet.
Thank you @tyvsmith, that's my fault. Reopened.
Right now Dependency File Rule Keys (https://buck.build/concept/rule_keys.html#manifest_based_rule_keys) are turned off for Kotlin.
For Java, we implement this by passing an implementation of
FileManagerListener
,ClassUsageTracker
to theFileManager
that we pass into the CompilationStep (seeJsr199JavacInvocation
).In Kotlin, it doesn't look like we pass a FileManager to the compiler. Does anyone know how we could get hold of which files we actually accessed by the compiler?
cc @jkeljo, @kageiit, @tyvsmith, @thalescm in case anyone has ideas