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

    elect

    10/09/2021, 4:59 PM
    anyone else here having some imported methods marked as red like unresolved, but code compiles and runs just fine? Related
    t
    • 2
    • 6
  • j

    Jason5lee

    10/17/2021, 1:15 PM
    Is it possible to force IDEA to re-import the gradle project? I change some define in buildSrc but IDEA doesn’t let me re-import.
    h
    t
    b
    • 4
    • 6
  • k

    Karlo Lozovina

    10/20/2021, 10:43 PM
    I use features that require
    ExperimentalStdlibApi
    , and I add it via Gradle plugin that adds
    -Xopt-in=kotlin.ExperimentalStdlibApi
    to
    kotlinOptions.freeCompilerArgs
    . Building with Gradle from the command line shows no errors, but Intellij keeps underlining functions (like
    buildList
    ) and saying that I need to add the annotation. Using the latest Kotlin 1.6 preview plugin. Any ideas what to try to fix it?
    a
    j
    • 3
    • 8
  • m

    mcpiroman

    10/22/2021, 5:24 PM
    The Idea does not seem to follow references in KDoc that is in module not reachable by the current module, e.g.
    /** @See some.other.module.MyClass */
    Is there some workaround for this? Something like declaring `ideOnly("other:module:)`dependency in gradle maybe?
    a
    • 2
    • 1
  • j

    Javier

    10/23/2021, 1:06 PM
    is it possible to disable the new terminal feature? For me I had 0 problems with the terminal before this feature, now I am getting very weird behaviors
    d
    • 2
    • 3
  • s

    spand

    10/25/2021, 8:48 AM
    I have a few Kotlin classes that cannot be found (ie. all usages red and not findable with CTRL + N either). I assume it has an incremental cache or something somewhere to keep this editor information ready since I can fix it for a single file by renaming the file (outside of IDEA) and compiling but gradle clean, idea rebuild project does nothing to fix it. Is there a button that clean everything related to the open project (and not some global action like "Invalidate Caches")
    a
    • 2
    • 2
  • m

    mbonnin

    10/25/2021, 3:01 PM
    For some reason, I can't debug tests from included builds (they run fine if I open the included build directly). Is that a known limitation or am I doing something wrong?
    👀 1
    a
    • 2
    • 3
  • e

    elect

    10/25/2021, 3:01 PM
    I just noticed my kotlin plugin is stuck on 213-1.5.10-release-945-IJ5281.15 .. is there a way I can force an upgrade? Ps: I'm using Idea EAP via Snap
    a
    • 2
    • 2
  • c

    conner

    10/25/2021, 9:09 PM
    is there a setting i need to enable to make "Remove redundant public modifier" not show up when using explicit api mode?
    ➕ 1
    👀 2
    j
    • 2
    • 4
  • r

    rkeazor

    10/28/2021, 6:31 PM
    Will CodeWithMe come bundled with Android Studio? I see EAP versions that work with Android Studio but not yet reach stable. Is there a timeline for when it will reach stable?
    ➕ 1
    c
    c
    • 3
    • 4
  • i

    ivanmorgillo

    11/05/2021, 8:11 AM
    Hi all, I'm interested in Jetbrains Projector and I'm looking for official resources to run it over the Internet. I can run it on my local network and it's so cool 😱 How can I obtain an invitation link that works over the Internet?
    a
    • 2
    • 2
  • w

    wasyl

    11/05/2021, 3:30 PM
    Is the most recent Kotlin EAP terribly broken for anyone else? I had it crash on analyzing a file if a class in another module wasn’t explicitly compiled (it would just not highlight or show any completion), now I see all references in tests to
    internal
    classes are marked as errors. I’m on AS Canary, and everything worked fine until the latest Kotlin plugin update
    a
    a
    • 3
    • 4
  • p

    Peter

    11/06/2021, 12:58 PM
    Just downloaded the Mac M1 version of IDEA CE, it installs fine but it doesn't start. When I try to run it from command-line I can see:
    NSLocalizedDescription=The bundle "OpenJDK 11.0.12" couldn't be loaded because it doesn't contain a version for the current architecture.}
    2021-11-06 13:41:38.760 idea[2292:43635] Retrying as x86_64... arch: posix_spawnp: ./IntelliJ IDEA CE.app/Contents/MacOS/idea: Bad CPU type in executable It seems that • either it comes with an Intel JDK (when I thought it would come with a M1 Native JDK). • somehow I downloaded the Intel version of IDEA (but then the install should also have failed ?) Any tips from others ? P.S I did install a JDK 11 Azul native JDK, but IDEA still tries to use the bundled JDK
    j
    h
    a
    • 4
    • 8
  • c

    ConorG

    11/11/2021, 1:16 PM
    Hello 👋 Is this a known issue with latest version of Toolbox? (OSX Big Sur) It’s not reacting to any clicks. I’ve tried quitting and even a machine restart. Still seems to happen 🤷
    r
    w
    • 3
    • 5
  • j

    Javier

    11/12/2021, 10:16 AM
    Has anyone seen this issue in the latest eap when using buildSrc + kotlin-dsl? https://youtrack.jetbrains.com/issue/IDEA-282444
    o
    • 2
    • 1
  • h

    holgerbrandl

    11/16/2021, 3:31 PM
    The update to the v1.6 IDE plugin failed on my machine and now it's warning that "File '~\AppData\Roaming\JetBrains\IntelliJIdea2021.2\plugins\Kotlin\lib\kotlin-idea.jar' contains invalid plugin descriptor" after each restart. It seems 1.5 is still installed, and it does not find the update again. How can I force the update again?
    👀 1
    a
    k
    • 3
    • 3
  • j

    Justin Tullgren

    11/17/2021, 1:36 PM
    Hi, does anyone have a list of critical paths to ignore from an AV perspective in order for intellij/AndroidStudio to be performant? This is for an android gradle project, using the wrapper. The AV seems to contend with what the IDE does on file sync and gradle sync
    👀 1
    m
    • 2
    • 2
  • o

    okarm

    11/20/2021, 1:11 PM
    Is there a workaround for https://youtrack.jetbrains.com/issue/KTIJ-8414 ? Reported 4 years ago with no progress. It is especially unfortunate when working with Compose which is full to the brim with samples. Alas, unresolved samples.
    a
    • 2
    • 1
  • m

    Michael Böiers

    11/22/2021, 3:39 PM
    Hi! I’m pinned to the 1.5.10 version of the Kotlin plugin in IDEA 2021.3 RC 3 (the current one). Does anybody know how to upgrade to 1.6 there?
    a
    • 2
    • 2
  • p

    phil-t

    11/22/2021, 4:02 PM
    Hi, I’m seeing this IDE error from the Kotlin plugin a lot after updating IntelliJ and plugins, is this a known issue?
    java.lang.NoSuchMethodError: 'java.util.List com.intellij.grazie.utils.Text.allOccurrences(java.util.regex.Pattern, java.lang.CharSequence)'
    a
    • 2
    • 5
  • j

    Jurriaan Mous

    11/22/2021, 10:00 PM
    Is there a difference between running a Kotlin jvmTest gradle task in Intellij and in the terminal? In Intellij I got a NoSuchMethod exception when running the jvmTest but in terminal the same jvmTest task works fine. I have configured the IDE to run with Gradle, and the in IDE task fails with same exception with both Gradle and Intellij IDEA runner. (Same code runs however also fine on JS and Native in the IDE) I have run gradle clean and cleanBuildCache, restarted gradle workers, invalidated IDE caches and all to no success. I work with Kotlin 1.6.0 in both the project and IDE plugin, but also encountered this issue in 1.5.31 and possibly even before. For those who want to try it out, I have the issue on the branch linked below and keep getting this NoSuchMethod exception on same method regularly with all kinds of random unrelated changes which I then work around. So the project probably hits some kind of a limit somewhere with the JVM compiler. (It works consistently fine on one commit before on that branch) https://github.com/marykdb/maryk/tree/method-missing-crash If somebody can provide some extra hints I could post a proper issue report.
    m
    • 2
    • 2
  • s

    snowe

    11/23/2021, 1:10 AM
    This has always been an issue for me, but I'm just finding out today that it might not be an issue for anyone else. Anytime I try to view kotlin source code (in this case kotlinx-serialization) I always just get "compiled code" stuff like this. Clicking the download sources button, attaching sources, etc, doesn't do anything. Does anyone else have this issue as well?
    r
    • 2
    • 22
  • m

    mbonnin

    11/24/2021, 9:55 AM
    How does IntelliJ decides the title of the main window? Sometimes it's
    rootProject.name
    from settings.gradle.kts but sometimes it's the name of a random file in the repo. I haven't really found a pattern
    j
    • 2
    • 9
  • r

    rkeazor

    11/26/2021, 7:31 PM
    The latest vs of Intelij Idea Enterprise edition , only seem to have Kotlin plugin 1.5.10 avaiable ? will 1.6 but ready when it turns stable ?
    k
    • 2
    • 6
  • a

    Ayfri

    11/27/2021, 4:59 AM
    Hi, is there a way to generate all the documentation of a file ? I have a file containing a class with a lot of fields & methods and I have to document everything and I'm asking if there is a way to generate for all the members what is generated when we type
    /**
    and we press ENTER
    e
    c
    • 3
    • 6
  • s

    Skovisen

    11/30/2021, 5:53 PM
    Hi! Is Fleet meant to replace Intellij, long term or otherwise?
    r
    • 2
    • 1
  • r

    Rob Elliot

    11/30/2021, 6:30 PM
    IntelliJ 2021.3 has just shipped with Kotlin plugin 1.5.10? That seems… less than brilliant? Not even 1.5.31, let alone 1.6.0. Nasty surprise for some, I imagine.
    🤕 13
    p
    c
    +11
    • 14
    • 38
  • r

    Rob Elliot

    12/01/2021, 6:11 PM
    Upgrading to 2021.3 broke kotlinx-serialization in mine and a colleague’s projects, because it broke the path to the plugin jar in all the
    .iml
    files in the project. It became
    <option value="/<no_path>/lib/kotlinx-serialization-compiler-plugin.jar" />
    when it should be
    <option value="$KOTLIN_BUNDLED$/lib/kotlinx-serialization-compiler-plugin.jar" />
    .
    • 1
    • 1
  • t

    Tadeas Kriz

    12/02/2021, 6:35 PM
    Why is there still no Kotlin 1.6.0 plugin for the IntelliJ IDEA 2021.3? Is there a way to install it from sources?
    a
    j
    j
    • 4
    • 5
  • k

    Karlo Lozovina

    12/02/2021, 6:53 PM
    Upgraded to 2021.3 and the IDE doesn't recognize i.e.
    buildList
    ,
    @Serializable
    , etc... (multiproject build, works ok with 2021.2.3). Anyone seen something similar?
    p
    a
    • 3
    • 4
Powered by Linen
Title
k

Karlo Lozovina

12/02/2021, 6:53 PM
Upgraded to 2021.3 and the IDE doesn't recognize i.e.
buildList
,
@Serializable
, etc... (multiproject build, works ok with 2021.2.3). Anyone seen something similar?
p

pniederw

12/02/2021, 7:41 PM
sadly 2021.3 doesn’t support 1.6 yet https://youtrack.jetbrains.com/issue/KTIJ-20305
k

Karlo Lozovina

12/02/2021, 7:55 PM
thanks for the info! although, I've used for example buildList even in 1.5 using
ExperimentalStdlibApi
opt-in ... still, I'll wait until 1.6 support lands...
p

pniederw

12/02/2021, 8:36 PM
perhaps that’s because 2021.3 comes with 1.5.10, not 1.5.31 (not sure)
👍 1
a

Alexey Belkov [JB]

12/03/2021, 7:46 AM
Do you have a Maven project? It may be the same problem as https://youtrack.jetbrains.com/issue/KTIJ-19992. But I'm not sure how
buildList
is related to that.
View count: 2