https://kotlinlang.org logo
Join SlackCommunities
Powered by
# kotlin-website
  • n

    natario1

    09/25/2022, 11:05 AM
    Hi guys, wanted to give a little feedback on kotlinlang.org - as a user, if I see this arrow on links, I will think that the it opens in a new browser tab. They currently don’t.
    ➕ 4
    🙏 2
    k
    p
    • 3
    • 3
  • m

    marcinmoskala

    12/08/2022, 8:54 AM
    It seems that kotlinlang.org certificate is invalid.
    n
    • 2
    • 1
  • m

    marcinmoskala

    12/08/2022, 8:54 AM
    message has been deleted
  • m

    marcinmoskala

    12/28/2022, 9:54 AM
    https://github.com/JetBrains/kotlin-web-site/pull/3348
  • k

    Klitos Kyriacou

    01/12/2023, 9:15 AM
    On this page: https://kotlinlang.org/docs/sealed-classes.html#sealed-classes-and-when-expression It says: "If it's possible to verify that the statement covers all cases, you don't need to add an
    else
    clause to the statement. However, this works only if you use
    when
    as an expression (using the result) and not as a statement". Can you explain the last sentence in more detail? I don't see any difference in the need (or otherwise) to add an
    else
    clause depending on whether the
    when
    block is used as an expression or a statement. Is this left over from an earlier version of Kotlin?
    ✔️ 1
    v
    • 2
    • 1
  • a

    antonis

    02/07/2023, 4:58 PM
    Hello 👋 I’m not sure if this is the right place for this. I’ve created a PR to add an event to the site following the instructions here. Should I add a reviewer or someone with write access would pick this up? 🙇
    n
    • 2
    • 1
  • p

    Piotr Krzemiński

    04/05/2023, 12:44 PM
    is it possible to add a dependency on some library in https://play.kotlinlang.org/?
    v
    n
    e
    • 4
    • 12
  • b

    Bence Erős

    05/21/2023, 8:09 AM
    Hello, let me suggest renaming the Reflection page ( https://kotlinlang.org/docs/reflection.html ) to "Function and method references", or something else. These language features don't have anything to do with run-time introspection, hence I think the current naming is misleading. Maybe this whole page would be better to move to the Functions section.
    n
    a
    • 3
    • 2
  • p

    Piotr Krzemiński

    07/24/2023, 12:25 PM
    looking at https://kotlinlang.org/ and usage highlights, I see e.g. “Gradle is introducing Kotlin as a language for writing build scripts” - it was in 2016! 🙂 Kotlin is now the default language in Gradle, it changes a lot. How about reviewing the usages there, perhaps getting in touch with other customers to get more up-to-date testimonials?
    n
    • 2
    • 1
  • p

    Piotr Krzemiński

    08/07/2023, 12:08 PM
    I’ve just noticed that Kotlin Playground and, as a result, also Kotlin snippets in the docs and on kotlinlang.org, don’t highlight syntax for expressions inside the strings. It looks a bit weird, as if it was a regular string, especially when you’re used to IntelliJ being aware of the expressions. I see that the editor component used there is https://codemirror.net/, and apparently for JS it has the expressions syntax highlighting implemented
    v
    n
    • 3
    • 9
  • p

    Piotr Krzemiński

    08/30/2023, 7:02 PM
    it might be a bit misleading: there’s a banner at the top of the page saying “📣 Be sure to update to Kotlin 1.9.0! →“, and the newest version is actually 1.9.10, so it would be downgrading to 1.9.0 😄 I realize that the banner refers to the blog post and the large 1.9 release, but still decided to give feedback about it and let you decide what to do with it. My quick suggestion would be to rename the title of the banner to “(…) Kotlin 1.9”, just omit the patch version
    👍 1
    n
    • 2
    • 1
  • l

    louiscad

    11/02/2023, 12:59 AM
    The new Time measurment page is nice, and I like that it mentions
    SystemClock.elapsedRealtimeNanos()
    with a simple bridge! https://kotlinlang.org/docs/whatsnew1920.html#documentation-updates
    kodee happy 1
    😍 1
    s
    • 2
    • 1
  • c

    Chris Fillmore

    11/02/2023, 12:03 PM
    https://kotlinlang.slack.com/archives/C0B8W32VA/p1696255828728259
    s
    • 2
    • 1
  • m

    marcinmoskala

    01/09/2024, 10:44 AM
    Hey, I want to share some Coroutines exercises to solve in playground, but for testing them I need kotlinx.coroutines.test that does not seem to be supported. Is there any way to be able to use it, or is there a process to propose adding support for this library? Example: https://kt.academy/article/e_coroutines_201e_1
    ✅ 1
    k
    • 2
    • 6
  • p

    Piotr Krzemiński

    02/20/2024, 10:35 AM
    character entities aren't rendered properly:
    l
    k
    • 3
    • 7
  • l

    louiscad

    02/28/2024, 4:24 PM
    It's a bit weird to have
    /jvm
    in all the Kotlin reference URLs. It becomes quite funky when you land on symbols that are not even JVM compatible: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.concurrent/-atomic-int/
    k
    k
    • 3
    • 4
  • k

    Klitos Kyriacou

    06/12/2024, 12:59 PM
    How come the documentation of Array has
    minOrNull()
    but not
    min()
    ?
    🤔 1
    n
    • 2
    • 1
  • k

    Klitos Kyriacou

    08/22/2024, 8:36 AM
    When is the revamped API reference going to become the default? The current API reference site is a bit buggy - for example, see my previous question, and here's a new one: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm.optionals/java.util.-optional/ contains misleading documentation about an extension called
    Any()
    - in fact the extension name should be
    getOrDefault
    . The revamped website shows it correctly.
    n
    • 2
    • 1
  • t

    Tamás Fábián

    10/09/2024, 10:47 AM
    Hi, What's the font on the diagram like here?
    h
    • 2
    • 2
  • p

    Piotr Krzemiński

    10/18/2024, 10:40 AM
    it's probably a minor, and I'm not an expert, but I think it should be present simple: "Do you use Ktor?". Otherwise you ask if I'm using it right now
    thank you color 2
    n
    • 2
    • 1
  • p

    Piotr Krzemiński

    11/04/2024, 12:17 PM
    on #C0BT46EL8 there's a question about limiting access to some host if compiling and running scripts: https://kotlinlang.slack.com/archives/C0BT46EL8/p1730717817916209 . I think this problem is also relevant to Kotlin Playground since SecurityManager has been deprecated since Java 17 (https://stackoverflow.com/a/75242941). We're wondering if JetBrains is looking at an alternative way to implement access limiting on Playground that could be mimicked in other similar scenarios
    n
    • 2
    • 1
  • m

    Michal Klimczak

    11/04/2024, 6:57 PM
    Hi, I am tryin to follow one of the new tutorials with spm local packaging of multiplatform lbraries, but I feel like it lacks some important details: https://kotlinlang.org/docs/multiplatform-spm-local-integration.html 1. The pre-actions script should be on the app scheme, not the package? 2. What's the
    Package.swift
    for our local package? Does it require any special reference for the embeded framework? 3. How is that supposed to work anyway, i.e. how running embedAndSign on the app module would make it importable on the local spm package and indirectly importable on the project? 4.
    import Shared
    ? Usually it's
    import shared
    ? 5. What's so special about Kotlin 2.x that it's needed for that to work? There seems to be some magic involved, however this magic doesn't work for me unfortunately 😞 Any hints?
    p
    n
    +2
    • 5
    • 9
  • s

    Sergei Kozelko

    11/06/2024, 3:46 AM
    Locale.setDefault
    fails in playground with
    java.security.AccessControlException: Access control exception due to security reasons in web playground
    . Is this on purpose?
    o
    n
    • 3
    • 2
  • o

    Olaf Gottschalk

    11/06/2024, 8:00 AM
    Hello #C02B3PECK6E! I was redirected to your channel because my problem involves sandboxing Kotlin script code that can be edited by a web interface for security reasons. Basically the same problem that Kotlin Playground faces. Now, in the kotlin-compiler-server the sandboxing is done using Java's
    SecurityManager
    , but this component has been deprecated and will be discontinued. What are your plans, what are the tools you are going to use in the future to protect your system from untrusted code being sent to the compiler server? Thanks!
    n
    • 2
    • 3
  • k

    Klitos Kyriacou

    12/23/2024, 10:01 AM
    Being very fussy here, but is there any way that
    component10
    can appear after
    component9
    (instead of between
    component1
    and
    component2
    ) on pages like the documentation for Destructured?
  • s

    sigmadelta

    12/27/2024, 7:00 PM
    Hey guys, is this the right place to ask questions about
    WASM
    in Kotlin Multiplatform as well? If so, I have a little question. I currently made a website using the WASM export and it works for all clients, except for iOS below
    18.2
    . This is related to the fact that they only introduced support for
    WASM
    GC with their recent os update. To bypass this there is the option of exporting the whole project in JS, but I would prefer to stay in
    WASM
    . Is there somehow an option to detect the browser of the user doesn't support
    WASM
    GC and redirect him to a different index.html with an explanation or something?
    solved 1
    h
    • 2
    • 2
  • a

    Alina Dolgikh [JB]

    01/22/2025, 7:03 PM
    set the channel topic: kotlinlang.org & play.kotlinlang.org questions and discussions
  • s

    solonovamax

    03/04/2025, 8:30 PM
    hi, I just noticed that in the kotlinlang docs, it lists
    v5
    as being the default for
    -target
    when compiling kotlin/js. however, the only accepted values are
    es5
    and
    es2015
    , and the gradle plugin lists the default as being
    es5
    . (in multiple places, see:
    KotlinJsCompilerOptions
    ,
    K2JSCompilerArguments
    , etc.) also, in several places the "Possible values" and "Default value" columns seem to be incorrect with the new
    compilerOptions
    DSL.
    thank you color 1
    a
    • 2
    • 1
  • o

    Oleg Nenashev

    03/25/2025, 1:11 PM
    Hi all. Is there a reason why https://kotlinlang.org/docs has no quick edit button that would point to https://github.com/JetBrains/kotlin-web-site editor?
    ✅ 1
    k
    a
    • 3
    • 7
  • l

    louiscad

    05/09/2025, 11:34 PM
    Hello, this link is dead, what is the reason? https://blog.jetbrains.com/kotlin/2025/03/kotlin-2-1-20-released/
    v
    • 2
    • 3