question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dependency File Rule Keys don't work for Kotlin

See original GitHub issue

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 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:open
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kageiitcommented, Sep 25, 2019

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

0reactions
v-jizhangcommented, Feb 24, 2020

Thank you @tyvsmith, that’s my fault. Reopened.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found