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
intellij
  • l

    lukas.mega

    04/04/2018, 2:21 PM
    also scrolling VCS (git) Log is extremely slow
    👍 1
    • 1
    • 1
  • p

    poohbar

    04/04/2018, 2:22 PM
    debug evaluate window takes 30s to evaluate kotlin collections
    .map()
    on 1000 strings
    h
    • 2
    • 2
  • c

    christophsturm

    04/04/2018, 3:36 PM
    I’m not sure if this is a kotlin bug, but today idea stopped rebuilding changed files. I have to manually select rebuild all to get my changes compiled when i run a test
    a
    h
    l
    • 4
    • 7
  • z

    ziggy42

    04/05/2018, 8:42 AM
    Does anyone else have the problem that intellij always suggests to remove ` even when without them it doesn't compile?
    g
    s
    +2
    • 5
    • 7
  • d

    dharrigan

    04/09/2018, 8:52 AM
    Anyone here using intellij with i3?
    t
    • 2
    • 2
  • j

    Jurriaan Mous

    04/10/2018, 7:26 AM
    Ah yes thanks. Now it works. Was too focussed on after the null check.
    g
    • 2
    • 4
  • j

    Jurriaan Mous

    04/10/2018, 7:29 AM
    This warning was not present before the code was in a separate module. I guess it is an extra safeguard for implementation changes in modules by others which you expect the implementer knows when working in same module? Or is there an other reason?
    ➕ 2
    g
    • 2
    • 1
  • j

    jtravis

    04/18/2018, 10:31 PM
    I’ve just noticed that I’ve been having to restart IntelliJ frequently because it quickly eats up 3 gb of memory..
    c
    • 2
    • 1
  • c

    christophsturm

    04/19/2018, 7:38 PM
    the idea kotlin code formatter behaves really strange when i set it to “kotlin style guide” mode. it spreads statements to multiple lines even when they would fit into one line. for example this:
    print(
                    objectMapper.writeValueAsString(
                        Versioned(
                            participant
                        )
                    )
                )
    • 1
    • 2
  • v

    VincentD

    04/23/2018, 4:22 PM
    Hi there, is it possible to use Search Structurally with Kotlin? I don’t see it on file types (using Android Studio 3.1.1)
    c
    • 2
    • 3
  • i

    Ian

    04/23/2018, 10:14 PM
    Got a not-very-informative build error in my Kotlin project, I don’t think I’ve seen it before. Anyone have any ideas?
    Error:Module 'pentius-2017_main' production: java.lang.Exception: LOGGING: Loading modules: [<http://java.se|java.se>, javafx.base, javafx.controls, javafx.fxml, javafx.graphics, javafx.media, javafx.swing, javafx.web, jdk.accessibility, jdk.attach, jdk.compiler, jdk.dynalink, jdk.httpserver, jdk.incubator.httpclient, jdk.jartool, jdk.javadoc, jdk.jconsole, jdk.jdi, jdk.jfr, jdk.jshell, jdk.jsobject, jdk.management, jdk.management.cmm, jdk.management.jfr, jdk.management.resource, <http://jdk.net|jdk.net>, jdk.packager, jdk.packager.services, jdk.plugin.dom, jdk.scripting.nashorn, jdk.sctp, jdk.security.auth, jdk.security.jgss, jdk.unsupported, jdk.xml.dom, oracle.desktop, <http://oracle.net|oracle.net>, java.base, java.security.sasl, java.security.jgss, java.management, java.xml, java.scripting, java.logging, java.instrument, java.naming, java.management.rmi, java.rmi, java.xml.crypto, java.prefs, java.datatransfer, java.sql, java.desktop, java.compiler, java.sql.rowset, jdk.internal.jvmstat, jdk.management.agent, jdk.jdwp.agent, jdk.internal.ed, jdk.internal.opt, jdk.internal.le, jdk.jdeps, jdk.jlink] (no MessageCollector configured)
    Error:Module 'pentius-2017_main' production: java.lang.Exception: LOGGING: Loading modules: [<http://java.se|java.se>, javafx.base, javafx.controls, javafx.fxml, javafx.graphics, javafx.media, javafx.swing, javafx.web, jdk.accessibility, jdk.attach, jdk.compiler, jdk.dynalink, jdk.httpserver, jdk.incubator.httpclient, jdk.jartool, jdk.javadoc, jdk.jconsole, jdk.jdi, jdk.jfr, jdk.jshell, jdk.jsobject, jdk.management, jdk.management.cmm, jdk.management.jfr, jdk.management.resource, <http://jdk.net|jdk.net>, jdk.packager, jdk.packager.services, jdk.plugin.dom, jdk.scripting.nashorn, jdk.sctp, jdk.security.auth, jdk.security.jgss, jdk.unsupported, jdk.xml.dom, oracle.desktop, <http://oracle.net|oracle.net>, java.base, java.security.sasl, java.security.jgss, java.management, java.xml, java.scripting, java.logging, java.instrument, java.naming, java.management.rmi, java.rmi, java.xml.crypto, java.prefs, java.datatransfer, java.sql, java.desktop, java.compiler, java.sql.rowset, jdk.internal.jvmstat, jdk.management.agent, jdk.jdwp.agent, jdk.internal.ed, jdk.internal.opt, jdk.internal.le, jdk.jdeps, jdk.jlink] (no MessageCollector configured)
    c
    • 2
    • 1
  • a

    arekolek

    04/25/2018, 10:22 AM
    hmmm, maybe I found the solution, starting with kotlin 1.1.4 there's an option
    -Xjsr305-annotations=enable
    is that also the current state of affairs?
    c
    • 2
    • 1
  • r

    robstoll

    04/27/2018, 8:29 AM
    IntelliJ starts to annoy me more and more with a feature I don't want. When I refactor things (e.g. rename a method), it happens (not always) that it reformats parts of the code which used the method in some way. Is this a actually a feature I can turn of or should I file a bug? Just an example code might look like this afterwards:
    class A:
      B {
      fun foo()
        = 
        test()
    }
    where it looked as follows before
    class A: B {
      fun foo()
        = test()
    }
    c
    • 2
    • 5
  • m

    mp

    04/27/2018, 5:47 PM
    https://youtrack.jetbrains.com/issue/KT-23901 is pretty painful. Is there any timeline for when 1.2.41 will be released, or should I find some other workaround if it'll be a while?
    h
    • 2
    • 2
  • j

    jtonic

    04/29/2018, 5:43 PM
    Hi, Starting with kotlin 1.2.40 kotlin scratch can be run. This is great. Unfortunately I didn’t find a way to run the scratch file by shortcut. Moreover, I did not find a way to create a custom shortcut for Run Scratch File action - the green icon button in the scratch editor buttons bar. Moreover
    Run Scratch File
    is not included in the Run action - Cmd Shift A Thank you in advance for helping me with this.
    c
    • 2
    • 13
  • o

    Otek

    04/30/2018, 5:09 PM
    ty bro, i need read how extensions works in jvm
    g
    • 2
    • 2
  • r

    robstoll

    05/02/2018, 9:21 PM
    I came across the colour icon for "Marker annotation for DSL" but I do not really get what the colours do. I can change them as I want and nothing happens 🙂 Where do they show their effects?
    o
    • 2
    • 11
  • p

    pavlospt

    05/03/2018, 2:10 PM
    x-post in case someone knows https://kotlinlang.slack.com/archives/C0CMKCL87/p1525354811000739
    a
    • 2
    • 3
  • n

    napperley

    05/04/2018, 6:35 AM
    Is it possible to disable Gradle auto refresh in IntelliJ 2018 whenever changes are made to build.gradle.kts or settings.gradle.kts?
    s
    p
    • 3
    • 10
  • y

    ylemoigne

    05/08/2018, 2:46 AM
    Does anyone kown if there a way to configure the task that idea use when we delegate build to gradle ? (sadly I have to delegate the build to circumvent an issue with kt multiplatform project in idea)
    c
    • 2
    • 2
  • o

    orangy

    05/11/2018, 2:39 PM
    Can you check that you don’t have a custom binding for F2 in a key map?
    p
    • 2
    • 1
  • r

    Robert Menke

    05/11/2018, 6:31 PM
    Has anyone here had trouble with the markdown plugin? It’s been super buggy for me and sometimes will not the .md files at all. I’ve had to invalidate cache & restart several times now. Any known workarounds other than uninstalling the plugin 🙂?
    k
    • 2
    • 3
  • c

    Carl Hickman

    05/12/2018, 8:40 PM
    Is there a command I can enter in the terminal to cause gradle to sync instead of using the mouse to click “sync now”?
    n
    • 2
    • 1
  • p

    Pere Casafont

    05/13/2018, 2:09 PM
    question: is there a special reason why the java->kotlin converter converts
    double x = 0
    into
    var x = 0.toDouble()
    instead of
    0.0
    ?
    o
    • 2
    • 1
  • c

    chi

    05/14/2018, 5:31 AM
    Can I ask/report an Android studio bug issue here?
    s
    • 2
    • 4
  • n

    natpryce

    05/14/2018, 4:13 PM
    Q: why does IntelliJ spend so much time “searching for compilable files…” when building Kotlin projects? This is after spending a lot of time indexing my project. And how do I get it to stop wasting time on this?
    i
    • 2
    • 1
  • r

    Robert Menke

    05/15/2018, 2:29 PM
    Anybody have any dark-themed kotlin color schemes they really like?
    c
    b
    • 3
    • 7
  • i

    Ian

    05/18/2018, 2:57 PM
    Not Kotlin specific, but I’ve installed 2018.2 EAP on my MacBook Pro with touch bar, but the touch bar doesn’t change when IntelliJ gets focus (it just remains the generic desktop touch bar icons). Do I need to take any other action to activate the touch bar support?
    g
    c
    m
    • 4
    • 3
  • n

    napperley

    05/20/2018, 10:38 PM
    Is there a way to get the Outdated Kotlin Runtime message disabled? Have a Kotlin JVM project using Gradle (via Kotlin DSL) and the message only appears when using buildSrc (via Kotlin DSL plugin which uses an embedded version of Kotlin - 1.2.31). The main build script (not the one in buildSrc) uses Kotlin 1.2.41 (the latest stable version).
    i
    • 2
    • 1
  • k

    karelpeeters

    05/24/2018, 2:48 PM
    Are you talking about git?
    k
    • 2
    • 1
Powered by Linen
Title
k

karelpeeters

05/24/2018, 2:48 PM
Are you talking about git?
k

kartikpatodi

05/24/2018, 9:36 PM
yes
View count: 2