https://kotlinlang.org logo
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
announcements
  • w

    wei

    10/05/2018, 2:43 AM
    ^^ I changed the name of the data class field to
    deleted
    and that exception was gone. So it has to be because of the unconventional behavior causing the exception.
    m
    d
    • 3
    • 3
  • h

    Hamza

    10/05/2018, 9:45 AM
    im trying to use kotlin gradle dsl, with 1.3.0-rc146, and im getting this issue when i try setting up the gradle project… aparently:
    r
    m
    n
    • 4
    • 21
  • k

    Konstantin Petrukhnov

    10/05/2018, 10:51 AM
    Is there some feed (rss/channel), that i could subscribe and get notified about new videos from kotlin conf (when they are published)?
    d
    a
    • 3
    • 3
  • j

    Jonathan

    10/05/2018, 2:21 PM
    Is there a way to deprecate a java method but only when used from Kotlin? And still consider usages from Java as non-deprecated?
    h
    a
    • 3
    • 11
  • m

    mikehearn

    10/05/2018, 2:23 PM
    why does BigDecimal.divide not do the same thing as Java's BigDecimal.divide method
    👍 1
    j
    • 2
    • 6
  • r

    rook

    10/05/2018, 2:26 PM
    I have the following code to try to filter down a sequence, but when I call
    toList()
    it appears to just make an empty list. Am I doing something wrong?
    someList.asSequence()
      .also { println(it.count()) } // 11
      .filter { thing -> !thing.bool }
      .also { println(it.count()) } // 11
      .take(CONST_INT)
      .map { thing ->
          thing.apply {
              thing.prop = "newVal"
          }
      }
      .also { println(it.count()) } // 11
      .toList()
      .also { println(it.count()) } // 0
    a
    j
    • 3
    • 9
  • c

    commanderpepper

    10/05/2018, 3:14 PM
    https://www.youtube.com/playlist?list=PLQ176FUIyIUbVvFMqDc2jhxS-t562uytr
    🔝 5
    v
    • 2
    • 1
  • s

    Suhit Patil

    10/05/2018, 4:18 PM
    https://android-developers.googleblog.com/2018/10/kotlin-momentum-for-android-and-beyond.html?m=1
    a
    • 2
    • 1
  • b

    beatbrot

    10/05/2018, 5:41 PM
    Hey guys. I am wondering: Is there any documentation of kotlin-script? I am talking about the version of kscript that is officially supported by kotlin!
    c
    • 2
    • 1
  • j

    Jason

    10/06/2018, 10:46 AM
    Is there any Rxjava or RxAndroid in Slack ?
    t
    • 2
    • 2
  • d

    Dico

    10/06/2018, 3:19 PM
    The IDE notifies you of internal errors that occur in it, and asks if you want to report it. Would a similar mechanism be possible for internal Kotlin compiler errors? Subject to some kind of filter that filters compiler errors with the same cause.
    l
    • 2
    • 2
  • j

    Jakub

    10/06/2018, 8:17 PM
    In my View layer I'm attaching
    TextWatcher
    to fields and I'm calling them from
    onTextChanged()
    k
    • 2
    • 2
  • h

    Hullaballoonatic

    10/06/2018, 10:23 PM
    is there a performance impact to using
    when
    for only 2 cases instead of `if`/`else`?
    d
    k
    • 3
    • 3
  • k

    karelpeeters

    10/07/2018, 7:17 AM
    @Sam Similar to builders in Java, have it be a parameter of the
    processor
    function.
    s
    • 2
    • 5
  • h

    Hadi Tok

    10/07/2018, 8:54 AM
    I was wondering if extension properties/functions would show up on jackson serialization. I run a test and they didn’t. what is the reason to it?
    d
    • 2
    • 2
  • e

    Eugen Martynov

    10/07/2018, 11:03 AM
    How to use inline class from java?
    k
    • 2
    • 5
  • r

    rameez

    10/07/2018, 4:05 PM
    Any good resources to learn about the arrow library
    o
    • 2
    • 1
  • i

    Ikem Nwodo

    10/07/2018, 10:04 PM
    Please I need this to be explained : val collections = listOf(1, 2, 3, 5) for ((index, element) in collections.withIndex())
    d
    • 2
    • 3
  • c

    camdenorrb

    10/08/2018, 3:45 AM
    Is there any way to get templates for documentation in Kotlin? For example in Java if I open a javadoc comment it'll fill out params and stuff for me
    h
    g
    k
    • 4
    • 9
  • a

    adams2

    10/08/2018, 3:11 PM
    How do I get the IDE to remind me to use
    internal
    g
    • 2
    • 4
  • s

    Sam

    10/08/2018, 3:56 PM
    ah, wouldn't the int mask (var3) serve for that purpose as well?
    k
    • 2
    • 1
  • a

    adams2

    10/08/2018, 5:30 PM
    specifically I made this and was wondering if it existed already
    s
    s
    l
    • 4
    • 5
  • a

    adams2

    10/08/2018, 5:30 PM
    livedata_extension.kt
    a
    • 2
    • 1
  • i

    itnoles

    10/09/2018, 1:41 AM
    What is different between kotlin-multiplatform vs kotlin-platform-*?
    d
    • 2
    • 1
  • e

    Egor Trutenko

    10/09/2018, 10:47 AM
    Um, just a general opinion question: does Kotlin really need ternary operator?
    🇳🇴 27
    :yes: 6
    g
    h
    d
    • 4
    • 11
  • j

    jeggy

    10/09/2018, 11:41 AM
    Is something like this possible in kotlin? https://pl.kotl.in/Byi2Xz5q7
    g
    m
    +2
    • 5
    • 14
  • j

    jeggy

    10/09/2018, 2:22 PM
    Can anyone explain what I'm doing wrong here?
    fun <T> test(list: List<T>) = when (list) {
        is List<String> -> println("Hello World")
        is List<List<Int>> -> println("Deep")
        else -> println("No Clue")
    }
    d
    r
    +4
    • 7
    • 10
  • i

    itnoles

    10/10/2018, 2:06 AM
    oh I got it to work.
    :rubber_duck: 1
    k
    • 2
    • 1
  • a

    alexcouch

    10/10/2018, 7:49 AM
    This isn't really a kotlin question but this issue I'm having came about while trying to mess around with the Kotlin Embedded Compiler (Kotlin JSR 223). For whatever reason, when I call ScriptEngine$eval, I get thrown an error stating "Failed to initialize native filesystem for Windows" even though the eval performs the same. It's really odd. I can't find anything on google that fixes my issue. Upon further inspection I found that the System Property for "idea.home.path" and "idea.home" were not being found by IntelliJ's OpenAPI PathManager class. However, when I go into my environment variables for my local machine, it doesn't have idea.home or idea.home.path at all. Not only that but there's actually nothing regarding any IDEA framework. I also find that attaching sources automatically (like intellij should be) doesn't work at all. I have to manually attach sources and not even that works all the time. I'm wondering if there's some kind of problem with my intellij installation and I may need a clean install of intellij. I have both community edition and the paid version (using school account). I actually used to have the variables set like a long time ago but I'm not quite sure what's going on anymore tbh. Are any of these problems known at all? I'm using 2018.2. I'm gonna try updating to 2018.3 and see if that fixes anything but this is kinda weird. Never experienced this before. I've messed with Kotlin Jsr 223 before tbh and never had this problem.
    g
    • 2
    • 2
  • h

    Hamza

    10/10/2018, 11:26 AM
    hi, im doing a speech on kotlin in my school! Is there any place I can ask for suggestions on my keynote or should i just post it here
    h
    g
    • 3
    • 3
Powered by Linen
Title
h

Hamza

10/10/2018, 11:26 AM
hi, im doing a speech on kotlin in my school! Is there any place I can ask for suggestions on my keynote or should i just post it here
h

hho

10/10/2018, 11:45 AM
In in doubt: #random 🙂
h

Hamza

10/10/2018, 11:46 AM
Okie
g

gildor

10/10/2018, 3:51 PM
also #speaking
View count: 1