infer
infer copied to clipboard
Support for kotlin
Hi Team,
Thanks for the awesome tool. Can we also have support for Kotlin Language as we are now building new android apps using kotlin.
Thanks in advance.
Hello there, there are no current plans for Kotlin support I'm afraid.
Also see #308
Contributions always welcome 😉
Re-opening and adding wishlist.
Any update?
I've tried this one years ago.
I forgot the details, so sorry if I said wrong things.
It started working. But a bunch of future improvement required.
- Some temp variable introduced by underlying library was appeared.
- In some case false positive appeared which was not seen in Java version.
- Code cleanup.
Basically, Kotlin support is implemented based on Java class file, so it's not too-hard compared to build-from-parser approach. But (even) this approach may introduce 1) & 2), so I think more investigation required.
This is a very good tool. Any update on support for kotlin. Thanks
I'd also like to hear from the infer team on official Kotlin's support!
I am ready to invest time and energy on this, but I would need some help to get started.
I think the Infer team has the Kotlin support in their in-house version, so I'm happy if they can release it. :-)
@nobuyuki Basically it's been one year for their in-house Kotlin version version, just wondering do you have any news?
We don't have a Kotlin version at Facebook.
@jvillard That makes me really sad, I wish I could use infer in my Kotlin project.
just wondering do you have any news?
There is experimental support for Kotlin, enable with --kotlin-capture
.
Edit: on master.
just wondering do you have any news?
+1 @ngorogiannis
How do you invoke kotlin support on a gradle module? Is it like infer run -- ./gradlew BUILDTASK --kotlin-capture
?my module is mostly in kotlin with few legacy files in java
Currently, there is no support for Kotlin capture on Gradle builds, I'm afraid.
There is command line support for invocations like infer -- kotlinc source.kt
and also support for buck builds.