# Support

**URL:** https://discuss.kotlinlang.org/c/support/8.md

[Latest](https://discuss.kotlinlang.org/latest.md) · [Categories](https://discuss.kotlinlang.org/categories.md)

---

## [About the Support category](https://discuss.kotlinlang.org/t/about-the-support-category/1335)

<div class="topic-metadata">

**Author:** [@Roman\_Belov](https://discuss.kotlinlang.org/u/Roman_Belov)\
**Replies:** 4\
**Last updated:** [May 31, 2020, 7:12pm UTC](https://discuss.kotlinlang.org/t/about-the-support-category/1335 "2020-05-31T19:12:48Z")

</div>

If you need help getting things done in Kotlin, ask here. If you want to report a bug, please file a YouTrack issue instead. See also related channels in Kotlin Slack (you can sign up here): #general #getting-started …

---

## [Modifying a var within an async coroutine](https://discuss.kotlinlang.org/t/modifying-a-var-within-an-async-coroutine/31230)

<div class="topic-metadata">

**Author:** [@benjishults](https://discuss.kotlinlang.org/u/benjishults)\
**Replies:** 15\
**Last updated:** [September 28, 2026, 9:49am UTC](https://discuss.kotlinlang.org/t/modifying-a-var-within-an-async-coroutine/31230 "2026-09-28T09:49:19Z")

</div>

I’ve inherited some code and I’m wondering about how thread-safe it is. What’s bugging me is that the code makes an assignment to a var from within code that could be executed on any number of threads. Here’s the idea: …

---

## [IntelliJ crashes every time I try to start it](https://discuss.kotlinlang.org/t/intellij-crashes-every-time-i-try-to-start-it/31198)

<div class="topic-metadata">

**Author:** [@Michael4655](https://discuss.kotlinlang.org/u/Michael4655)\
**Replies:** 2\
**Last updated:** [August 24, 2026, 3:58pm UTC](https://discuss.kotlinlang.org/t/intellij-crashes-every-time-i-try-to-start-it/31198 "2026-08-24T15:58:16Z")

</div>

Metadata Edition: IntelliJ IDEA Open/Community Version: 2026.2.1 Operation System: Linux Fedora Packaging Format: Flatpak Bug description Every time I try to start it, IntelliJ crashes with the error message below. I…

---

## [Cve-2026-53914](https://discuss.kotlinlang.org/t/cve-2026-53914/31108)

<div class="topic-metadata">

**Author:** [@NullBadger](https://discuss.kotlinlang.org/u/NullBadger)\
**Replies:** 1\
**Last updated:** [July 3, 2026, 10:35am UTC](https://discuss.kotlinlang.org/t/cve-2026-53914/31108 "2026-07-03T10:35:13Z")

</div>

Hi, It looks like this vulnerability present in KAPT, CVE-2026-53914, has been classed as 9.8 severity by NIST but has been classed as medium severity by jetbrains and it’s been scheduled for a September release: 2.4.20…

---

## [Why do extra consumers considerably slow down or speed up processing over channels](https://discuss.kotlinlang.org/t/why-do-extra-consumers-considerably-slow-down-or-speed-up-processing-over-channels/31073)

<div class="topic-metadata">

**Author:** [@ssomers](https://discuss.kotlinlang.org/u/ssomers)\
**Replies:** 2\
**Last updated:** [May 27, 2026, 8:41pm UTC](https://discuss.kotlinlang.org/t/why-do-extra-consumers-considerably-slow-down-or-speed-up-processing-over-channels/31073 "2026-05-27T20:41:54Z")

</div>

Originally, I noticed that in a single producer, multiple consumer scenario, performance in Kotlin using buffered channels seems mostly fine compared to some other languages, but disappoints in case the jobs handed to co…

---

## [How can I make a row take all remaining height?](https://discuss.kotlinlang.org/t/how-can-i-make-a-row-take-all-remaining-height/31065)

<div class="topic-metadata">

**Author:** [@JoeAntB](https://discuss.kotlinlang.org/u/JoeAntB)\
**Replies:** 2\
**Last updated:** [May 20, 2026, 5:03pm UTC](https://discuss.kotlinlang.org/t/how-can-i-make-a-row-take-all-remaining-height/31065 "2026-05-20T17:03:04Z")

</div>

I am creating a game by using the Unscramble sample as a starting point. The app will be a single full screen with no scrolling. The screen will show an AppBar, a status bar, a canvas and a grid of buttons. Three rows ha…

---

## [Support understanding how .copy works in Kotlin](https://discuss.kotlinlang.org/t/support-understanding-how-copy-works-in-kotlin/31053)

<div class="topic-metadata">

**Author:** [@Saghar\_Pervez-Akhtar](https://discuss.kotlinlang.org/u/Saghar_Pervez-Akhtar)\
**Replies:** 8\
**Last updated:** [May 20, 2026, 8:58am UTC](https://discuss.kotlinlang.org/t/support-understanding-how-copy-works-in-kotlin/31053 "2026-05-20T08:58:00Z")

</div>

I hope someone can explain this to me. I have modified the code to make it clear so that is easier to understand what is doing. I’ve implemneted some changes where I was populating latLong fields. However, I noticed t…

---

## [When call Java method in Gradle Kotlin DSL: Argument type mismatch: actual type is 'kotlin.String?', but '@Nullable() kotlin.String' was expected](https://discuss.kotlinlang.org/t/when-call-java-method-in-gradle-kotlin-dsl-argument-type-mismatch-actual-type-is-kotlin-string-but-nullable-kotlin-string-was-expected/30094)

<div class="topic-metadata">

**Author:** [@h0cheung](https://discuss.kotlinlang.org/u/h0cheung)\
**Replies:** 1\
**Last updated:** [May 11, 2026, 3:11pm UTC](https://discuss.kotlinlang.org/t/when-call-java-method-in-gradle-kotlin-dsl-argument-type-mismatch-actual-type-is-kotlin-string-but-nullable-kotlin-string-was-expected/30094 "2026-05-11T15:11:34Z")

</div>

I’m using the file filter in jar task to remove some SPI. filesMatching("inst/META-INF/services/\*") { filter { line -\> if (line.startsWith("com.example.")) { null } else { line } } } The sig…

---

## [BasicJvmScriptingHost imports not working with StringScriptSource](https://discuss.kotlinlang.org/t/basicjvmscriptinghost-imports-not-working-with-stringscriptsource/24919)

<div class="topic-metadata">

**Author:** [@CptCaptain](https://discuss.kotlinlang.org/u/CptCaptain)\
**Replies:** 3\
**Last updated:** [April 19, 2026, 10:27am UTC](https://discuss.kotlinlang.org/t/basicjvmscriptinghost-imports-not-working-with-stringscriptsource/24919 "2026-04-19T10:27:14Z")

</div>

Hi all! I am trying to use imports with the BasicJvmScriptingHost with StringScriptSource instead of FileScriptSource. Unfortunately it is not working as expected. This is my test code: import java.nio.file.Files import…

---

## [Compilation using 2.3.0 hangs](https://discuss.kotlinlang.org/t/compilation-using-2-3-0-hangs/30908)

<div class="topic-metadata">

**Author:** [@jstuyts](https://discuss.kotlinlang.org/u/jstuyts)\
**Replies:** 5\
**Last updated:** [April 15, 2026, 8:29am UTC](https://discuss.kotlinlang.org/t/compilation-using-2-3-0-hangs/30908 "2026-04-15T08:29:24Z")

</div>

I upgraded to 2.3.0 in my Gradle build today, and now compilation does not finish (or at least is taking so much longer than with 2.2.21 that I am not willing to wait for it to finish). Adding kotlin.compiler.execution.…

---

## [Moving from suspend function to blocking code on JVM](https://discuss.kotlinlang.org/t/moving-from-suspend-function-to-blocking-code-on-jvm/30985)

<div class="topic-metadata">

**Author:** [@benjishults](https://discuss.kotlinlang.org/u/benjishults)\
**Replies:** 17\
**Last updated:** [March 13, 2026, 2:51pm UTC](https://discuss.kotlinlang.org/t/moving-from-suspend-function-to-blocking-code-on-jvm/30985 "2026-03-13T14:51:12Z")

</div>

Looking for feedback. I’ve written this code for JVM that will suspend a coroutine when it calls code that blocks on IO from a suspend function but without blocking the suspend function’s host thread. My goals: meant…

---

## [A good approach for dynamically loading and recompiling 3rd-party projects](https://discuss.kotlinlang.org/t/a-good-approach-for-dynamically-loading-and-recompiling-3rd-party-projects/30990)

<div class="topic-metadata">

**Author:** [@fish](https://discuss.kotlinlang.org/u/fish)\
**Replies:** 0\
**Last updated:** [March 11, 2026, 8:06am UTC](https://discuss.kotlinlang.org/t/a-good-approach-for-dynamically-loading-and-recompiling-3rd-party-projects/30990 "2026-03-11T08:06:20Z")

</div>

I’m trying to make an animation framework in Kotlin, similar to Motion Canvas, but using Kotlin coroutines instead of JS generator functions. It runs on the JVM, since it uses Compose Desktop for all the state tracking a…

---

## [Ktor and KMP threads](https://discuss.kotlinlang.org/t/ktor-and-kmp-threads/30983)

<div class="topic-metadata">

**Author:** [@AppL](https://discuss.kotlinlang.org/u/AppL)\
**Replies:** 0\
**Last updated:** [March 6, 2026, 6:48am UTC](https://discuss.kotlinlang.org/t/ktor-and-kmp-threads/30983 "2026-03-06T06:48:56Z")

</div>

How to determine whether my KMP application was closed properly? I mean I am using multiple coroutines in my KMP for desktop application mainly for Ktor receive bytes function but when I close the app I can see instances…

---

## [(x) -\> Any? returns kotlin.unit when invoked](https://discuss.kotlinlang.org/t/x-any-returns-kotlin-unit-when-invoked/30980)

<div class="topic-metadata">

**Author:** [@unname360l](https://discuss.kotlinlang.org/u/unname360l)\
**Replies:** 6\
**Last updated:** [February 28, 2026, 12:29pm UTC](https://discuss.kotlinlang.org/t/x-any-returns-kotlin-unit-when-invoked/30980 "2026-02-28T12:29:20Z")

</div>

class Where( val column: String, var value: Any?, val condition: String? = null, ) : IWhere { override fun clone(): Where { val clone = Where(column, value, condition) if(::callback.isIni…

---

## [Bug in 'Where'?](https://discuss.kotlinlang.org/t/bug-in-where/30979)

<div class="topic-metadata">

**Author:** [@man85](https://discuss.kotlinlang.org/u/man85)\
**Replies:** 6\
**Last updated:** [February 26, 2026, 5:58am UTC](https://discuss.kotlinlang.org/t/bug-in-where/30979 "2026-02-26T05:58:11Z")

</div>

interface TypeSafeService\<MARKER : Marker\<\*\>\> { fun \<T : Any, F\> getObject( objClass: KClass\<F\> ): T where F: Marker\<T\>, F: MARKER } interface Marker\<T: Any\> { fun markerType() : KClass\<T\> } I n…

---

## [Is this a common Kotlin scratch issue](https://discuss.kotlinlang.org/t/is-this-a-common-kotlin-scratch-issue/30965)

<div class="topic-metadata">

**Author:** [@Neeraj\_Sharma](https://discuss.kotlinlang.org/u/Neeraj_Sharma)\
**Replies:** 1\
**Last updated:** [February 23, 2026, 1:22pm UTC](https://discuss.kotlinlang.org/t/is-this-a-common-kotlin-scratch-issue/30965 "2026-02-23T13:22:41Z")

</div>

Am I alone getting this?? I was not able to run the sratch file. :sweat\_smile: Compilation failed: error: error processing script definition class org.jetbrains.kotlin.idea.core.script.k2.definitions.KotlinScratchScript…

---

## [Java 25 compatibility](https://discuss.kotlinlang.org/t/java-25-compatibility/30760)

<div class="topic-metadata">

**Author:** [@cunhazera](https://discuss.kotlinlang.org/u/cunhazera)\
**Replies:** 10\
**Last updated:** [February 20, 2026, 4:32pm UTC](https://discuss.kotlinlang.org/t/java-25-compatibility/30760 "2026-02-20T16:32:57Z")

</div>

Any plans to support Java 25 now that gradle has released 9.1.0 with full support?

---

## [Any plan for Supporting Language Server Protocol?](https://discuss.kotlinlang.org/t/any-plan-for-supporting-language-server-protocol/2471)

<div class="topic-metadata">

**Author:** [@seancs](https://discuss.kotlinlang.org/u/seancs)\
**Replies:** 48\
**Last updated:** [February 3, 2026, 4:46pm UTC](https://discuss.kotlinlang.org/t/any-plan-for-supporting-language-server-protocol/2471 "2026-02-03T16:46:59Z")

</div>

The language server protocol (LSP) is a common protocol for a tool and a language smartness provider. It will be nice to have a Kotlin language server, since there are already some popular LSP clients available (VSCode,…

---

## [Order of execution of "when" branches](https://discuss.kotlinlang.org/t/order-of-execution-of-when-branches/30928)

<div class="topic-metadata">

**Author:** [@wizzy25](https://discuss.kotlinlang.org/u/wizzy25)\
**Replies:** 9\
**Last updated:** [January 7, 2026, 8:36am UTC](https://discuss.kotlinlang.org/t/order-of-execution-of-when-branches/30928 "2026-01-07T08:36:26Z")

</div>

What is the order of execution of branches in a “when” block? The documentation says the execution is in order (link); however, I stumbled on this comment that says it is not always executed sequentially. If the executi…

---

## [How to print emojis using kotlin compiler](https://discuss.kotlinlang.org/t/how-to-print-emojis-using-kotlin-compiler/30927)

<div class="topic-metadata">

**Author:** [@nikhilwankhede0707](https://discuss.kotlinlang.org/u/nikhilwankhede0707)\
**Replies:** 6\
**Last updated:** [January 3, 2026, 10:38am UTC](https://discuss.kotlinlang.org/t/how-to-print-emojis-using-kotlin-compiler/30927 "2026-01-03T10:38:19Z")

</div>

Hi everyone and happy new year to all of you fun main(){ println("Snake 🐍") println("Snake \\uD83D") } whenever i executes this code using kotlin compiler the output is this Am I doing something wrong or the…

---

## [Extending generic interface more than once with different type parameters](https://discuss.kotlinlang.org/t/extending-generic-interface-more-than-once-with-different-type-parameters/30911)

<div class="topic-metadata">

**Author:** [@goncalompontes](https://discuss.kotlinlang.org/u/goncalompontes)\
**Replies:** 6\
**Last updated:** [December 30, 2025, 6:57pm UTC](https://discuss.kotlinlang.org/t/extending-generic-interface-more-than-once-with-different-type-parameters/30911 "2025-12-30T18:57:00Z")

</div>

As someone coming from Rust, i have grown deeply in love with the use of the Into/From traits. This has led me to want to implement something similar in Kotlin, but it has proved difficult to do so. The main issue start…

---

## [Using when for a sealed interface does not show the "exhaustive" error](https://discuss.kotlinlang.org/t/using-when-for-a-sealed-interface-does-not-show-the-exhaustive-error/30909)

<div class="topic-metadata">

**Author:** [@migvidal](https://discuss.kotlinlang.org/u/migvidal)\
**Replies:** 1\
**Last updated:** [December 24, 2025, 6:07pm UTC](https://discuss.kotlinlang.org/t/using-when-for-a-sealed-interface-does-not-show-the-exhaustive-error/30909 "2025-12-24T18:07:35Z")

</div>

I have the following code inside a .kt file: sealed interface Animal { val name: String } data class SeaLion(override val name: String) : Animal fun \<T: Animal\>manage(value: T) { when (value) { } …

---

## [Kotlin native path too long on Windows](https://discuss.kotlinlang.org/t/kotlin-native-path-too-long-on-windows/30907)

<div class="topic-metadata">

**Author:** [@Wallby](https://discuss.kotlinlang.org/u/Wallby)\
**Replies:** 2\
**Last updated:** [December 24, 2025, 3:31pm UTC](https://discuss.kotlinlang.org/t/kotlin-native-path-too-long-on-windows/30907 "2025-12-24T15:31:32Z")

</div>

I can’t extract the Kotlin native .zip file anywhere on Windows (not even partition roots). I have MAX\_PATH limitations disabled under: settings → system → advanced - file explorer → enable long paths. Have tried restart…

---

## [Head scratcher.. "java.lang.ClassNotFoundException: kotlin.collections.ArraysKt\_\_\_ArraysKt"](https://discuss.kotlinlang.org/t/head-scratcher-java-lang-classnotfoundexception-kotlin-collections-arrayskt-arrayskt/30905)

<div class="topic-metadata">

**Author:** [@Maxk](https://discuss.kotlinlang.org/u/Maxk)\
**Replies:** 6\
**Last updated:** [December 24, 2025, 3:24am UTC](https://discuss.kotlinlang.org/t/head-scratcher-java-lang-classnotfoundexception-kotlin-collections-arrayskt-arrayskt/30905 "2025-12-24T03:24:13Z")

</div>

I have a java webapp and want to introduce kotlin 2.3.0. I migrated my servlets into kotlin, project compiles but during runtime I get this error. The webserver is running tomcat 9 and JDK 17 java.lang.ClassNotFoundExce…

---

## [Having difficulty adapting the RabbitMQ client to coroutines](https://discuss.kotlinlang.org/t/having-difficulty-adapting-the-rabbitmq-client-to-coroutines/24163)

<div class="topic-metadata">

**Author:** [@mrpug](https://discuss.kotlinlang.org/u/mrpug)\
**Replies:** 6\
**Last updated:** [December 2, 2025, 3:25pm UTC](https://discuss.kotlinlang.org/t/having-difficulty-adapting-the-rabbitmq-client-to-coroutines/24163 "2025-12-02T15:25:53Z")

</div>

Hi all, I’m attempting to integrate a RabbitMQ consumer into a Kotlin project that uses coroutines heavily, but I’m having some issues adapting the RabbitMQ calls into coroutine calls. Has anyone done anything similar t…

---

## [Kotlinc native compiler - How to import "kotlinx.cinterop" to use "memScoped"?](https://discuss.kotlinlang.org/t/kotlinc-native-compiler-how-to-import-kotlinx-cinterop-to-use-memscoped/25816)

<div class="topic-metadata">

**Author:** [@umydwbp935](https://discuss.kotlinlang.org/u/umydwbp935)\
**Replies:** 1\
**Last updated:** [October 31, 2025, 9:42am UTC](https://discuss.kotlinlang.org/t/kotlinc-native-compiler-how-to-import-kotlinx-cinterop-to-use-memscoped/25816 "2025-10-31T09:42:52Z")

</div>

Hi there, I would like to write something like this: val fileSize = memScoped { val statBuf = alloc\<stat\>() val error = stat("/", statBuf.ptr) statBuf.st\_size } However, upon compilation I get: unresolved reference…

---

## [What's an idiomatic way to name a function that takes \`() -\> Unit\` vs \`suspend () -\> Unit\`](https://discuss.kotlinlang.org/t/whats-an-idiomatic-way-to-name-a-function-that-takes-unit-vs-suspend-unit/30809)

<div class="topic-metadata">

**Author:** [@bp](https://discuss.kotlinlang.org/u/bp)\
**Replies:** 4\
**Last updated:** [October 28, 2025, 9:36pm UTC](https://discuss.kotlinlang.org/t/whats-an-idiomatic-way-to-name-a-function-that-takes-unit-vs-suspend-unit/30809 "2025-10-28T21:36:33Z")

</div>

I’m trying to get up to speed with Kotlin. One of the things I keep hitting snags with is how functions and suspend functions feel like oil and water and don’t mix. For example if I wanted to wrap some code like this: t…

---

## [Requested invite to Slack twice, no response](https://discuss.kotlinlang.org/t/requested-invite-to-slack-twice-no-response/16972)

<div class="topic-metadata">

**Author:** [@NativeNilgai](https://discuss.kotlinlang.org/u/NativeNilgai)\
**Replies:** 4\
**Last updated:** [October 18, 2025, 3:45pm UTC](https://discuss.kotlinlang.org/t/requested-invite-to-slack-twice-no-response/16972 "2025-10-18T15:45:32Z")

</div>

Hi all This is essentially the same issue as Slack request, no response but I presume it is preferred that I post a new thread. The Kotlin Community page ( Community ) suggests it is possible to join the slack channel …

---

## [Coroutines and deadlocks](https://discuss.kotlinlang.org/t/coroutines-and-deadlocks/18060)

<div class="topic-metadata">

**Author:** [@Loke](https://discuss.kotlinlang.org/u/Loke)\
**Replies:** 23\
**Last updated:** [October 15, 2025, 4:35am UTC](https://discuss.kotlinlang.org/t/coroutines-and-deadlocks/18060 "2025-10-15T04:35:34Z")

</div>

I have been experimenting with using coroutines to add some parallelisation features to my project. I came across a deadlock, and I have created a small testcase that illustrates the problem. When running the following …

---

## [Kotlin's dependency on Jetbrains Annotations 13.0](https://discuss.kotlinlang.org/t/kotlins-dependency-on-jetbrains-annotations-13-0/28206)

<div class="topic-metadata">

**Author:** [@hugoncosta](https://discuss.kotlinlang.org/u/hugoncosta)\
**Replies:** 1\
**Last updated:** [October 9, 2025, 12:07pm UTC](https://discuss.kotlinlang.org/t/kotlins-dependency-on-jetbrains-annotations-13-0/28206 "2025-10-09T12:07:21Z")

</div>

Hello everyone, I’ve recently bumped my version of kotlinx-coroutines-core-jvm from 1.6.4 to 1.8.0 and started to have conflicts between kotlin-stdlib’s annotations (which are set to 13.0 even up to the latest 2.0 beta)…

[Next page](https://discuss.kotlinlang.org/c/support/8.md?page=1)
