https://kotlinlang.org logo
Join SlackCommunities
Powered by
# kontent
  • n

    Nikky

    06/19/2020, 9:59 AM
    set the channel description: static content generator using kotlin and scripting
  • n

    Nikky

    06/19/2020, 10:00 AM
    i made a channel for this, since DMs are a bit too secretive and threads get annoying to handle after a while since you cannot have sub-threads
  • m

    magnumrocha

    06/19/2020, 10:01 AM
    cool 👍
  • m

    magnumrocha

    06/19/2020, 10:01 AM
    great idea
  • n

    Nikky

    06/19/2020, 8:58 PM
    any idea for a website that i could "reverse" translate into kotlin code ? as a practice piece to see how it goes and how code looks, and what kind of things are common and could be simplified into library features
    m
    • 2
    • 2
  • n

    Nikky

    06/20/2020, 1:19 PM
    i tried to recreate a website using the script.. but it seems like the script compiler just dies on me on my laptop, not sure why possibly .kts is not scalable
  • n

    Nikky

    06/20/2020, 2:04 PM
    i was considering annotation driven .. annotate a function and then it executes tha and can generate content.. but ideally i would like to know why scripting freezes on a thing that works fine in a normal file
  • n

    Nikky

    06/20/2020, 5:06 PM
    maybe its just m latop.. but it also caused compileKotlin step to stall when i just invoked it from main
  • n

    Nikky

    06/20/2020, 5:06 PM
    commented out a few lines and its fine ?
  • m

    magnumrocha

    06/20/2020, 8:30 PM
    I don't know if I understood well the Issue... you are trying to run some gradle script in kotlin (".gradle.kts") and it is freezing... is that?
  • n

    Nikky

    06/21/2020, 7:12 PM
    i made it so you could write one script per file in kontent and access shared code.. and that freezes, but so did using the same function in "normal" code.. autogenerated cude using
    HTML to kotlinx.html
  • n

    Nikky

    06/21/2020, 7:12 PM
    but i only had my realtively weak laptop to test.. not good news if it would freeze on there, have a feeling like those things are causing some kind of compiler bug
  • n

    Nikky

    06/21/2020, 7:13 PM
    did not really get anything done thanks to that kind of blocker
  • n

    Nikky

    06/26/2020, 1:43 PM
    well this might be the reason i got stuck there