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

    basedtho

    02/16/2020, 10:01 AM
    what do i do? idea 2019.3.2, kotlin 1.3.61-release-180, JRE 13.0.2+8
    a
    • 2
    • 1
  • p

    poohbar

    02/16/2020, 1:06 PM
    @Alexey Belkov [JB] On 2019.3.3 still getting multi-tens of seconds freezes upon copying Kotlin code into clipboard. That plus a myriad of other performance issues. https://youtrack.jetbrains.com/issue/KT-32158#focus=streamItem-27-3946387.0-0
    ➕ 6
    👀 1
    a
    • 2
    • 1
  • t

    tapchicoma

    02/18/2020, 9:44 PM
    maybe someone knows where I could find all IDEA
    .editorconfig
    options for kotlin? Those that have
    ij_kotlin
    prefix.
    s
    • 2
    • 10
  • a

    addamsson

    02/20/2020, 7:59 PM
    I'm trying to work with a library class in IDEA and I've bumped into a very weird problem with a MPP project. I try to use the class and IDEA doesn't discover any methods on it. If I choose
    assign to local variable
    it tries to cast it into itself (???):
    Property<Boolean> selectedProperty = (Property<Boolean>) check1.getSelectedProperty();
    and signals a compile error:
    inconvertible types, cannot cast Property<Boolean>  to Property<Boolean>
    If I compile my code form the CLI it works fine, but within IDEA it is a compile error. What am I doing wrong? I'm trying to use a Kotlin MPP class in my Java code.
    l
    • 2
    • 6
  • p

    pablisco

    02/23/2020, 4:42 PM
    I am doing some tests for a gradle plugin. I have a bunch of
    kts
    files that are used for testing. However, the IDE is picking them up as if they were part of the build and therefore they don't compile and give a bunch of errors. Is it possible to stop IntelliJ from compiling the given script? I imagine this also happens if a module is not part of the build script graph but has compilation errors.
    l
    • 2
    • 1
  • k

    Kavan

    02/27/2020, 11:52 AM
    Why IDEA showing "Unable to get Gradle home directory" when I use build.gradle.kts ?
    m
    a
    • 3
    • 4
  • f

    Fleshgrinder

    02/27/2020, 12:59 PM
    IntelliJ does not support
    -Xfriend-paths
    , still complains about visibility issues and requires explicit
    @Suppress
    despite
    kotlinc
    compiling everything as expected. Where would one report a bug for this in YouTrack? Kotlin or IntelliJ?
    c
    r
    • 3
    • 2
  • o

    Orhan Tozan

    02/29/2020, 3:34 PM
    In Intellij IDEA, given I have a project with 4 modules. Is the project itself also considered a module?
    t
    • 2
    • 1
  • p

    pavel

    03/03/2020, 10:35 PM
    actually, it at least does something in one of my projects
    m
    • 2
    • 2
  • n

    napperley

    03/03/2020, 10:39 PM
    Updated the Kotlin plugin, and found that code completion in a Kotlin Native project using a C library (statically linked) no longer works.
    • 1
    • 3
  • v

    vineethraj49

    03/04/2020, 5:23 AM
    Is there any way for intellij to warn about the following:
    fun main() {
        val qq = mutableMapOf<String, String>()
        // ...
        qq["abc"] to "def" // warn here?
        // ...
        println(qq) // prints {}
    }
    c
    • 2
    • 1
  • j

    Jakub Pi

    03/04/2020, 5:45 PM
    My list of autocomplete suggestions when I hit Ctrl-Spacebar keeps refreshing (and rebuilding the list) once per second making it impossible to select anything. Known issue? I'm using kapt, possibly related.
    👀 1
    a
    • 2
    • 3
  • n

    napperley

    03/04/2020, 10:51 PM
    Syntax highlighting, and code completion fails when using Kotlin 1.3.61 in a Kotlin Native project, but works fine if Kotlin 1.3.70 is used instead. Using the Kotlin 1.3.70 IntelliJ plugin.
    d
    j
    a
    • 4
    • 7
  • l

    Lex Luthor

    03/05/2020, 5:52 AM
    After upgrading Kotlin plugin to 1.3.70, the IDE automatically creates empty
    java
    folders in my project layout.. In my plugins section I have configured the following plugins:
    `maven-publish`
        eclipse
        idea
        jacoco
        pmd
    
        kotlin("jvm")
        kotlin("kapt")
        kotlin("plugin.allopen")
        kotlin("plugin.noarg")
        kotlin("plugin.spring")
    
        id("org.jetbrains.dokka")
        id("org.springframework.boot")
    a
    m
    m
    • 4
    • 6
  • d

    damian

    03/05/2020, 3:59 PM
    Anyone notice on 1.3.70 that their keystrokes are sometimes eaten whenever the parameter list popup is showing (Cmd+P)? It seems to be worse the more parameters that a function has 🤔 Maybe an issue has already been filed about this?
    m
    g
    +2
    • 5
    • 11
  • a

    addamsson

    03/06/2020, 9:34 AM
    I've upgraded IDEA to this version:
    IntelliJ IDEA 2019.3.3 (Ultimate Edition)
    Build #IU-193.6494.35, built on February 11, 2020
    and ever since that upgrade IDEA refuses to recompile my code when I make changes. What happens is that I have a
    main
    function and when I run it with clicking the green triangle it starts the app, but the changes I made aren't visible. I didn't change any of the settings I just did an upgrade to
    2019.3
    . I have a tick next to
    Build project automatically
    . What am I doing wrong? I have the
    Build
    in the
    Before Launch
    section as well:
    i
    • 2
    • 3
  • b

    Ben Madore

    03/09/2020, 10:17 PM
    has anyone seen this before?
    Error:must be run under DaemonProgressIndicator, but got: : class com.intellij.openapi.progress.impl.BackgroundableProcessIndicator: Build 1205242462: running=true; canceled=false; task=com.intellij.compiler.progress.CompilerTask@4fa50bd0
    a
    • 2
    • 2
  • p

    Pablichjenkov

    03/10/2020, 4:34 PM
    On Android Studio 3.6, the last tab(most to the right tab) in the tab bar does not show the closing cross when hover on it. Is it by design?
    a
    • 2
    • 2
  • k

    Kavan

    03/14/2020, 9:10 PM
    could not determined the dependencies of task ':compileKotlinMetadata'.
    > Could not resolve all files for configuration ':kotlinCompilerClasspath'.
    > Cannot resolve external dependency org.jetbrains.kotlin:kotlin-compiler-embeddable:1.4.0-dev-4220 because no repositories are defined.
    Required by:
    project :
    How to solve this ??
    f
    a
    • 3
    • 3
  • n

    napperley

    03/18/2020, 12:41 AM
    Keep on getting warnings showing up in IntelliJ about the OptIn annotations. I have inserted the all block into the build.gradle.kts file:
    all {
                languageSettings.useExperimentalAnnotation("kotlin.time.ExperimentalTime")
                languageSettings.useExperimentalAnnotation("kotlinx.serialization.UnstableDefault")
            }
    Unfortunately this doesn't make the warnings disappear. Is there another way to make the warnings disappear for a Kotlin Multiplatform project?
    a
    s
    • 3
    • 2
  • j

    Jakub Pi

    03/18/2020, 3:33 AM
    I'm getting a compiler error, the Kotlin plugin is also struggling to syntax highlight.
    sealed class Permit<K> {
    
        companion object {
            operator fun <K> invoke(lookup : K, permission : Permissions) = FailedPermit(lookup, permission)
        }
    
        class FailedPermit<K>(val lookup : K, val permission : Permissions) : Permit<K>()
    
        fun orElse(closure : (K, Permissions) -> Unit) = when (this) {         //Dies on this line
            is FailedPermit -> closure(lookup, permission)
            else -> {}
        }
    }
    I've trimmed the code to just the necessary bits. Permissions is just a simple enum class.
    d
    a
    • 3
    • 4
  • k

    Kirill Zhukov

    03/18/2020, 5:32 AM
    Is there a difference between file-based (legacy) project format and directory-based (preferred) project format in terms of IDE performance/efficiency?
    a
    • 2
    • 2
  • o

    Orhan Tozan

    03/18/2020, 8:01 PM
    How do I stop Intellij IDEA making the generic type greyed out? ("remove explicit type" warning)
    s
    • 2
    • 7
  • c

    cavega

    03/19/2020, 6:09 PM
    Not sure if this has been asked before, but are there any plans to support Code Arrangement for the code style formatting? Going through the code style guidelines I noticed that, for example, it is recommended to have companion objects at the bottom of the class. The current Kotlin plugin does not re-arrange any properties or methods to match the style akin to what the IDE does for the Java language.
    a
    • 2
    • 3
  • p

    pajatopmr

    03/20/2020, 3:15 PM
    Not sure if this is the best place to start this thread on merging IntelliJ keymaps but I'm sure someone will let me know of a better place should there be one.
    s
    • 2
    • 3
  • j

    Jakub Pi

    03/20/2020, 9:32 PM
    There are still a lot of common packages (like Netty) that give warnings when used with Java 11 and Kotlin.. Mostly module warnings, but I've run into more serious problems as well. What's the recommendation? Is it best to download and run against Java 8 as an external JDK? Will that cause other problems?
    p
    • 2
    • 2
  • p

    Pere Casafont

    03/21/2020, 6:41 AM
    😮
    w
    • 2
    • 2
  • o

    Orhan Tozan

    03/22/2020, 11:06 AM
    Intellij has a High-contrast appearance option, but it's white text on dark background (dark theme). Is there support for high contrast on black on white (light theme)?
    m
    • 2
    • 1
  • s

    Sinan Kozak

    03/24/2020, 10:25 AM
    Is here right place to ask future of a ticket about formatter? https://youtrack.jetbrains.com/issue/KT-24750 Or if I want to fix it and open a PR, where is formatter plugin?
    a
    • 2
    • 5
  • l

    LastExceed

    03/24/2020, 11:08 AM
    does intellij have a function for sorting selected lines alphabetically?
    w
    s
    • 3
    • 3
Powered by Linen
Title
l

LastExceed

03/24/2020, 11:08 AM
does intellij have a function for sorting selected lines alphabetically?
w

wasyl

03/24/2020, 11:33 AM
If you don’t find it, then I highly recommend https://plugins.jetbrains.com/plugin/2162-string-manipulation/
➕ 1
l

LastExceed

03/24/2020, 11:35 AM
great plugin, thanks!
s

Sinan Kozak

03/24/2020, 11:43 AM
Cmd shift a and search for sort lines
💯 1
View count: 5