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

    Starr

    01/10/2023, 12:26 PM
    how are you adding the
    functionalTest
    source set? idk if IJ detects whether it depends on
    test
    or whatever you can use
    Mark As > Test Sources
    in the UI but that wouldn't persist
    r
    j
    e
    • 4
    • 13
  • m

    Manuel Dossinger

    01/13/2023, 7:25 AM
    Any idea, when the kotlin plugin for 1.8.0 lands?
    e
    k
    • 3
    • 9
  • m

    mkrussel

    01/13/2023, 1:21 PM
    I've been playing with the new UI for Intellij, and I like it for the most part. What I'm having the most problems with is the drop down menu to select the run configuration on the toolbar. With the old UI it showed all your saved ones in the order you had in the edit configuration menu, and a small history of non saved configurations. Now the list is a list of most recently used ones and they are sorted by when they were recently used. This makes it hard to find what you want since you cannot just skip to where you know it is at and if the configuration you want is not in the recently used, you have open the edit configurations dialog to pick it. Is there any option to enable the old behavior for this?
  • s

    sindrenm

    01/19/2023, 12:44 PM
    Using Kotlin 1.8, IDEA is telling me that I can change an
    object
    with a
    data object
    . However, this doesn't compile, as it's only available since 1.9. Is this known?
    ClubProfileViewModel.kt:37:5 The feature "data objects" is only available since language version 1.9
    a
    • 2
    • 2
  • d

    darkmoon_uk

    01/20/2023, 4:35 AM
    Any clues when IntelliJ 2023.1 EAP 1 will be available?
    k
    • 2
    • 3
  • r

    robstoll

    01/20/2023, 1:28 PM
    I recently get a lot of complains about non exhaustive
    when
    for sealed interface even though all cases are covered. Is there already a corresponding ticket or should I create one. btw. if I use
    add remaining branches
    then adds all which have already been added and intellij then complains that those cases are never reached but the
    when
    still complains that it is not exhaustive, using
    add remaining branches
    again just duplicates the cases again :D
    a
    • 2
    • 2
  • v

    v79

    01/21/2023, 8:22 PM
    If you have several tab groups (say, a left group and a right group), is it possible to "minimise" or otherwise temporarily hide a group? So you can focus on just one for a while without closing the other group completely? For now I'm just dragging the divider to make the other group as narrow as possible.
    a
    • 2
    • 4
  • j

    Javier

    01/25/2023, 9:43 AM
    Do anyone remember the name of the action to set value/keys for "hidden" settings like showing the force push button in the commit dialog and so on? I don't remember even the letter it starts 😞
    a
    • 2
    • 4
  • p

    Pablichjenkov

    01/25/2023, 7:46 PM
    Suggestion: Can IJ make the default closing policy / tab limit 50 instead of 10. Will save me some seconds looking it up online, every installation.
    h
    • 2
    • 3
  • j

    Javier

    01/26/2023, 10:46 AM
    How can I say IntelliJ that a Kotlin test inside a Kotlin source set should accept a valid convention for the function name? Probably the same reply to my previous question a few weeks ago: https://kotlinlang.slack.com/archives/C0B8H786P/p1673353267405809 I think KGP should provide a way to indicate if a source set is "normal" or "test" in order to avoid having a complex configuration. Additionally, maybe the future
    compilations
    approach can automatically fix this kind of issues as it uses
    testRuns
    ?
    val integrationTest by compilations.creating
    testRuns.create(integrationTest.name) {
        setExecutionSourceFrom(integrationTest)
    }
  • d

    dead.fish

    01/27/2023, 7:58 AM
    Hi all! This is not a Kotlin-specific question per-sé, but I was recently looking into custom scopes in IJ / AS to filter out generated sources from the quick search dialog. However, I did not succeed finding a working pattern that would exclude generated build sources for real, they’d still show up. I tried
    !file:build//*
    ,
    !file:*/build//*
    and various others, like documented here: https://www.jetbrains.com/help/idea/scope-language-syntax-reference.html#create-scope-from-existing-scopes. What am I doing wrong?
    w
    • 2
    • 2
  • l

    Laurent Laborde

    01/29/2023, 4:22 PM
    when converting java file to kotlin file, intellij is automagically converting java method getSomething(), setSomething(), isSomething() to a var something. While it may be a good idea in theory for trivial code, it can create a lot of problem and there is a cascade of inheritance, abstract class, overriding, a mix of java and kotlin class. i tried my best for a while but now i have tons of “Inherited platform declaration clash” with a mix of var and fun/method and abstract and override ... is there a way to tell intellij to stop changing all the get/set method to a var, and keep them as a get/set fun instead ?
    c
    a
    • 3
    • 10
  • r

    rkeazor

    02/01/2023, 3:55 PM
    Hey what's the time line for Intelij Idea , to update the Android Support Plugin, Electric Eel, the latest stable version
    h
    • 2
    • 1
  • r

    Ruben Holen

    02/07/2023, 2:08 PM
    Does anyone else experience that Android Studio sometimes just stops taking keyboard inputs, like not showing the caret and ignoring keybinds? I'm on a mac M1 and it's been happening on and off for several versions now
    s
    • 2
    • 1
  • r

    Ruben Holen

    02/07/2023, 2:08 PM
    I have to alt-tab or cmd-space to refocus the ui so it starts working again
  • j

    Justin Tuchek

    02/08/2023, 5:17 PM
    Hey 👋 This is probably a naive question - and not really sure of the most correct place to ask We just completed our migrations to support the use of Android Studio Electric Eel. Initial performance gains on IDE sync are phenomenal Square has a very representative and detailed accounting here https://developer.squareup.com/blog/celebrating-the-release-of-android-studio-electric-eel/ I was just wondering if parallel project import is already a thing for IJ, upcoming, or not relevant Tried digging through a few change logs but didn't find it quickly. We surely have some big non-Android projects in our company and would love to encourage them all to update if there are or will be similar gains
    j
    e
    • 3
    • 3
  • w

    wasyl

    02/10/2023, 11:41 AM
    Wondering if https://youtrack.jetbrains.com/issue/IDEA-86700/Diff-view-should-prefer-addition-of-complete-code-blocks will ever get some traction. What’s particularly jarring is that
    git diff
    in terminal shows much more useful diff than IJ, even though it’s much easier to revert chunks in IJ 😕 Is there an option to use the diff generated by local
    git
    installation?
    c
    m
    • 3
    • 11
  • m

    mbonnin

    02/10/2023, 8:36 PM
    For the last few days, IntelliJ EAP has been very slow, sometimes even wrong at loading filesystem changes: • shows me the wrong branch when switching from the cli and then going back in IDE • more generally git status is not synced • files take a lot of time to save to disk so running gradle from the CLI wouldn't pick up the changes made in the IDE • Frequent "keep in-memory changes?" dialog I thought about some inotify leak somewhere but rebooting my mac didn't help. Has anyone seen this before?
    t
    e
    • 3
    • 4
  • s

    Sam

    02/14/2023, 10:05 AM
    Is there any way to make the
    @sample
    documentation links in the stdlib not be broken in IntelliJ? They show as clickable, but clicking them just shows an error.
    k
    • 2
    • 3
  • e

    Eugen Martynov

    02/17/2023, 4:47 PM
    How to work with kotlin script in IDE. I have python project and I want to write a quick kotlin script. I created kts file. But no autocompletion or import works.
    m
    • 2
    • 9
  • m

    Marcello Galhardo

    02/20/2023, 3:24 PM
    Not sure if the right place: I'm trying to use the new IDEA UI and I don't know how to find the right-bottom git quick access (that let you clone branches, and switch between them, show your current branch, etc). Is there a way to put it back? 🙃
    c
    b
    • 3
    • 3
  • r

    robstoll

    02/21/2023, 11:32 AM
    I was playing around with multiple type parameters as upper bounds (using
    @Suppress("BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER" /* we don't care about java compatibility, hence OK*/)
    to suppress the warning. Unfortunately it is not supported that well (which is not a surprise) and intellij sometimes reports rubbish or does not detect type errors. Should I open issues for this?
    a
    • 2
    • 1
  • d

    David Griffiths

    02/22/2023, 9:03 AM
    Hi, I’m trying to get remote debugging working with IntelliJ connecting via JDWP to a remote Kotlin process. It seems to work apart from one feature: the Coroutines tab. By examining what IntelliJ does in local mode I figured that maybe I needed to run with
    -javaagent:[...]/kotlinx-coroutines-core-jvm-1.6.4.jar
    and very occasionally I have seen the Coroutines tab appear but it is intermittent and most runs I don’t see it. This is with version
    221-1.8.10-release-430-IJ5591.52
    of the plugin. Also I can’t see any documentation for this way of working so maybe it is not officially supported? (I have “Disable coroutine agent” unchecked by the way)
  • s

    simon.vergauwen

    02/22/2023, 9:06 AM
    Is there a way to automate
    ReplaceWith
    ? To execute several of them in a specific order? Not sure if IntelliJ is the right place for this, but perhaps the idea CLI could offer a solution here? 🤔
  • a

    Adrian Witaszak

    02/24/2023, 5:46 PM
    Is there a way of hiding the top bar in the Zen/Distraction-free mode in the new UI? Any flag in the Registry that can be flicked on/off?
  • a

    Adrian Witaszak

    02/24/2023, 5:55 PM
    CleanShot 2023-02-24 at 17.54.27@2x.png
    • 1
    • 1
  • s

    sindrenm

    02/27/2023, 2:54 PM
    Is there an .editorconfig equivalent of the Code Style → Kotlin → Packages to Use Import with '*' setting? Setting it and then exporting to .editorconfig puts the newly set value to the
    ij_kotlin_packages_to_use_import_on_demand
    config, but setting that value does not seem to have the same effect as the IDEA setting.
    • 1
    • 1
  • m

    mbonnin

    03/01/2023, 2:40 PM
    Can intelliJ detect the JVM toolchain/target version of some file based on Gradle configuration?
    Thread.id
    is deprecated in Java 19 (which is my JAVA_HOME). But I'm compiling with
    jvmTarget = "1.8"
    so it shouldn't be a warning?
    r
    s
    • 3
    • 11
  • f

    Francis Reynders

    03/05/2023, 9:24 AM
    Hi! I'm trying to view Kotlin sources by using the Go To Implementation navigation. I'm directed to the
    expect fun
    rather than the JVM implementation, with no way to navigate to actual implemenations. I tried upgrading to 2023.1-Beta but same issues. Any idea on how to accomplish that?
    a
    • 2
    • 5
  • e

    elect

    03/06/2023, 10:46 AM
    one thing I miss in Intellij, while debugging, is the return value of a function. VS shows that in
    Locals
    window
    m
    • 2
    • 2
Powered by Linen
Title
e

elect

03/06/2023, 10:46 AM
one thing I miss in Intellij, while debugging, is the return value of a function. VS shows that in
Locals
window
m

mbonnin

03/06/2023, 10:56 AM
Maybe https://youtrack.jetbrains.com/issue/KTIJ-18342? But looks like this issue is specific about lambdas and your use case is more generic?
e

elect

03/06/2023, 10:56 AM
exactly
View count: 2