GithubHelp home page GithubHelp logo

Comments (8)

ubuntudroid avatar ubuntudroid commented on April 16, 2024 2

Okay, got it working as well. I created a minimalistic project on Github pointing out Kotlin specific adaptions: https://github.com/ubuntudroid/litho-kotlin.

from litho.

grandstaish avatar grandstaish commented on April 16, 2024 1

Legacy kapt used to convert kotlin code into stub class files, which in turn were run through the javac annotation processing tool. One of the (many) limitations of this idea is that class files don't have any information about method parameter names, which this library depends on. Lots of information in this article: https://medium.com/@workingkills/pushing-the-limits-of-kotlin-annotation-processing-8611027b6711

from litho.

grandstaish avatar grandstaish commented on April 16, 2024

Are you using kapt3 or legacy kapt? I'm not certain, but I don't think legacy kapt will work with litho.

from litho.

agrosner avatar agrosner commented on April 16, 2024

looks like legacy KAPT. Is there a reason why legacy won't work? Its strange that java files work in kapt but not Kotlin files.

from litho.

agrosner avatar agrosner commented on April 16, 2024

ok. now that would make a lot more sense. would it be possible to add this in the getting started docs or somewhere else so it's clear? Thank you!

from litho.

passy avatar passy commented on April 16, 2024

I have yet to try using Litho with Kotlin. If you want to start some docs on how to do it, we'd certainly love to include it.

from litho.

ubuntudroid avatar ubuntudroid commented on April 16, 2024

@grandstaish According to #119 it seems you got Litho to work with Kotlin. For some reason I'm running into the same problem like @agrosner meaning nothing gets generated. Would you mind setting up an example project so that we can compare our configurations?

from litho.

pavlospt avatar pavlospt commented on April 16, 2024

Irrelevant! Project already contains a Kotlin sample now :)! Can be closed!

from litho.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.