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.

[meta-task] Kotlin outstanding issues

See original GitHub issue

This issue is to keep track of remaining issues and where applicable work-arounds when using Litho with Kotlin.

Issues

  • Cannot use Kotlin objects for specs.
  • Annotated methods inside specs require @JvmStatic.
  • @PropDefault doesn’t work.
  • @PropDefault requires @JvmField annotation.

Other Gotchas

  • kapt is a pig. There seem to be a bunch of invalidation bugs that force you to clean your cache and rebuild.
  • NonExistentClass shows up in random places. Again, this appears to be a kapt bug and the best workaround for now appears to be ./gradlew clean.

Future work

We should consider generating Kotlin code to fully leverage the new language features like data classes, allow for Anko-like DSLs and get rid of builders.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:20 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
passycommented, May 24, 2018

I’ll update the comment. As long as we don’t use it in production internally, I think it’s best to keep the note there to set the right expectations.

1reaction
pavlosptcommented, May 23, 2018

@passy I think it can be closed and also remove the IMPORTANT notice from this doc: https://github.com/facebook/litho/blob/master/docs/_docs/getting-started/gradle-kt.md

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · WalletConnect/kotlin-walletconnect-lib - GitHub
library to use WalletConnect with Kotlin or Java. Contribute to WalletConnect/kotlin-walletconnect-lib development by creating an account on GitHub.
Read more >
11.0.0 - GitHub
Change Log All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/) and ......
Read more >
Make Kotlin Gradle plugin compatible with the Gradle ...
Make Kotlin Gradle plugin compatible with the Gradle configuration cache ... Relates to 4 issues (0 unresolved) ... Parent for 2 issues (0...
Read more >
app:compileDebugKotlin even though I have no errors in my ...
I keep getting the same error today across different apps I am working on: Execution failed for task ':app:compileDebugKotlin'. I definitely had ...
Read more >
Can someone point me in the right direction | Gradle - Kotlinlang
Still dealing with symbol resolution issues in the build. ... error: unresolved reference: classpath classpath(kotlin("gradle-plugin", version = "1.3.21")) ...
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