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

    gsala

    11/27/2019, 9:48 AM
    I can't update the Kotlin plugin to the latest release for some reason. In the Marketplace it shows i have the latest installed, in the Installed tab it shows I still have 1.3.50. Has anyone else run into this issue?
    a
    • 2
    • 4
  • e

    Emerson Farrugia

    11/27/2019, 3:45 PM
    Hi. I'm having trouble understanding when the Create extra commit with .java -> .kt file rename checkbox is supposed to appear. I just committed two files, a
    foo.java
    deletion and
    foo.kt
    creation that resulted from the Convert Java file to Kotlin file action, with some ostensibly simple updates to
    foo.kt
    and the checkbox wasn't there, and history was lost on the commit. Whereas I have other commits containing more than just the conversion and the checkbox was there as the extra rename commit was created. Is there something deterministic I should be looking for?
    m
    a
    • 3
    • 4
  • g

    Greg Stepniewski

    11/29/2019, 9:48 AM
    Is it possible to disable the 30 second timeout for scratch files and worksheets ?
    a
    • 2
    • 1
  • c

    caffeine

    12/02/2019, 1:26 AM
    Hello. I try to create plugin. I created custom editor for non-text format. How I can use embedded redo and undo functions? And second question: when I must save my operation data into disk? Does IDE send some event for save data into disk?
    m
    a
    • 3
    • 2
  • p

    poohbar

    12/03/2019, 3:52 PM
    Was so hopeful for the new 2019.3 to fix the performance issues I have in Kotlin files. Nope. Still takes 20 seconds to reformat a simple Kotlin file. 👏 The performance tickets I have opened and submitted including CPU snapshots are still unresolved.
    ➕ 6
    💯 6
    w
    b
    c
    • 4
    • 4
  • p

    poohbar

    12/03/2019, 4:58 PM
    I now see IntelliJ performance as the largest blocker to wider Kotlin adoption.
    n
    • 2
    • 1
  • b

    bjonnh

    12/04/2019, 12:19 AM
    multiple-screen on linux is broken for years now
    n
    • 2
    • 9
  • j

    jdemeulenaere

    12/05/2019, 10:50 AM
    Andrey showed that the IDE was much faster now to provide completions. I am very interested on how this performance improvement was reached as I am experimenting with the (incremental) compiler. Can any of the developer who worked on this link a few commits that allowed such improvements ? Thanks a lot 🙂
    a
    p
    +4
    • 7
    • 12
  • n

    nwh

    12/05/2019, 10:22 PM
    How can I control these new scope hints in Kotlin code?
    k
    • 2
    • 1
  • c

    Czar

    12/08/2019, 2:32 PM
    is there a way to change background color of the
    Ctrl+P
    parameter hint tooltips?
    v
    • 2
    • 10
  • p

    pniederw

    12/09/2019, 4:55 AM
    how is intellij/kotlin performing for other folks? I've had severe performance issues in medium-sized projects for as long as I can think. fluent coding is impossible.
    ➕ 2
    j
    c
    +3
    • 6
    • 6
  • m

    mikehearn

    12/09/2019, 12:22 PM
    I wonder if Java Jigsaw modules can improve performance, by reducing the scope of the code the IDE must consider during completion
    n
    • 2
    • 15
  • p

    Pacane

    12/09/2019, 8:49 PM
    is there something to tell the Java to Kotlin converter in Intellij that some fields are non-nullable, so that the converter doesn't make everything nullable by default? I tried adding some
    @NotNull
    annotations on fields/construction parameters, but the converter still makes everything nullable
    i
    • 2
    • 13
  • b

    bjonnh

    12/10/2019, 12:41 AM
    @poohbar https://blog.jetbrains.com/kotlin/2019/12/what-to-expect-in-kotlin-1-4-and-beyond/
    w
    d
    • 3
    • 3
  • d

    Dmitry Kandalov

    12/10/2019, 9:13 AM
    The main questions for me is how Kotlin IDE support ended up being so unbearably slow. Why there were no regressions to notice performance degradation? Even if the new compiler is super-fast and fixes IDE performance, what stops it from becoming super-slow again a year later 🤷‍♂️
    ☝️ 4
    a
    • 2
    • 1
  • p

    Paul Woitaschek

    12/10/2019, 11:25 AM
    Did someone manage to make the toolbox app larger? I really can't see it
    k
    t
    +2
    • 5
    • 9
  • m

    Max Raskin

    12/11/2019, 7:17 PM
    Hi, I'm using IntelliJ 2019.3 Ultimate, and am working on a Kotlin Multiplatform library targeted for iOS & Android, when I'm setting breakpoints in unit tests which I put in commonMain, and then trying to debug, the test executes but it doesn't stop on breakpoints. I'm using android sdk 29.0.2 with it. The gradle test task I'm trying to run is
    testDebugUnitTest
    . Has anybody encountered this issue and has a solution? Thanks
    k
    b
    • 3
    • 14
  • b

    Brendan Weinstein

    12/12/2019, 4:31 AM
    What's the best way to run an individual kotlin file as a jvm application from the command line using
    ./gradlew
    ? I have a few sandboxes where I separate out specific parts of a library I am trying by file. Each file has its own
    fun main(args: Array<String>)
    m
    • 2
    • 7
  • m

    muralimohan962

    12/12/2019, 8:24 AM
    Is there any shortcut to look at all the members especially functions of a class because class file is too big?
    e
    m
    • 3
    • 3
  • b

    bitkid

    12/12/2019, 2:23 PM
    how can i force idea that it doesn't run the tests with gradle? everytime i do a right click on a file and say run tests it starts gradle, but i want it to run with junit runner
    s
    s
    • 3
    • 3
  • b

    Brendan Weinstein

    12/12/2019, 9:25 PM
    I have a project for testing performance between a server application and a client application. I have a github repository with a folder for 'server' and a folder for 'client' at the top level. Is it possible to open an intellij project at this top-level where I can make configuration A to run the server application and configuration B to run the client application? I can find some QA answers from 2015 where the team discourages multiple projects in the same window. Is the guideline still to have multiple windows for multiple applications?
    m
    • 2
    • 3
  • n

    napperley

    12/17/2019, 12:30 AM
    Would be very useful for IntelliJ to have the ability to generate C callbacks in a Kotlin Native project. Lets say hypothetically these definitions exist in a Kotlin Native library:
    // ...
    interface ApplicationBase {
        // ...
        fun connectActivateSignal(slot: CPointer<CFunction<(app: CPointer<GApplication>, userData: gpointer) -> Unit>>,
                                  userData: gpointer): ULong =
            connectGtkSignal(obj = gAppPtr, signal = "activate", slot = slot, data = userData)
    }
    
    class Application(val id: String) : ApplicationBase {
        // ...
    }
    And a hypothetical Kotlin Native program is developed where a Kotliner starts typing in the following with the carrot positioned in the parenthesis:
    val app = Application("org.example.sampleapp")
    app.connectActivateSignal()
    a
    • 2
    • 3
  • v

    Vitali Plagov

    12/18/2019, 12:47 PM
    Hey! I have the following code:
    fun adminCancelCustomerLock() {
    		val admin = createAdmin()
    		openCustomerWithUser(admin)
    		customerPage.cancelLock()
    		customerPage.lockConfigurationBtn()
    		customerPage.lockBanner()
    	}
    When I put a caret on any of
    customerPage
    and hit Option+Enter -> Convert to run, then it transforms to:
    fun adminCancelCustomerLock() {
    		val admin = createAdmin()
    		openCustomerWithUser(admin)
    		customerPage.run {
    			openCustomerWithUser(admin)
    			cancelLock()
    			lockConfigurationBtn()
    			lockBanner()
    		}
    	}
    So, why it puts the
    openCustomerWithUser(admin)
    inside the
    run
    block if it wasn’t called on
    customerPage
    instance? A bug, perhaps?
    a
    • 2
    • 1
  • p

    Paul Woitaschek

    12/18/2019, 3:06 PM
    Is it somehow possible to let android studio remove additional blank lines? I'm using ktlint and every second commit fails because I have two consecutive spaces after my class and ktlint complains
    g
    a
    • 3
    • 15
  • p

    pniederw

    12/19/2019, 7:26 AM
    Is it intentional that error messages look like this?
    [REPEATED_MODIFIER] Repeated 'abstract'
    As a human, I find this quite ugly. I'd prefer:
    Duplicate modifier 'abstract'
    a
    • 2
    • 2
  • a

    addamsson

    12/25/2019, 2:40 PM
    Hi there! I'm using the Kotlin DSL with Gradle and a Kotlin multiplatform project in IntelliJ and I'm always struggling when I add new dependencies to my project. What is the right way to add new (Maven) dependencies? What happens is that whenever I add a new one and build the project from the CLI it works but I can't see the new dependency in the
    External Dependencies
    list in the Project sidebar in IntelliJ. What am I doing wrong? Even if I run
    gradle clean assemble
    from the IDE it still doesn't get updated.
    s
    a
    • 3
    • 15
  • p

    Paul Woitaschek

    12/26/2019, 9:58 AM
    What's that little check on the left?
    d
    • 2
    • 3
  • m

    msink

    12/27/2019, 7:19 AM
    Should IDEA 2019.3.1 work with development versions of Kotlin/Native? Currently 1.3.70-eap-42 works in Gradle command line just fine, but fails in IDEA:
    12:14	Incompatible Kotlin/Native libraries
    			There are 1 libraries from the Kotlin/Native 1.3.70-eap-42 distribution attached to the project: stdlib
    			These libraries were compiled with a newer Kotlin/Native compiler and can't be read in IDE. Please edit Gradle buildfile(s) to use Kotlin Gradle plugin version 1.3.61. Then re-import the project in IDE.
    
    12:14	Incompatible Kotlin/Native libraries
    			There are 7 libraries attached to the project that were compiled with a newer Kotlin/Native compiler and can't be read in IDE:
    			"builtin" at F:\work\.konan\kotlin-native-windows-1.3.70-eap-14002\klib\platform\mingw_x64\builtin
    			"gdiplus" at F:\work\.konan\kotlin-native-windows-1.3.70-eap-14002\klib\platform\mingw_x64\gdiplus
    			"iconv" at F:\work\.konan\kotlin-native-windows-1.3.70-eap-14002\klib\platform\mingw_x64\iconv
    			"opengl32" at F:\work\.konan\kotlin-native-windows-1.3.70-eap-14002\klib\platform\mingw_x64\opengl32
    			"posix" at F:\work\.konan\kotlin-native-windows-1.3.70-eap-14002\klib\platform\mingw_x64\posix
    			"windows" at F:\work\.konan\kotlin-native-windows-1.3.70-eap-14002\klib\platform\mingw_x64\windows
    			"zlib" at F:\work\.konan\kotlin-native-windows-1.3.70-eap-14002\klib\platform\mingw_x64\zlib
    			Please edit Gradle buildfile(s) to use Kotlin Gradle plugin version 1.3.61. Then rebuild the project and re-import it in IDE.
    a
    • 2
    • 3
  • p

    poohbar

    12/30/2019, 2:07 PM
    @Alexey Belkov [JB] Running a Kotlin unit test by clicking on the play button next to the test still runs all tests in the class instead of just the one test. I think this bug has already been reported and fixed for a short while. I am on 2019.3.1, MacOS and see this bug again.
    a
    • 2
    • 1
  • p

    poohbar

    12/30/2019, 3:58 PM
    New bug in 2019.3.1 is that the IDE completely lags when editing Kotlin code and becomes unresponsive. I gave it a few minutes and eventually had to kill it in Task Manager. 🤯
    d
    a
    • 3
    • 2
Powered by Linen
Title
p

poohbar

12/30/2019, 3:58 PM
New bug in 2019.3.1 is that the IDE completely lags when editing Kotlin code and becomes unresponsive. I gave it a few minutes and eventually had to kill it in Task Manager. 🤯
d

Dico

12/31/2019, 12:24 PM
I've experienced this months ago. Had to delete .idea directory to stop it happening
a

Alexey Belkov [JB]

01/14/2020, 2:26 PM
Can you please report this to http://kotl.in/issue with IDE logs attached (it should probably contain the threaddumps of the hanging process). Thanks.
View count: 1