https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
eap
  • r

    ralf

    07/10/2020, 7:22 PM
    We’re running into a regression between M2 and M3. M2 works fine. https://youtrack.jetbrains.com/issue/KT-40214
    :tnx: 1
    r
    r
    • 3
    • 4
  • d

    Dmitry Pogrebnoy

    07/13/2020, 3:46 PM
    Hello! Can someone explain if it is possible to determine from the Kotlin plugin version whether this is an EAP version? For example, how to determine that 1.4-M3-release-IJ2020.1-1 is the EAP version, and 1.3.72-release-IJ2020.1-1 is the stable version?
    g
    • 2
    • 3
  • l

    LeoColman

    07/14/2020, 11:11 PM
    Hi! How do I generate an executable file from JS? I have
    kotlin {
        js(IR) {
            nodejs()
            binaries.executable()
        }
    }
    as my setup, and when running
    build
    it outputs a JS file to
    build/js/packages/...
    , but files from
    resources
    are nowhere to be found over there. What's the proper way to generate a executable file that works on its own?
    t
    i
    • 3
    • 24
  • z

    Zac Sweers

    07/15/2020, 5:19 PM
    I’m attempting to build our repo with 1.4-M3, but get a strange compile error on a random bit code
    The feature “unit conversion” is disabled
    private class OnJobDone(
        private val jobDone: (Job) -> Unit,
        val allDone: () -> Unit
    )
    
    private val callbacks = OnJobDone(
        jobDone = jobToChannelId andThen trackChannelSynced,
        // Fails on the next line
        allDone = {
          // ...
        }
    )
    l
    • 2
    • 6
  • r

    Rachel

    07/16/2020, 10:41 PM
    Hi! Please, about 1.4-M3, I would be very grateful if someone could confirm if this a mistake from transitive dependencies:
    +--- org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.4-M3
    |    +--- org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.4-M3
    |    |    +--- org.jetbrains.kotlin:kotlin-scripting-common:1.4-M3
    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.4-M3
    |    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4-M3
    |    |    |    |    \--- org.jetbrains:annotations:13.0
    |    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7  <-------------------------------------
    |    |    +--- org.jetbrains.kotlin:kotlin-scripting-jvm:1.4-M3
    |    |    |    +--- org.jetbrains.kotlin:kotlin-script-runtime:1.4-M3
    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.4-M3 (*)
    |    |    |    \--- org.jetbrains.kotlin:kotlin-scripting-common:1.4-M3 (*)
    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.4-M3 (*)
    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7  <------------------------------------------
    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4-M3 (*)
    According to https://kotlinlang.org/eap/#build-details the compatible version of
    kotlinx.coroutines
    is
    1.3.7-1.4-M3
    .
    g
    e
    • 3
    • 8
  • c

    christophsturm

    07/27/2020, 10:46 AM
    i updated my idea plugin to 1.4.0-rc and now its complaining that my kotlinx.serialization core is too old. I’ll just go back to the stable plugin for now. Probably a good idea to not update the plugin until the rc release cycle is complete.
    d
    l
    +2
    • 5
    • 9
  • s

    Sinan Kozak

    07/27/2020, 2:45 PM
    With new RC build, we have problem using object classes with inline class when they are called from Java classes. Apparently, methods in object class gets some sort of hash
    getAPP_ENTRY_8z4Jxt8
    ,compiler fails to find
    getAPP_ENTRY
    from java code. This only happens when return type is inline class. What could be root cause?
    l
    • 2
    • 8
  • r

    Ryan Simon

    07/27/2020, 5:03 PM
    I went to setup the 1.4.0-RC, and it looks like the documentation is wrong. It refers to
    1.4-RC
    as the version, but what worked was
    1.4.0-rc
    . May be worth updating
    a
    o
    l
    • 4
    • 4
  • r

    ralf

    07/27/2020, 6:19 PM
    We’re using Kotlin serialization
    0.20.0
    . Until now there has always been a preview build, e.g.
    0.20.0-1.4-M3
    . With the RC there’s only
    1.0-M1-1.4.0-rc
    . I’d just like to confirm whether this is intentional and if Kotlin Serialization will reach 1.0 with the final 1.4 release? We’d like to avoid milestone releases in production.
    s
    • 2
    • 3
  • g

    galex

    07/28/2020, 2:29 PM
    With 1.4 around the corner thanks to 1.4-RC, is there new documentation about the new IR compiler plugins APIs? Not sure what is up-to-date out there
    🇳🇴 1
    d
    • 2
    • 1
  • m

    Marc Knaup

    07/29/2020, 10:29 AM
    Is there a
    kotlin-dsl
    version for Kotlin 1.4.0-rc?
    ✔️ 1
    n
    t
    • 3
    • 11
  • j

    Justin

    07/29/2020, 7:04 PM
    Will Kotlin 1.4 support building iOS frameworks that can also be used to target Mac Catalyst? And if not, is there any hack to make this work in the meantime? (cc @Thomas)
    👍 1
    t
    • 2
    • 1
  • m

    Marc Knaup

    07/30/2020, 12:05 PM
    Is it a feature of Kotlin 1.4 that I don’t have to specify
    <*>
    when casting to the generic
    GraphEnumDefinition
    ? Or a bug? 😄 It’s inferred correctly.
    v
    • 2
    • 10
  • n

    Nikky

    07/30/2020, 10:02 PM
    when i am trying to add the kotlinx.nodejs dependency gradle says
    Could not find org.jetbrains.kotlin:kotlin-stdlib-js:1.4.0-rc-KT-40650.
    required by org.jetbrains.kotlinx:kotlinx-nodejs:0.0.4
    the repo only mentions
    jcenter()
    as required repo
    t
    • 2
    • 2
  • c

    Colton Idle

    07/31/2020, 8:07 AM
    Upgraded to 1.4-rc and now Android studio complains about
    viewModels
    I didn't change my code at all. I tried clean and rebuilding with no luck
    l
    • 2
    • 4
  • r

    Rachel

    08/05/2020, 10:10 AM
    Hi! Please, I don't know if the following behavior is expected with `1.4.0-rc`: two equal KotlinType with the same delegate and abbreviation are considered different now. However, they were considered equal with
    1.3.x
    . I provide screenshots in the thread. Thanks in advance!!
    a
    • 2
    • 9
  • b

    Brett Best

    08/06/2020, 12:05 AM
    Hi All, I was just wondering if anyone has faced the build process going in a loop when using kotlinx.serialization?
    f
    a
    • 3
    • 10
  • r

    Ran

    08/19/2020, 6:54 AM
    Hi All, tried Kotlin 1.4.0 on existing code (working in 1.3.72), got this error class instantiation (object), not sure what is the issue or how to debug “Exception in thread “main” java.lang.NoClassDefFoundError: kotlin/KotlinNothingValueException”
    g
    l
    +2
    • 5
    • 9
  • k

    Kirill Vasilenko

    08/19/2020, 5:17 PM
    Hello All. I'm trying Debugging Coroutines feature. If I run with Idea standard runner - everything OK, I see coroutines states. (see screenshot) If I run with Gradle - I get "No coroutine information found". (see screenshot) Does Debugging Coroutines work with Gradle?
    a
    • 2
    • 3
  • t

    Tolriq

    08/25/2020, 7:18 AM
    Crossposting as probably tied to Kotlin 1.4 : I'm getting a very weird issue and wonder if someone have already seen that, before trying to find a small repro. On some suspending functions an Android
    TextView.getText().toString() == ""
    works but
    TextView.text.toString() == ""
    (As suggested by IDE and previously worked) triggers
    java.lang.ClassCastException: android.text.SpannableStringBuilder cannot be cast to java.lang.String
    . It's like in the second case the .toString() call is converted to a cast and not the proper toString()
    l
    g
    n
    • 4
    • 37
  • r

    ralf

    09/14/2020, 11:33 PM
    Where are the dev build for Kotlin
    1.4.30
    published? I see them here already: https://github.com/JetBrains/kotlin/releases But I can’t find them here: http://dl.bintray.com/kotlin/kotlin-dev/org/jetbrains/kotlin/jvm/org.jetbrains.kotlin.jvm.gradle.plugin/
    👀 2
    a
    • 2
    • 2
  • n

    nitrog42

    09/15/2020, 8:48 AM
    can we expect an official EAP for 1.4.20 ? (I want to switch to kotlin 1.4 https://youtrack.jetbrains.com/issue/KT-41429)
    :yes: 2
    a
    s
    • 3
    • 3
  • a

    Alex Anisimov

    09/28/2020, 11:10 AM
    1.4.20-M1 is available! It’s available in the 
    kotlin-eap
     Bintray repository and EAP IDE plugin channel. What’s new: https://kotl.in/1.4.20-M1
    🎉 15
    i
    c
    m
    • 4
    • 5
  • l

    louiscad

    10/01/2020, 10:40 AM
    On my side, the upgrade is not smooth at all, the IDE ignores the modifiers most of the time until I edit the code and revert changes. I reported the issue here 2 days ago (with screenshots and details), but it hasn't been assigned yet: https://youtrack.jetbrains.com/issue/KT-42274 Can it be looked into? I'm wondering if it's caused by changes that are designed to improve performance, which would do it at the expense of correctness… and UX in the end.
    ➕ 2
    b
    • 2
    • 6
  • l

    louiscad

    10/06/2020, 3:26 PM
    Am I the only one getting blinking autocomplete popup that prevents one from selecting any entry in 1.4.20-M1?
    r
    • 2
    • 2
  • l

    louiscad

    10/09/2020, 10:49 AM
    Hi Dear Kotlin Team, Can https://youtrack.jetbrains.com/issue/KT-42501 be marked as top priority and targeted at 1.4.20? That regression introduced in 1.4.20-M1 is making developing a nightmare as autocomplete is nearly unusable.
    ✔️ 1
    👀 2
    n
    m
    • 3
    • 5
  • a

    Alex Anisimov

    10/19/2020, 12:33 PM
    1.4.20-M2 is available! It’s available in the 
    kotlin-eap
     Bintray repository and EAP IDE plugin channel. What’s new: https://kotl.in/1.4.20-M2
    🎉 7
    o
    m
    +5
    • 8
    • 8
  • s

    Sinan Kozak

    10/29/2020, 9:46 AM
    Hi, yesterday I spend some time for a leak in our application. it turn out collected item is not cleared from Channel. I found KT-16222 as fixed in 1.4.20-M1 but provided sample code and our own code still leaks and don’t clean up. I tested with both M1 and M2. (Our issue is much more similar to linked KT-33986). I am looking at the source code to find out any test for those issues. KT-16222 should be open again if it is not fixed yet.
    l
    • 2
    • 29
  • d

    Deactivated User

    10/31/2020, 12:12 PM
    Hey guys, I have noticed that 1.4.20-M1 is on central. This is on purpose, or at least it is fully deployed and usable?
    c
    • 2
    • 3
  • a

    Alex Anisimov

    11/03/2020, 9:26 AM
    1.4.20-RC is available! It’s available in the 
    kotlin-eap
     Bintray repository and EAP IDE plugin channel. What’s new: https://github.com/JetBrains/kotlin/releases/tag/v1.4.20-RC
    n
    m
    • 3
    • 2
Powered by Linen
Title
a

Alex Anisimov

11/03/2020, 9:26 AM
1.4.20-RC is available! It’s available in the 
kotlin-eap
 Bintray repository and EAP IDE plugin channel. What’s new: https://github.com/JetBrains/kotlin/releases/tag/v1.4.20-RC
n

nitrog42

11/03/2020, 10:25 AM
Beware if you are an Android Developer who use Navigation SafeArgs 😞
m

Margarita Bobova

11/03/2020, 12:06 PM
@nitrog42 Thank you for pointing out! We are looking at the problem.
View count: 2