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
  • s

    Szymon Chaber

    05/16/2022, 4:09 PM
    I'll be first to admin that it's :not-kotlin: I'm faced with a choice between MacBook Pro 16" M1 Pro with 16 GB RAM now & 32GB in 1-2 months. In the meantime I would have only my 2016 Dell laptop. Do you think that IntelliJ / Android Studio, Gradle builds & Android emulators will run that much faster on 32GB version? Is it worth the wait?
    :yes: 7
    :not-kotlin: 2
    t
    r
    +3
    • 6
    • 7
  • r

    rtsketo

    05/17/2022, 11:13 AM
    Does anyone else have a problem with the new logcat in Android Studio, like getting stuck forever and not receiving any new feedback?
    🇳🇴 1
    ☝️ 3
    m
    m
    • 3
    • 8
  • x

    xxfast

    05/19/2022, 12:33 AM
    Whatever happened to this guy? does it still have no name?
    :maskot-wink: 1
    :maskot: 2
    :maskot-angry: 1
    :mascot: 1
    t
    p
    +5
    • 8
    • 14
  • d

    Dominaezzz

    05/19/2022, 7:21 PM
    Is it possible to set a project level gradle property or an environment variable in IntellIJ?
    a
    a
    • 3
    • 11
  • s

    Shehab Ellithy

    05/21/2022, 9:15 AM
    Code and full stack trace:
    context(Int)
    fun foo() {}
    
    val d = listOf(::foo)
    
    fun main() {}
    org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
    File being compiled: C:/Programming/quickKotlin/src/main/kotlin/Main.kt
    The root cause java.lang.AssertionError was thrown at: org.jetbrains.kotlin.ir.expressions.impl.IrFunctionReferenceImpl.getValueArgument(IrFunctionReferenceImpl.kt:46)
    	at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException(CodegenUtil.kt:238)
    	at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException$default(CodegenUtil.kt:234)
    	at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invokeSequential(performByIrFile.kt:68)
    	at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(performByIrFile.kt:55)
    	at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(performByIrFile.kt:41)
    	at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.invoke(CompilerPhase.kt:96)
    	at org.jetbrains.kotlin.backend.common.phaser.CompositePhase.invoke(PhaseBuilders.kt:29)
    	at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.invoke(CompilerPhase.kt:96)
    	at org.jetbrains.kotlin.backend.common.phaser.CompilerPhaseKt.invokeToplevel(CompilerPhase.kt:43)
    	at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.invokeLowerings(JvmIrCodegenFactory.kt:246)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.runLowerings(KotlinToJVMBytecodeCompiler.kt:373)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:129)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli$default(KotlinToJVMBytecodeCompiler.kt:60)
    	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:172)
    	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:54)
    	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:91)
    	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:43)
    	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:93)
    	at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:471)
    	at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:123)
    	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally(IncrementalCompilerRunner.kt:367)
    	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally$default(IncrementalCompilerRunner.kt:309)
    	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl(IncrementalCompilerRunner.kt:156)
    	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:77)
    	at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:623)
    	at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:101)
    	at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1718)
    	at jdk.internal.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
    	at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
    	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
    	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
    	at java.base/java.security.AccessController.doPrivileged(AccessController.java:691)
    	at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    	at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:587)
    	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
    	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:705)
    	at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
    	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
    	at java.base/java.lang.Thread.run(Thread.java:831)
    Caused by: java.lang.AssertionError: org.jetbrains.kotlin.ir.expressions.impl.IrFunctionReferenceImpl@7925e2e9: No such value argument slot: 0
    	at org.jetbrains.kotlin.ir.expressions.impl.IrFunctionReferenceImpl.getValueArgument(IrFunctionReferenceImpl.kt:46)
    	at org.jetbrains.kotlin.ir.util.IrUtilsKt.getArgumentsWithIr(IrUtils.kt:104)
    	at org.jetbrains.kotlin.backend.jvm.lower.FunctionReferenceLowering$FunctionReferenceBuilder.<init>(FunctionReferenceLowering.kt:533)
    	at org.jetbrains.kotlin.backend.jvm.lower.FunctionReferenceLowering$FunctionReferenceBuilder.<init>(FunctionReferenceLowering.kt:522)
    	at org.jetbrains.kotlin.backend.jvm.lower.FunctionReferenceLowering.visitFunctionReference(FunctionReferenceLowering.kt:220)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitFunctionReference(IrElementTransformerVoid.kt:235)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitFunctionReference(IrElementTransformerVoid.kt:24)
    	at org.jetbrains.kotlin.ir.expressions.impl.IrFunctionReferenceImpl.accept(IrFunctionReferenceImpl.kt:63)
    	at org.jetbrains.kotlin.ir.expressions.IrExpression.transform(IrExpression.kt:33)
    	at org.jetbrains.kotlin.ir.expressions.IrFunctionAccessExpression.transformChildren(IrFunctionAccessExpression.kt:50)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoidKt.transformChildrenVoid(IrElementTransformerVoid.kt:346)
    	at org.jetbrains.kotlin.backend.jvm.lower.FunctionReferenceLowering.visitCall(FunctionReferenceLowering.kt:123)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitCall(IrElementTransformerVoid.kt:215)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitCall(IrElementTransformerVoid.kt:24)
    	at org.jetbrains.kotlin.ir.expressions.impl.IrCallImpl.accept(IrCallImpl.kt:47)
    	at org.jetbrains.kotlin.ir.expressions.IrExpression.transform(IrExpression.kt:33)
    	at org.jetbrains.kotlin.ir.expressions.IrExpressionBody.transformChildren(IrBody.kt:46)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitBody(IrElementTransformerVoid.kt:108)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitExpressionBody(IrElementTransformerVoid.kt:114)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitExpressionBody(IrElementTransformerVoid.kt:115)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitExpressionBody(IrElementTransformerVoid.kt:24)
    	at org.jetbrains.kotlin.ir.expressions.IrExpressionBody.accept(IrBody.kt:36)
    	at org.jetbrains.kotlin.ir.expressions.IrExpressionBody.transform(IrBody.kt:39)
    	at org.jetbrains.kotlin.ir.declarations.IrField.transformChildren(IrField.kt:41)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitDeclaration(IrElementTransformerVoid.kt:57)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitField(IrElementTransformerVoid.kt:81)
    	at org.jetbrains.kotlin.backend.common.IrElementTransformerVoidWithContext.visitFieldNew(IrElementTransformerVoidWithContext.kt:123)
    	at org.jetbrains.kotlin.backend.common.IrElementTransformerVoidWithContext.visitField(IrElementTransformerVoidWithContext.kt:61)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitField(IrElementTransformerVoid.kt:82)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitField(IrElementTransformerVoid.kt:24)
    	at org.jetbrains.kotlin.ir.declarations.IrField.accept(IrField.kt:34)
    	at org.jetbrains.kotlin.ir.IrElement$DefaultImpls.transform(IrElement.kt:32)
    	at org.jetbrains.kotlin.ir.IrElementBase.transform(IrElementBase.kt:19)
    	at org.jetbrains.kotlin.ir.declarations.IrProperty.transformChildren(IrProperty.kt:58)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitDeclaration(IrElementTransformerVoid.kt:57)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitProperty(IrElementTransformerVoid.kt:78)
    	at org.jetbrains.kotlin.backend.common.IrElementTransformerVoidWithContext.visitPropertyNew(IrElementTransformerVoidWithContext.kt:119)
    	at org.jetbrains.kotlin.backend.common.IrElementTransformerVoidWithContext.visitProperty(IrElementTransformerVoidWithContext.kt:54)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitProperty(IrElementTransformerVoid.kt:79)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitProperty(IrElementTransformerVoid.kt:24)
    	at org.jetbrains.kotlin.ir.declarations.IrProperty.accept(IrProperty.kt:49)
    	at org.jetbrains.kotlin.ir.IrElement$DefaultImpls.transform(IrElement.kt:32)
    	at org.jetbrains.kotlin.ir.IrElementBase.transform(IrElementBase.kt:19)
    	at org.jetbrains.kotlin.ir.util.TransformKt.transformInPlace(transform.kt:35)
    	at org.jetbrains.kotlin.ir.declarations.IrClass.transformChildren(IrClass.kt:68)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitDeclaration(IrElementTransformerVoid.kt:57)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitClass(IrElementTransformerVoid.kt:66)
    	at org.jetbrains.kotlin.backend.common.IrElementTransformerVoidWithContext.visitClassNew(IrElementTransformerVoidWithContext.kt:111)
    	at org.jetbrains.kotlin.backend.common.IrElementTransformerVoidWithContext.visitClass(IrElementTransformerVoidWithContext.kt:47)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitClass(IrElementTransformerVoid.kt:67)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitClass(IrElementTransformerVoid.kt:24)
    	at org.jetbrains.kotlin.ir.declarations.IrClass.accept(IrClass.kt:57)
    	at org.jetbrains.kotlin.ir.IrElement$DefaultImpls.transform(IrElement.kt:32)
    	at org.jetbrains.kotlin.ir.IrElementBase.transform(IrElementBase.kt:19)
    	at org.jetbrains.kotlin.ir.declarations.impl.IrFileImpl.transformChildren(IrFileImpl.kt:89)
    	at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoidKt.transformChildrenVoid(IrElementTransformerVoid.kt:346)
    	at org.jetbrains.kotlin.backend.jvm.lower.FunctionReferenceLowering.lower(FunctionReferenceLowering.kt:68)
    	at org.jetbrains.kotlin.backend.common.phaser.FileLoweringPhaseAdapter.invoke(PhaseBuilders.kt:120)
    	at org.jetbrains.kotlin.backend.common.phaser.FileLoweringPhaseAdapter.invoke(PhaseBuilders.kt:116)
    	at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.invoke(CompilerPhase.kt:96)
    	at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invokeSequential(performByIrFile.kt:65)
    	... 40 more
    s
    • 2
    • 1
  • p

    Prashast Rastogi

    05/27/2022, 1:42 PM
    What platfrom do you guys use for tech talks and animated presentations just like jetpack compose slides on youtube
    j
    a
    • 3
    • 5
  • j

    Jonathan Ellis

    05/30/2022, 5:36 PM
    Hi all, thanks for the help this last week. I believe I've created the first long-form generative NFT in Kotlin/js: https://www.fxhash.xyz/generative/slug/nerumiant
    👎 3
    p
    • 2
    • 1
  • y

    Youssef Shoaib [MOD]

    06/04/2022, 1:50 PM
    Building IntelliJ Idea Community
    🏋️ 1
    🏋️🏾 1
    🐌 2
    n
    a
    t
    • 4
    • 10
  • m

    mp

    06/07/2022, 5:01 PM
    hi there guys Can anyone share experience\review about daily usage M1 based laptops? maybe implosions or issue u have got with it interested does it worth to upgrade if your daily workflows related to kotlin\jvm spring docker etc. tnx
    b
    c
    +2
    • 5
    • 5
  • r

    ribesg

    06/08/2022, 1:59 PM
    I add a single new item to an enum in a lib. This effectively is a breaking change for users relying on
    when
    statements completeness. Would you increment the major, minor, or fixes part of the version for such case? I don’t really like bumping the major for a single line of code that adds an element to what is merely a list
    o
    r
    • 3
    • 7
  • r

    ribesg

    06/09/2022, 9:33 AM
    sniffs smells like Kotlin 1.7 release :kotlin-intensifies: :kotlin-intensifies-purple:
    :kotlin-intensifies: 2
    🎉 2
    k
    • 2
    • 3
  • j

    juliocbcotta

    06/13/2022, 7:22 AM
    I have a method with this signature
    fun translate(key: String, body: (translation: String) -> Unit)
    and I need to integrate it with Java files, which requires me to
    return Unit.INSTANCE;
    like:
    translate("MY_KEY", translate -> {
                    // Do something
                    return Unit.INSTANCE;
                });
    Is it possible to avoid the return statement by changing the method signature or something ?
    e
    k
    • 3
    • 11
  • k

    Klitos Kyriacou

    06/14/2022, 2:51 PM
    I've just experienced the following crash in the Kotlin REPL. Is this a known issue?
    $ kotlin
    Welcome to Kotlin version 1.7.0 (JRE 17.0.3+7-Ubuntu-0ubuntu0.20.04.1)
    Type :help for help, :quit for quit
    >>> 
    >>> import kotlin.time.Duration.Companion.nanoseconds
    >>> 1.nanoseconds
    exception: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't inline method call: nanoseconds
    Method: null
    File being compiled: (1,3) in /Line_2.kts
    The root cause java.lang.IllegalStateException was thrown at: org.jetbrains.kotlin.codegen.inline.SourceCompilerForInlineKt.getMethodNode(SourceCompilerForInline.kt:118)
    i
    • 2
    • 1
  • y

    Yoavya

    06/15/2022, 11:36 AM
    I have an issue with default params and backward compatibility in a kotlin library: my use case is: I have a library that is used by me and by other libraries I use so if I update my version then the code in the 3rd party library is changed but the calls to functions/constructors remain as they where. For example: the lib has a class
    A
    data class A(val x:String)
    then we update the lib so that
    A
    has another val
    data class A(val x: String, val y: String = "")
    I used default parameters so everything should be fine, but it not. the third party library will continue to call
    A("something")
    to a constructor that doesn’t exist and I am getting a
    java.lang.NoSuchMethodError: A.<init>(Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
    @JvmOverloads
    doesn’t help. Any solutions for this?
    m
    e
    • 3
    • 7
  • j

    Jason5lee

    06/19/2022, 2:55 PM
    After I learnt structural concurrency I realized that doing concurrency wrong in JavaScript is much easier than I thought. Most of the async function does not provide a mechanism to cancel, which means the other `Promise`s won’t be cancelled in
    Promise.race
    . Also
    Promise.all
    won’t either cancel or wait for other `Promise`s if one of them is rejected. And this language is used in every web.
    e
    m
    • 3
    • 3
  • s

    samp

    06/21/2022, 9:13 PM
    In android studio or intelliJ, is there any way to refactor the Java code to replace attribute access to getters and setters? Context: I have a lib which has a class in kotlin and exposes the properties to java consumers with @jvmField but i am removing them and want to use properties gettter method in java codebase. Something like this:
    String c = class.property;
    to
    String c =  class.getProperty;
    I have 1000+ or more usages like this from this internal lib, what's the best way to migrate from property to method?
    e
    c
    • 3
    • 3
  • n

    nuhkoca

    06/22/2022, 9:55 PM
    Hello, What is default GH Actions cache size for enterprise accounts?
  • m

    mp

    06/23/2022, 2:27 PM
    Do anyone know “kotlinish” pins store? 😁 pleeeeeeeeeease
    :kotlin-intensifies: 1
    r
    m
    • 3
    • 3
  • t

    Tom Haywood

    06/28/2022, 5:27 AM
    Apologies if this has been asked already. What has happened to the Talking Kotlin podcast? Has it been cancelled?
    🇳🇴 2
  • c

    Colton Idle

    06/30/2022, 7:02 PM
    typing kotlin code in intellij/AS is sooo slow. 😭 i have an m1 max with 64GB. whyyyyyyy is typing so laggy
    e
    a
    +8
    • 11
    • 44
  • e

    elect

    07/05/2022, 7:57 AM
    I need to parse some dynamic website using javascript and it looks like things are quite hard. So, I wonder if there is a website where given another address input, it resolve javascript internally and returns the plain context easy to read/parse
  • c

    Christian Dräger

    07/06/2022, 7:41 PM
    Hey, I need to write a service where I want to use an microkernel (plugin) architectural pattern approach, since it will have a core / base application and business logic and a unknown number of future plugins. (A bit simular to what Intellij is doing with its plugin approach.) My question would be if someone knows a source where I can find an example or reads how to tackle such an approach with kotlin or at least with Java so I could adopt it to Kotlin
    y
    • 2
    • 3
  • t

    therealbluepandabear

    07/07/2022, 1:23 AM
    I don't like to get political, and yeah I'm not really active here so I don't think my opinion matters, but I think it's absolutely ridiculous and stupid that JetBrains shut down their offices in Russia, and suspended sales in Russia. It is meaningless virtue signaling in my opinion, and I'm going to call JetBrains out for this. JetBrains has a right to condemn the war, they also have a right to shutdown the Russia offices and suspend Russia sales. Although they have the right to do this, I believe that this choice was ridiculous and stupid. I am calling out the heads of JetBrains, not the low level people who are working there: Listen, JetBrains, you had no reason to shut down your offices in Russia and suspend sales in Russia, they were under no threat whatsoever from anyone and citizens have nothing to do with the war. I am quite surprised that no one here on this Slack channel is calling this decision out. I was on a thread in which people were discussing the delays with Compose, not one person mentioned how stupid and nonsensical this move was. What has this become, a company-shilling server? What? Are you out of your mind 🧠 ?? There is no good 'excuse' for the reason that there is delays, the reason is because some heads at JetBrains made a weirdly ridiculous decision to 'abandon' their offices in Russia. Lmao, I just can't even stress how dumb this move is -- it only hurts your company and average citizens. This is big-tech level dumb moves that I'd expect to see from giant corporations. This 'shutdown' of the Russia office has caused unnecessary delays with Compose for no good reason. Your disgusting move to suspend Russia sales have affected innocent Russians. The Russian people have nothing to do with the war at all, and I was quite shocked to find out that one of the project leaders in Russia got their account terminated: again, I stress this, citizens != government. Government is evil, most citizens are not. I know many people in Russia who are against the war, et cetera. This is directly hurting average citizens because: • Now, those who worked for JetBrains in Russia have no job, for what good reason? Because of a war which they never even decided they wanted to happen? Because of this stupid boycott that is hurting citizens? Enough is enough. You, the heads at JetBrains, are responsible now for hundreds of people without a job, literally innocent people who had no say on any matters/government choices. • Those in Russia who want to purchase your IDEs cannot, because you have suspend sales there. This is a bad choice at the least, and an evil choice at the most. I can't wrap my head around why anyone would want to directly hurt citizens who have nothing to do with the war. Just average citizens who never even had a say on the government's matters, and you at JetBrains think it was cool to just let Russian citizens suffer. Disgusting. Shame on you and it's just sad that over the last couple of months no one here has the guts to call JetBrains out for this. They also suspended sales in Belarus? That's big-brain level confusion. Dislike this, whatever (this post may get deleted as well), I don't care, this is my opinion on the matter, and I think JB's decision (and other large companies that have followed suit) was ridiculous. This is not me shilling for Russia. I do not like Russia or Putin, they are a sh--ty, authoritarian regime that the citizens didn't even 'vote' in. I know only a minority of people here will agree with this, but I think we can all agree that citizens have nothing to do with the war. Period.
    i
    e
    +7
    • 10
    • 31
  • c

    Colton Idle

    07/07/2022, 3:02 AM
    I'm starting a new kotlin+android project. What settings should I have enabled in gradle.properties from your POV?
    t
    e
    • 3
    • 3
  • c

    Colton Idle

    07/07/2022, 2:59 PM
    Anyone good with regex? What is this actually splitting my string on?
    myCowboy.split("\\$")
    s
    e
    +3
    • 6
    • 18
  • m

    Mike

    07/07/2022, 10:28 PM
    Does anyone which library it is that supports dynamically generating the list of modules that are included for a project with multiple app modules? The end goal was only loading the necessary modules for the app that was being built to decrease Gradle configuration time, etc It was either a library or just a standalone Gradle plugin. I know I saw a repo or read a blog about this, but now I can't remember what it was called
    • 1
    • 1
  • j

    Jason5lee

    07/09/2022, 9:01 AM
    Scala may be going to have its own suspend function. https://contributors.scala-lang.org/t/pre-sip-suspended-functions-and-continuations/5801
    👍🏼 1
    😒low-parrot: 5
    👍 1
    y
    • 2
    • 1
  • j

    Jason5lee

    07/12/2022, 4:12 AM
    I hate Golang even more when its awful modeling appears in the language I love.
    t
    • 2
    • 2
  • u

    ursus

    07/14/2022, 9:41 PM
    Any AppCode users? Is there some AppCode version to swift version map?
  • n

    nuhkoca

    07/16/2022, 4:47 PM
    idk this is the right place to report a bug for emulator but I am having constant blinking with Pixel Pro 6. Anybody faced the same before?
    Screen Recording 2022-07-16 at 18.27.34.mov
    l
    • 2
    • 2
Powered by Linen
Title
n

nuhkoca

07/16/2022, 4:47 PM
idk this is the right place to report a bug for emulator but I am having constant blinking with Pixel Pro 6. Anybody faced the same before?
Screen Recording 2022-07-16 at 18.27.34.mov
l

louiscad

07/17/2022, 8:05 AM
The right place is heading to b.android.com, then searching for "emulator", then submitting an issue with an accurate title, a good and concise description, and attach your video 🙂
n

nuhkoca

07/18/2022, 7:35 PM
Sure, thank you!
View count: 1