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

    Piotr Krzemiński

    08/27/2021, 10:09 AM
    I got a prompt to install newer version of Kotlin IDEA plugin (bundled, screenshot 1), and then after clicking I got what's on screenshot 2. Not sure why the IDE wanted to install some old version 1.3.72-(...) - probably a bug?
    :youtrack: 1
    k
    c
    6 replies · 3 participants
  • a

    Ayfri

    08/29/2021, 10:58 PM
    Hi, on a project I have this, and it never disappear, what is it at first ? and how do I remove it ? I have this error on a lot of properties and it's really annoying as I just can't work. I tried to reload gradle, refresh dependencies, restart intellij, restart intellij with reloading indexes, close intellij, remove
    .idea
    folder then reopen the project, reinstall gradle, and I still have it...
    a
    o
    3 replies · 3 participants
  • p

    Piotr Krzemiński

    08/30/2021, 8:09 AM
    Hi, IntelliJ shows missing branch in
    when
    even if the subject is a sealed class or interface with all cases covered. It occurs when editing
    .main.kts
    files. Kotlin plugin version "212-1.5.30-release-409-IJ4638.7", and AFAIR it was working like this also on 1.5.10. Is it a known issue?
    f
    2 replies · 2 participants
  • c

    Colton Idle

    09/01/2021, 1:56 AM
    Any idea when IntelliJ will support AndroidGradlePlugin 7.0?
    h
    2 replies · 2 participants
  • m

    MBegemot

    09/04/2021, 11:26 AM
    Hi in intellij in the debug window in variables strings have 4 properties content, value, coder and hash. What is the meaning of coder? as much as I know it can be either 0 or 1 . I'm having trouble in converting from UTF16_LE to UTF8
    1 reply · 1 participant
  • w

    wrongwrong

    09/04/2021, 4:29 PM
    Hi. I was searching for the following two points, but could not get any information. 1. when will
    Kotlin 1.3
    be
    UNSUPPORTED
    on
    idea
    ? 2. when
    Kotlin 1.6
    is released, will
    Kotlin 1.4
    be
    DEPRECATED
    ? If anyone knows of a page with this information, please share it with me. Thank you.
    a
    2 replies · 2 participants
  • c

    Colton Idle

    09/05/2021, 1:16 AM
    Is there any way to run the intellij/AS IDE kotlin file analysis on CI? For example, we always get a warning of an unused param in a lambda and it's recommended to replace it with an underscore. I want to run whatever check that is... on CI (or even via a commit hook). Having an ability to fix it too would be nice, but not a requirement.
    e
    w
    +1
    3 replies · 4 participants
  • p

    Paul Woitaschek

    09/06/2021, 11:59 AM
    Is there any way to build only the kotlin plugin from sources (not the whole intellij-community)?
    👍 1
    ➕ 1
    a
    h
    3 replies · 3 participants
  • c

    christophsturm

    09/08/2021, 7:12 AM
    does the idea 2021.2.2 rc contain a fixed kotlin plugin? does not look like it from the changelog
    a
    4 replies · 2 participants
  • f

    Fredrik Larsen

    09/10/2021, 11:52 AM
    Does anyone know if it’s possible to get something similar to
    androidx.annotation.FloatRange
    to work in IntelliJ? By work I mean the IntelliJ linter to pick up on incorrect arguments. E.g.
    @FloatRange(from = 0.0, to = 1.0)
    w
    9 replies · 2 participants
  • e

    Emil Kantis

    09/11/2021, 9:34 AM
    Is there any known issues with indexes? Seems I have to re-index every time I restart IntelliJ.. (
    IU-212.5080.55
    , Kotlin plugin
    212-1.5.30-release-409-IJ4638.7
    )
    c
    3 replies · 2 participants
  • k

    Kurt Renzo Acosta

    09/14/2021, 6:02 PM
    hi! i’m trying to use intellij idea in my KMM project but I’m getting this error
    This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2020.3.1 or newer.
    . I’m using IntelliJ IDEA 2021.2.2 and Android Studio Arctic Fox 2020.3.1 Patch 2. Any way I can get this to work or am I stuck with AS?
    m
    r
    6 replies · 3 participants
  • c

    christophsturm

    09/15/2021, 3:37 PM
    so today idea 2021.2.2 final shipped with the broken kotlin plugin. so now the last stable idea version has a broken kotlin plugin and no workaround
    😕 3
    😞 4
    h
    o
    +2
    21 replies · 5 participants
  • a

    ade

    09/20/2021, 10:01 AM
    Just updated to kotlin plugin version: 203-1.5.31-release-550-AS7717.8 and now my project fails to sync, even though gradle is not giving an error
    2 replies · 1 participant
  • e

    Endre Deak

    09/20/2021, 5:41 PM
    I have a simple kotlin project with Gradle (v7.2), and I get an error in IntelliJ saying
    Cannot access class 'kotlinx.coroutines.CoroutineScope'. Check your module classpath for missing or conflicting dependencies
    I use IDEA Ultimate 2021.2.2. What setting I miss here? (invalidating cache, restart and rebuild does not help)
    o
    2 replies · 2 participants
  • a

    Arpan Sarkar

    09/21/2021, 5:24 AM
    is there any way to find all unused fields of a data class?
    c
    2 replies · 2 participants
  • k

    Kirill Grouchnikov

    09/21/2021, 1:05 PM
    I'm not sure exactly when it started (i've updated to IDEA 2021.2.1 around the same time as Kotlin 1.5.30 plugin). Here's what's happening - any time I try to launch a debug target, it prints this to console and stops:
    Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/Result
    	at kotlinx.coroutines.debug.AgentPremain.<clinit>(AgentPremain.kt:24)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
    	at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:515)
    	at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:527)
    *** java.lang.instrument ASSERTION FAILED ***: "result" with message agent load/premain call failed at ./open/src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 422
    a
    2 replies · 2 participants
  • s

    Stylianos Gakis

    09/24/2021, 6:37 PM
    How can I navigate to the “actual” class when Find usages navigates me to the expected class? My specific example is with
    kotlin.collections.LinkedHashMap
    , and I would like to see how the functions are actually implemented for my platform, but I can’t find a way to do that in the IDE. Any help?
    o
    3 replies · 2 participants
  • j

    Jason5lee

    09/28/2021, 12:12 PM
    How should I update Kotlin Plugin? It’s old but there is no update option shown.
    j
    5 replies · 2 participants
  • s

    spand

    09/29/2021, 9:09 AM
    Would it be possible to have this issue looked at again / prioritized ? Gradle is increasingly annoyed at our workarounds. https://youtrack.jetbrains.com/issue/KTIJ-16582
    a
    a
    4 replies · 3 participants
  • e

    elect

    09/29/2021, 10:55 AM
    I find quite annoying that intellij cant close all the sessions at once like, for example, firefox (-windows). Or am I missing anything? Ps: I'm on Ubuntu
    s
    2 replies · 2 participants
  • r

    Ran

    09/29/2021, 11:44 AM
    Hi All, I am trying IntelliJ 2021.3 EAP, but I wanted to test on latest Kotlin (1.5.31) and Java 16. I Installed it, but Kotlin plug-in is on 1.5.10, when trying to update it, the message claims it’s latest version (including early access 1.5, 1.6). Any way to install 1.5.31 on it, or there is no official support for it yet ?
    a
    2 replies · 2 participants
  • w

    wasyl

    09/30/2021, 10:42 AM
    Is there any trick to know when a line is longer than the column limit, when hints are enabled? Right now the text may appear well beyond the column limit indicator, but in reality be much shorter
    j
    c
    +1
    6 replies · 4 participants
  • f

    Fudge

    10/02/2021, 6:32 AM
    Smart step!!!!!!! https://blog.jetbrains.com/idea/2021/10/intellij-idea-2021-3-eap-2/#smart_step_into
    🎉 1
    c
    2 replies · 2 participants
  • l

    LastExceed

    10/05/2021, 11:17 AM
    i just discovered the dependency management ui. if i understand correctly it uses https://package-search.jetbrains.com/ which in turn browses a preset list of 7 repositories. is it possible to add further repos, or do i have to manage dependencies from other repos manually ?
    m
    1 reply · 2 participants
  • k

    Klitos Kyriacou

    10/05/2021, 2:05 PM
    Is it possible to get IntelliJ to list unused imports in the whole project? I've got
    Settings -> Inspections -> Kotlin -> Unused import directive
    set to "Warning", but when I build the project I don't see any unused imports listed. I can only see them by going to individual files in the editor and looking for greyed-out import statements. When looking at Java projects, on the other hand, I can see a list of used imports when I build.
    m
    1 reply · 2 participants
  • m

    mbonnin

    10/05/2021, 2:34 PM
    How do I disable the "parameter $foo is never used inspection"? I can disable "UnusedSymbol". But it doesn't look to affect parameters?
    fun test(a: String) {
    
      }
    Parameter 'a' is never used
    .
    a
    1 reply · 2 participants
  • v

    viralshah

    10/06/2021, 4:33 PM
    Hi guys, I recently was running the debugger in intellij and I noticed a lot of the variables I wanted to inspect were “optimized out”. Is there a way to temporarily disable this?
    a
    1 reply · 2 participants
  • c

    christophsturm

    10/08/2021, 11:01 AM
    idea EAP3 looks great! now i just hope it will get an updated kotlin plugin at some point then i can use it as my main ide
    ☝️ 1
    ➕ 2
    m
    1 reply · 2 participants
  • a

    Alex Styl

    10/08/2021, 3:51 PM
    javascript in html doesn’t seem to get highlight on my community IntelliJ IDEA. is that an ultimate only feature? html gets highlighted correctly 🤔
    1 reply · 1 participant
Powered by Linen
Title
a

Alex Styl

10/08/2021, 3:51 PM
javascript in html doesn’t seem to get highlight on my community IntelliJ IDEA. is that an ultimate only feature? html gets highlighted correctly 🤔
I am assuming that the ‘and more’ part in the ultimate vs community includes code highlight (https://www.jetbrains.com/idea/features/editions_comparison_matrix.html)
View count: 2