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

    Alexey Belkov [JB]

    05/06/2021, 11:06 AM
    Heads up: we have a critical regression in the parser in 1.5.0. https://youtrack.jetbrains.com/issue/KT-46455 OOM on parsing invalid code with string interpolation. It can lock up IDEA and eat all memory, so the process has to be killed manually. It can happen during typing inside a function with a string interpolation expression, when the code is in inconsistent state (parser should report an error).
    🙇 2
    c
    • 2
    • 2
  • c

    Cyril Find

    05/06/2021, 1:22 PM
    Hi 👋 I'm getting a lot of weird warnings and errors on Canary (on 15 now but it's been a while) in a java module but it compiles and runs without any problem so I have no idea what to do ?
    r
    n
    • 3
    • 4
  • e

    Emil Kantis

    05/07/2021, 11:22 AM
    Since updating Kotlin plugin to 1.5.0 yesterday, I've had 5 cases of IntelliJ hanging. I saw in some log that IntelliJ blames the kotlin plugin but I don't remember where.. Is this a known issue and are there any known ways to mitigate the problem?
    c
    • 2
    • 2
  • m

    mbonnin

    05/09/2021, 10:11 PM
    What could be the reason IntelliJ 2020.3 does not offer the option to update the Kotlin plugin to
    1.5.0
    (or even
    1.4.32
    actually) ?
    c
    • 2
    • 7
  • c

    christophsturm

    05/12/2021, 8:32 AM
    i really wonder why the 1.5.0 kotlin plugin was not pulled. instead there are now a lot of duplicates for a bug that freezes the IDE and loses recent changes.
    ➕ 3
    a
    a
    c
    • 4
    • 3
  • l

    LastExceed

    05/15/2021, 9:49 AM
    why is
    foo
    being printed here even though x is overriden ? edit: oops wrong channel
    Untitled.cpp
    d
    u
    e
    • 4
    • 7
  • r

    robstoll

    05/19/2021, 8:45 PM
    The last couple of weeks, whenever I start Intellij I see a lot of code which is underlined and the only thing which helped so far is to invalidate cache & restart. So I basically do this every morning. Are others experiencing this as well? Is it a known bug and maybe a workaround better than invalidating the cache is available?
    c
    • 2
    • 6
  • c

    christophsturm

    05/27/2021, 10:14 AM
    can i get someone to look at this bug report? https://youtrack.jetbrains.com/issue/KTIJ-14264
    ➕ 1
    m
    w
    • 3
    • 2
  • o

    okarm

    06/01/2021, 11:57 AM
    What is the name of the following key binding: double CTRL (HOLD PRESSED) + UP/DOWN ? It’s the vertical caret extension. The following keymap does not list it: https://www.jetbrains.com/help/idea/reference-keymap-win-default.html I’m looking for the MACOS keymap equivalent of the abovementioned.
    w
    • 2
    • 2
  • i

    Ian

    06/02/2021, 12:47 PM
    I just updated to 2021.1.2 Ultimate on Windows but am now getting the following error in the IDE on a MySql database connection (over SSH):
    [08S01]
    	Communications link failure
    
    	The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate).
    Anyone have any ideas what it could be?
    • 1
    • 1
  • g

    glenkpeterson

    06/04/2021, 8:40 PM
    In Editor -> Code Style -> Kotlin, why isn't there an "Align when multiline" option for Chained Function Calls? There is "Wrap first call," which doesn't seem to do anything.
    foo.toUpperCase()
        .trim()
        .length
    Then "Use continuation indent" which just indents one more unit:
    foo.toUpperCase()
            .trim()
            .length
    Why not "Align when multiline" so the dots line up all pretty?
    foo.toUpperCase()
       .trim()
       .length
    e
    • 2
    • 2
  • d

    dave08

    06/06/2021, 9:24 AM
    Is it a known issue that the Gradle pane in Android Studio doesn't show gradle tasks, only dependencies? I tried invaldating caches, etc... but when I run the ./gradlew ... it has all the tasks... 😕
    j
    c
    • 3
    • 5
  • a

    addamsson

    06/08/2021, 1:56 PM
    How can I see the sources of the Kotlin stdlib in idea? No matter what I do and which jar I try to attach I still see /* compiled code */ in the implementations. Download sources doesn't work it doesn't to anything. What can I do? This is how it looks like:
    ➕ 1
    f
    a
    • 3
    • 6
  • n

    Nikolay Kasyanov

    06/09/2021, 8:16 AM
    is it a known issue that there’s no “New -> Package” option in non-JVM/non-Android source sets? And if one uses “New -> Directory” and types “com.company.package…“, it will literally create a directory with this name, not a package directory tree.
    a
    u
    • 3
    • 8
  • j

    jeggy

    06/10/2021, 1:43 PM
    Has anyone else experienced that ktor run configurations are just auto created and if removed they will come back automatically
    a
    • 2
    • 3
  • c

    christophsturm

    06/10/2021, 3:14 PM
    there was a setting in idea to show type info in the editor near declarations. is that gone?
    a
    • 2
    • 5
  • c

    christophsturm

    06/11/2021, 7:31 AM
    are there any plans to bring kotlin 1.5.10 or 20-rc to the idea eap?
    👍 1
    u
    a
    • 3
    • 5
  • n

    napperley

    06/13/2021, 10:01 PM
    Keep on getting the same issues revolving around invalid Kotlin Multiplatform errors appearing, and the common module still isn't being recognised. Updating from Kotlin 1.4.31 to 1.5.10 doesn't resolve the issues. Here is a link to the project: https://gitlab.com/gui-vista/samples/kpad
    a
    • 2
    • 2
  • g

    glenkpeterson

    06/14/2021, 10:38 PM
    I just configured IntelliJ to enforce the Kotlin style as detailed here: https://kotlinlang.org/docs/coding-conventions.html#configure-style-in-ide Maybe it's my history with C/C++, Scala, operator precedence, operator overloading, but I think it's important to: • Make the not-sign visible and • Not assume the reader has memorized the precedence table I normally do that with an extra space and some parenthesis like so:
    if ( !parts.hasGroup ||
         (parts.groupId != group.id) ) {
    But Kotlin/IntelliJ Style Inspection wants me to write, which obscures the "not" and the parenthesis:
    if (!parts.hasGroup ||
        (parts.groupId != group.id)) {
    Or maybe:
    if (
            !parts.hasGroup ||
            (parts.groupId != group.id)
    ) {
    Which is huge, but readable. I guess I don't think this if condition deserves so much emphasis compared to the code it contains. I'd like to be able to write the first without error, or understand why my spaces are bad here.
    m
    r
    • 3
    • 2
  • s

    spand

    06/15/2021, 11:49 AM
    IDEA has problems finding a couple classes for auto completion and refactorings. It compiles fine though (via delegation to gradle). I assume the indexes are bad but can I clear them for a single project only ? Rebuild project doesnt fix it.
    z
    • 2
    • 2
  • c

    christophsturm

    06/15/2021, 11:51 AM
    in one of my source files when i add a serializable annotations to a class instead of offering an auto import idea shows this:
    a
    • 2
    • 3
  • j

    jeggy

    06/16/2021, 1:34 PM
    I'm trying to setup my Kotlin project to run in WSL, but I just get this error and have no clue on how to fix it.
    c
    • 2
    • 23
  • j

    Javier

    06/16/2021, 8:18 PM
    Is there a place to check what is the compatible version of AGP and IntelliJ?
    m
    • 2
    • 6
  • m

    mcpiroman

    06/17/2021, 1:34 PM
    Working with the Kotlin repo itself in the intellij. Importing gradle fails with
    Unexpected state for resolution: Unknown
    error for every gradle project. The resulting error message is
    Could not resolve all dependencies for configuration ':allopen-ide-plugin:compileClasspath'
    but I guess that's because it's the first project. When I do
    Refresh gradle dependencies
    on the root (
    kotlin
    ) project, the gradle model builds, but is not imported. But when I then
    Reload Gradle Project
    the circle repeats, see line 2. The thing is, when I execute
    gradlew assemble
    in the shell, for example, everything builds fine. Hence I do not post this at #gradle I thing this is related to kotlin, either the intelij/gradle plugin or the project itself. I apologize if this is not the correct place to ask though.
    a
    c
    • 3
    • 2
  • s

    Sourabh Rawat

    06/18/2021, 4:01 PM
    I am using WSL2, with project on wsl2 and idea on host On opening the project I get
    Unable to save settings: Failed to save settings. Please restart IntelliJ IDEA
    Looking into logs, I see following
    Caused by: java.nio.file.AccessDeniedException: \\wsl$\Arch\home\dragneelfps\Dev\realworld-kotlin-ktor\.idea\workspace.xml -> \\wsl$\Arch\home\dragneelfps\Dev\realworld-kotlin-ktor\.idea\workspace.xml~
    Any help will be appreciated. Thanks in advance.
    a
    • 2
    • 2
  • s

    Sourabh Rawat

    06/19/2021, 2:09 PM
    Getting for OpenSuse 15.3 and Intellij EAP CE. Even if the
    ./gradlew build
    is working.
    c
    • 2
    • 1
  • c

    colintheshots

    06/21/2021, 3:07 PM
    I'm running the latest IntelliJ and it keeps re-syncing my Gradle changes before I can fix issues in my KMM project. I even turned off "Reload project after changes in the build script" and it still does it. How can I disable this so I can fix the issues before it syncs again?
    • 1
    • 1
  • w

    wasyl

    06/22/2021, 7:27 AM
    I have
    Use "camelHump" words
    options selected, so when I perform
    Extend selection
    action, the selection gets extended word by word. However, it’s not very convenient for those cases where I want to select an entire expression, for example when using multiple carets:
    val f<caret>oo = 2
    val f<caret>ooBar = 3
    Performing
    Extend selection
    here will select
    foo
    in both cases, performing it again will select entire
    val foo = 2
    in the first line, and
    fooBar
    in the second line. Doing the same but with
    Use "camelHump" words
    unchecked will select
    foo
    and
    fooBar
    respectively on the first
    Extend selection
    usage. Is there a shortcut or some other way to extend a selection as if the
    Use…
    option was off, but keep it on in general?
    f
    • 2
    • 2
  • g

    Gama11

    06/24/2021, 4:07 PM
    wtf? trying to update to kotlin plugin version 1.5.20, getting an error dialog that it failed because it downloaded 1.3.72?
    n
    • 2
    • 3
  • j

    Javier

    06/25/2021, 8:24 AM
    Why EAP is taking so long to update the Kotlin plugin?
    w
    c
    • 3
    • 3
Powered by Linen
Title
j

Javier

06/25/2021, 8:24 AM
Why EAP is taking so long to update the Kotlin plugin?
w

wasyl

06/25/2021, 8:25 AM
https://youtrack.jetbrains.com/issue/KTIJ-11624 https://youtrack.jetbrains.com/issue/KTIJ-18848
👀 2
:thank-you: 1
Well, there’s no reason given 😄 But it’s a known issue 😕
😢 1
c

christophsturm

06/25/2021, 11:50 AM
going by the last 2 eap cycles the first version with up to date kotlin will be the final release
View count: 2