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
random
  • j

    jmfayard

    02/21/2020, 2:25 PM
    Microsoft built such a nice remote pair programming tool in VSCode 🙂 too bad that IntelliJ has nothing similar 😏 https://visualstudio.microsoft.com/services/live-share/
    m
    k
    +4
    • 7
    • 9
  • h

    Harun Artın

    02/21/2020, 8:44 PM
    Hello everyone. I am developing an online quiz application on android. Do you think Firebase is suitable for real-time multiplayer? The game I want to do will be like a quiz up application. Is there a platform you recommend if Firebase is not suitable? i didnt find any example. I'm a little nervous about latency. I couldn't decide between websocket or firebase. what is your suggestion?
    c
    • 2
    • 1
  • l

    Leon K

    02/23/2020, 2:33 PM
    Just read this at https://kotlinlang.org/foundation/guidelines.html Why wouldn't they want us to say "Kotlin's" or "Kotlinize"?
    d
    • 2
    • 2
  • n

    napperley

    02/24/2020, 12:39 AM
    Has anyone managed to successfully override a Maven Artifact on GitLab via the Gradle publish task?
    t
    • 2
    • 2
  • l

    LeoColman

    02/24/2020, 6:40 PM
    I can't find Settings->Version Control anymore
    e
    • 2
    • 5
  • s

    sindrenm

    02/26/2020, 6:33 PM
    Does anyone have an approximate ETA on when the Contracts DSL will be considered stable/leaves experimental status? Thanks! 😒imple_smile:
    👍 1
    e
    z
    • 3
    • 3
  • l

    louiscad

    02/29/2020, 8:22 AM
    @Orhan Tozan Probably because IntelliJ is not stuck in ages old runtime. Android Studio is still using JRE 8 (as of 4.0) while IntelliJ runs on a more recent JRE based on OpenJDK 11.
    i
    o
    l
    • 4
    • 5
  • e

    Ellen Spertus

    03/02/2020, 10:34 PM
    I keep making this sort of mistake:
    s.replace("\\s+", "")
    d
    s
    l
    • 4
    • 8
  • w

    wasyl

    03/05/2020, 4:15 PM
    Does anyone have an idea why I’d see this warning, started with 1.3.70 ?
    > Task :analytics:api:kaptGenerateStubsTestKotlin
    w: Classpath entry points to a non-existent location: /Users/wasyl/projects/app/analytics/api/build/resources/main
    m
    k
    • 3
    • 4
  • c

    Colton Idle

    03/06/2020, 5:28 PM
    Still sucks to see this issue open: https://youtrack.jetbrains.com/issue/KT-32158 Typing speed is so bad, even on my machine with 64GB of ram.
    ➕ 6
    l
    c
    +3
    • 6
    • 9
  • e

    elect

    03/16/2020, 7:48 AM
    anyone using Idea remotely via vpn?
    s
    • 2
    • 5
  • d

    Dominaezzz

    03/17/2020, 11:33 PM
    Oof. Better luck next time. 😆
    🧙‍♂️ 4
    🥚 2
    😂 1
    m
    k
    • 3
    • 3
  • s

    Steve

    03/17/2020, 11:34 PM
    there were some... unforeseen issues happening. You couldn't have seen those happen.
    d
    • 2
    • 2
  • o

    Orhan Tozan

    03/18/2020, 11:51 PM
    Is there a ETA for Kotlin 1.4?
    d
    m
    n
    • 4
    • 3
  • g

    Gunslingor

    03/19/2020, 1:50 AM
    what does
    by getting
    mean in a gradlekt file?
    s
    d
    • 3
    • 6
  • t

    thanksforallthefish

    03/19/2020, 12:16 PM
    I started to try idea 2020, but it seems to not resolve test jar. in our gradle file we have
    testImplementation project(path: ":core-impl", configuration: "testHelper")
    which works fine in 2019 but not in 2020. does somebody else experience the same issue? shall I try to duplicate on a smaller scale or is it already known?
    • 1
    • 1
  • m

    Marc Knaup

    03/20/2020, 6:13 AM
    That’s the first time where J2K has messed up the imports of an entire project 😅 Is there any workaround? I guess I’ll have to fix dozens of files by hand now. Most of the imports aren’t even needed 😮
    i
    l
    i
    • 4
    • 10
  • p

    PandaH.

    03/20/2020, 2:40 PM
    how do i set the language for highlighting in codeblocks? everytime i enter the three backticks it just turns it into a codeblock before i can set the language
    w
    r
    • 3
    • 4
  • o

    Orhan Tozan

    03/23/2020, 12:12 PM
    What would be the idiomatic/semantic way to define a limited size length of a collection? Given a
    data class ChatConversation
    , where a chat conversation is always between two users (userId), which type would fit the most? I was thinking about a
    val userIds: Set<Int>
    but that doesn't enforce the min 2, max 2. Also thought about a
    val userIds: Pair<Int, Int>
    , but the fact that
    Pair(1, 2) == Pair(2, 1)
    equals to false makes it a inproper fit given the case here, since a conversation between Bob and Alice should be considered the same as a conversation between Alice and Bob. EDIT: Possible option:
    data class TwoSizedSet<T>(val value: Set<T>) {
        init {
            require(value.size == 2)
        }
    }
    c
    • 2
    • 17
  • b

    baxter

    03/24/2020, 2:01 AM
    👺 2
    😂 3
    :goberserk: 1
    a
    g
    a
    • 4
    • 3
  • d

    danny

    03/25/2020, 10:55 PM
    Just in time for us to take another three years to migrate from Java 8 to 11
    💯 2
    r
    • 2
    • 2
  • e

    Ellen Spertus

    03/26/2020, 5:36 PM
    I wish there were an annotation
    @ExistsForTesting
    not just
    @VisibleForTesting
    .
    🤝 1
    😅 3
    r
    s
    +2
    • 5
    • 21
  • o

    Oli Bradford

    04/07/2020, 7:13 AM
    Hi folks! Many of us work from home these days, whether we like it or not. What a surprise, if you're also a parent! Don't panic, we've got you covered. We prepared a giant list with WFH tips, kids activities, education materials, and virtual tours. I want to share it here, as I believe it will be useful for parents hanging in here: https://bit.ly/wfh-kids
    👍 4
    e
    • 2
    • 1
  • g

    groostav

    04/08/2020, 9:15 PM
    god help me, i just made a git commit in a centos machine and it gave me a vim editor 😱
    😱 3
    e
    n
    +4
    • 7
    • 11
  • o

    Orhan Tozan

    04/10/2020, 3:43 PM
    Anyone else tried the new Jetbrains Mono? I was using Inconsolata before, but this one is also pretty nice.
    s
    r
    a
    • 4
    • 15
  • g

    Gunslingor

    04/11/2020, 3:55 AM
    Anyone know if you can parse an HTML string with kotlinx-html? Second question, how?
    r
    • 2
    • 3
  • a

    Ananiya

    04/12/2020, 7:24 AM
    how to make windows app with kotlin
    :google: 5
    d
    m
    h
    • 4
    • 4
  • p

    poohbar

    04/12/2020, 5:03 PM
    In pre-2020.1 IntelliJ I could click once on a changed file in local VCS changes to see a compact diff of the changes. 1. Now I have to double click 2. The diff is opened in the main editor and it’s not a “compact” diff Is there a setting I am missing?
    l
    • 2
    • 5
  • c

    Colton Idle

    04/13/2020, 2:25 PM
    In Android Studio I hover over a lint warning and the "tooltip" appears and in the middle of reading it disappears in like a second. Any way to keep that tooltip there?
    i
    • 2
    • 4
  • d

    Dominaezzz

    04/20/2020, 1:46 PM
    https://youtrack.jetbrains.com/issue/IDEABKL-708
    s
    • 2
    • 2
Powered by Linen
Title
d

Dominaezzz

04/20/2020, 1:46 PM
https://youtrack.jetbrains.com/issue/IDEABKL-708
s

Shawn

04/20/2020, 2:08 PM
lord that’s an old ticket
OP referred to Bonjour as Rendezvous lmao
View count: 2