https://kotlinlang.org logo
Join Slack
Channels
announcements
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
akkurate
alexa
algeria
algolialibraries
amper
amsterdam
android
android-architecture
android-databinding
androidgithubprojects
android-studio
androidthings
androidx
androidx-xprocessing
anime
anko
apollo-kotlin
appintro
appyx
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
aws-sdk
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
benchmarks
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chennai
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
competitivecoding
competitive-programming
compiler
compose
compose-android
compose-desktop
compose-destinations
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
confetti
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cup-presentations
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
dependency-injection
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effectivekotlin
effective-kotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
fleet
flow
flowmvi
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
fun-adaptive
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
gsoc-compose-multiplatform-storybook
gsoc-ij-gradle-plugin
gsoc-kmp-bazel
gsoc-kmp-bazel
gsoc-kmp-gemini-firebase
gsoc-kotlin-bom-bazel
gsoc-kotlin-lsp-project
gsoc-kotlin-openrewrite
gsoc-wasm-incremental-compilation
gui
hackathons
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hiring-french
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
j2k
jackson-kotlin
jadx
japanese
jasync-sql
javadevelopers
javafx
javalin
javascript
java-to-kotlin-refactoring
jdbi
jewel
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm
jvm-ir-backend-feedback
jxadapter
k2-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kilua
kinta
klaxon
klibs-io
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-contributors
komapper
kondor-json
kong
konsist
konsist-dev
kontent
kontributors
koog-agentic-framework
korau
kore
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlinacademy
kotlin-asia
kotlin-beam
kotlinbot
kotlin-by-example
kotlinconf
kotlin-csv
kotlin-data-storage
kotlindl
kotlinforbeginners
kotlin-foundation
kotlin-fuel
kotlingforbeginners
kotlin-in-action
kotlin-inject
kotlin-kinetics
kotlin-latam
kotlin-logging
kotlinlondon
kotlinmad
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlinprogrammers
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlinsu
kotlin-szeged
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlin-website
kotlinx-collections-immutable
kotlinx-datetime
kotlinx-files
kotlinx-html
kotlinx-rpc
kotools
kotrix
kotson
kotzilla-platform
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
kstatemachine
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
lincheck
linenbot
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
newname
new-zealand
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
olpaka
oolong
opensavvy
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
parameterize
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
power-assert
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
store
storyboard
storytale
strife-discord-lib
strikt
students
stuttgart
sudan
supabase-kt
swagger-gradle-codegen
swarm
sweden
swift-export
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
terpal
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
vilnius-kug
vim
vkug
vuejs
webassembly
web-mpp
webrtc
wimix_sentry
wwdc
zircon
Powered by
# intellij
  • i

    Isaac Udy

    06/18/2025, 6:07 AM
    Feeling quite frustrated at the moment; I'm using IntelliJ 2025.1.2 and I can't get the
    .idea
    folder to show up in the project files view. I can see it in Android Studio, if I open that instead, and even if I add a custom scope to the project it still won't show up in that custom scope. Does anyone know how to set this up? The new Kotlin Multiplatform plugin requires some .idea configuration to allow xcode run configurations to become visible, and it's very annoying needing to open the files externally to edit them.
    b
    c
    f
    • 4
    • 8
  • p

    PHondogo

    06/19/2025, 10:11 AM
    Copy code
    do {
        // some code here
        TODO()
    } while (true) // warning for unreachable code with suggestion to replace with 'while()'. It is unreachable but in this case i think it should be ok
    p
    m
    • 3
    • 3
  • e

    Edoardo Luppi

    06/19/2025, 10:19 AM
    https://blog.jetbrains.com/platform/2025/06/testing-a-fresh-look-for-jetbrains-ides/
    👍 4
    👍🏽 1
    b
    c
    +2
    • 5
    • 29
  • l

    loke

    06/20/2025, 2:25 PM
    I have a positive message. I'm happy to see that type-aware completion (i.e. the feature that is bound to control-shift-space by default) has finally been implemented in the latest EAP. Now, I have a question for everybody: During the time when it wasn't available, I was quite frustrated and stayed on K1 for quite a while because of it. When talking to JB about it, I learned that they implemented features based on their statistics, and implemented features that was used a lot first. That makes sense, but it seems weird to me that type-aware-completion was only used by a single-digit-percent of users. If people are not using it, then what do they use?
    👀 1
    b
    w
    c
    • 4
    • 21
  • h

    hho

    06/23/2025, 4:17 PM
    It seems I can't debug a
    .main.kts
    script in IntelliJ IDEA ... it runs, but no breakpoints ever trigger anything. Is that a known limitation? (2025.2 EAP with K2)
    v
    • 2
    • 2
  • b

    bod

    06/24/2025, 12:16 PM
    Anyone knows if there's a way to monitor arbitrary logs in IJ? I know this exists, but I'm outside the context of a running configuration.
    l
    c
    • 3
    • 33
  • d

    darkmoon_uk

    06/26/2025, 1:39 AM
    Getting these sorts of erroneous type errors all over a mixed Java/Kotlin module. (required type: T provided: T 🙃) Compiles fine however. Build #IU-251.26927.53 - ❗*Only occurs when K2 is enabled* ❗- known issue?
    a
    s
    • 3
    • 16
  • a

    Alexander Weickmann

    06/26/2025, 8:11 AM
    I have a kotlin js project that builds fine using gradlew clean build. But in IntelliJ, the dependencies are not resolved, so I get for example "Unresolved reference: react" Can anybody give a hint what might be wrong? Tried already invalidate cache and restart, unlink / relink project, refresh gradle dependencies, delete .gradle and .idea folders Does not happen with IntelliJ 2024. Maybe our KotlinJS project is too old and no longer compatible with new intellij versions :(
  • m

    mbonnin

    06/26/2025, 2:17 PM
    What's the status with
    main.kts
    and K2? I just had to disable K2 again to get autocomplete 🤔 on
    IntelliJ IDEA 2025.2 EAP
    . Am I missing something? Can you do
    main.kts
    with K2?
    • 1
    • 1
  • k

    Kirill Grouchnikov

    06/26/2025, 5:11 PM
    Under the last two 2025.2 EAP builds, if you get this error message trying to debug a Java app (see in the thread for the fix)
    a
    • 2
    • 3
  • d

    darkmoon_uk

    06/29/2025, 7:08 AM
    I really enjoy being able to write
    .kts
    scripts instead of `.sh`; keeping more complex scripts in a powerful, familiar language. Unfortunately the usefulness of
    kts
    is unduly limited by IntelliJ IDE's failure to resolve symbols across
    @file:Import
    dependencies - meanwhile the scripts still run fine. This problem has only become more impactful with junie Junie; as the agent sees 'unresolved' false positives and erroneously act upon them, struggling for a fix that never comes. kodee sad This limitation is very sad, given it's been hanging for over 2 years... KTIJ-16352 Scripts / IDE: unresolved reference when trying to import file in main.kts scripts with @Import annotation Any insights into this issue in or outside of JB? Is scripting just abandoned beyond what's needed for Gradle? Such a shame, it's a killer feature in my book. Slack Conversation
  • s

    Sargun Vohra

    07/01/2025, 1:48 AM
    Is context-sensitive resolution supported by the IDE yet? I added
    -Xcontext-sensitive-resolution
    to my compiler args but the IDE still highlights code red where I use it
    👍 1
    a
    r
    • 3
    • 15
  • h

    hfhbd

    07/01/2025, 9:15 AM
    Is there any table which Kotlin version is used by the Kotlin IntelliJ plugin? I want to use kotlin.k2.only.bundled.compiler.plugins.enabled=false but I needed to migrate to the 2.2.0 FIR api (using context parameters in the FIR checkers), but IntelliJ does not use the new api yet, so my checker does not work.
    a
    d
    b
    • 4
    • 13
  • o

    Oliver.O

    07/05/2025, 3:28 PM
    A question about `org.jetbrains.kotlin.idea.base.facet`: To detect a test module in an IDE plugin with Kotlin/JVM and Kotlin Multiplatform, I'm using the following:
    Copy code
    private fun com.intellij.openapi.module.Module.isJvmOrMultiplatformTestModule() =
        isTestModule || (!isMultiPlatformModule && name.endsWith(".test"))
    However, relying on the module name seems hacky. Is there a better option?
  • l

    Luv Kumar

    07/06/2025, 8:30 PM
    Hi all, when running test in Intellij, in dropdown
    Run Tasks for $testName
    list where i can select targets, i only see android and ios option and no browser related option. Is it not supported or i am missing some configuration ? My browser tests do run in chromium when doing gradle build.
    • 1
    • 1
  • e

    Eugen Martynov

    07/07/2025, 8:17 AM
    Is there a way to improve time for refactoring related to data classes like rename field? Looking for usages takes ages, I even not sure if it is in loop since I see similar search scopes.
    ➕ 4
    💯 1
    e
    w
    d
    • 4
    • 6
  • t

    Tóth István Zoltán

    07/14/2025, 11:00 AM
    I would like to copy code to the clipboard from a web app and then paste it into IntelliJ. Would it be possible to add the import information to the code somehow so IntelliJ automatically adds the imports as well?
    g
    a
    +2
    • 5
    • 18
  • e

    Eugen Martynov

    07/15/2025, 9:24 AM
    Ehh, I missed the closed preview of https://lp.jetbrains.com/closed-preview-for-jetbrains-git-client/
    kodee excited 3
    very nice 3
    c
    • 2
    • 2
  • d

    Distractic

    07/17/2025, 5:48 AM
    Hello! I would like to not use wildcard import. So in my .editorconfig, I put these lines:
    Copy code
    ij_kotlin_name_count_to_use_star_import = 99
    ij_kotlin_name_count_to_use_star_import_for_members = 99
    But intellij seems to ignore them and continue to import with wildcard. If I change directly in Intellij Setting, it works, but I would like to harmonise for all of my team. Is there a way to say to intellij: don't use wildcard (based on editorconfig)?
    ✅ 1
    b
    k
    g
    • 4
    • 17
  • b

    Bernhard

    07/21/2025, 8:44 AM
    not sure if this is the correct channel, but looking at https://linuxiac.com/malware-discovered-in-arch-linux-aur-packages/ I've asked arch maintainers and they confirmed that due to licensing preventing redistribution, they can't ship Intellij Ultimate in an official repository; would it be possible for Jetbrains to change this tiny bit so it could be included in the official repos across most Linux distros?
    c
    • 2
    • 5
  • r

    Rob Elliot

    07/23/2025, 10:52 AM
    Hmm...
    Copy code
    infix fun @receiver:Language("RegExp") String.mapsTo(other: String): Pair<Regex, String> = TODO()
    
    fun main() {
      "/(?<>[^/]+)" mapsTo "bar" // left hand side does not get regexp highlighting - it should, shouldn't it?
    }
    • 1
    • 1
  • d

    df

    07/24/2025, 8:05 AM
    Is there a way to turn off these types of suggestions? I only want to receive suggestions for properties that actually exist. I don't need IntelliJ suggesting potential dependencies that could be passed as constructor arguments.
    p
    • 2
    • 2
  • s

    Simone

    07/24/2025, 3:55 PM
    Is it just me or the IntelliJ’s android debugger can’t attach at android process or takes ages? This since different Intlelij versions and with projects
  • a

    Arsildo Murati

    07/25/2025, 10:41 AM
    Hi, not sure where to ask this but my Junie is stuck like this, any ideas on a fix?
    a
    • 2
    • 3
  • j

    jeggy

    07/30/2025, 11:12 AM
    I'm having a mismatch between Kotlin and IntelliJ I'm getting this warning when compiling:
    Copy code
    Smart cast to 'ImageData' is impossible, because 'selectedIcon' is a property that has an open or custom getter.
    But Intellij says:
    Copy code
    Unnecessary non-null assertion (!!) on a non-null receiver of type 'ImageData'.
    I understand that it's IntelliJ that is reporting it incorrectly. So how can I fix my IntelliJ, so it does not suggest to remove the
    !!
    ?
    b
    • 2
    • 12
  • h

    hfhbd

    07/30/2025, 11:25 AM
    Is there any warning/smart hint if a function call unnecessarily specifies a parameter with the same default value?
    Copy code
    fun foo(s: Int = 0)
    foo(s = 0) // s is unnecessary
    z
    • 2
    • 1
  • m

    Martin Scotta

    07/31/2025, 5:22 AM
    We are seeing lot of these -- any idea?
    Copy code
    WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
    WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.jetbrains.kotlin.com.intellij.util.containers.Unsafe (file:.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/2.1.21/70a69b95905e33806fbee6c6c9c48e2b2b2b4da4/kotlin-compiler-embeddable-2.1.21.jar)
    WARNING: Please consider reporting this to the maintainers of class org.jetbrains.kotlin.com.intellij.util.containers.Unsafe
    WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
    c
    a
    • 3
    • 3
  • d

    Dmitriy Tarasevich

    07/31/2025, 4:39 PM
    Does anyone know whats the latest AGP version that IntelliJ Supports?. Unfortunately no compatibility tables exist
    t
    • 2
    • 1
  • t

    theapache64

    08/02/2025, 5:46 PM
    what happened to the
    .kts
    scratch file? i can’t see it now 🤔 am using
    Copy code
    IntelliJ IDEA 2024.3.4 (Ultimate Edition)
    Build #IU-243.25659.39, built on February 27, 2025
    Runtime version: 21.0.6+8-b631.39 aarch64 (JCEF 122.1.9)
    VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
    Toolkit: sun.lwawt.macosx.LWCToolkit
    macOS 14.6.1
    Kotlin plugin: K2 mode
    GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
    Memory: 8192M
    Cores: 8
    Metal Rendering is ON
    Kotlin: <tel:243.25659.39|243.25659.39>-IJ
    plus one 1
    😮 1
    m
    • 2
    • 6
  • t

    theapache64

    08/02/2025, 6:45 PM
    for fun, I an trying to use IntelliJ just using the keyboard and not touching the mouse… 😄 and when trying to switch within the
    Run
    pane, the tab key doesn’t let me switch to the right section 👀 should I expect this fixed in the next version? 🫣