Dependency File Rule Keys don't work for Kotlin
See original GitHub issueRight 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 the FileManager
that we pass into the CompilationStep (see Jsr199JavacInvocation
).
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
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Android Studio is giving errors and warnings after enabling ...
1' to the build.gradle file. This dependency contains android.viewbinding.ViewBinding which android studio may not be able to access without this dependency.
Read more >Rule Keys - Buck
Rule Keys. Buck works on top of build dependency graphs to decide what commands to run and what order to execute them in....
Read more >Dependencies versions in Gradle Kotlin DSL | by Kamil Seweryn
Issue we are dealing here with is defining library version twice. It is not a good practice since it may lead to mismatch...
Read more >Authoring Tasks - Gradle User Manual
Task has actions, but the task tells Gradle it did not change its outputs. ... the build file, for example, to configure them...
Read more >Delegated properties | Kotlin
Property delegates don't have to implement an interface, ... map through string keys, which are associated with the names of properties:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Thank you @tyvsmith, that’s my fault. Reopened.