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

    Marc Knaup

    11/03/2020, 5:26 PM
    How do I disable that hint option? It’s not listed in Intentions. That one’s super annoying.
    a
    • 2
    • 6
  • k

    KamilH

    11/04/2020, 6:39 AM
    I’ve got a problem with IntelliJ. Every time I’m trying to apply a new plugin to my Multiplatform project I’m getting a lot of “unresolved reference” for stuff that previously was working and the information that some of my modules were removed by the Gradle project (“The IDE modules below were removed by the Gradle project reload”). In these modules IDE support is not working anymore (autocompletion etc.) and generally seems like they are not useable at all. You can see the behavior on the video below (more details in the thread)
    intellij_problem.mov
    m
    • 2
    • 30
  • e

    elect

    11/07/2020, 2:35 PM
    Since a couple of days whenever I ask for completions, this keep changing continuosly IntelliJ IDEA 2020.3 EAP (Ultimate Edition) Build #IU-203.5600.34, built on November 5, 2020 Am I the only one?
    a
    • 2
    • 2
  • m

    mbonnin

    11/09/2020, 2:25 PM
    What exactly do I get by configuring the
    idea
    Gradle plugin with
    generatedSourceDirs
    compared to simply adding to the source set ?
    idea {
      module {
        // what does this do?
        generatedSourceDirs += file("generatedDir")
      }
    }
    What makes a "generated" directory special?
    r
    c
    • 3
    • 8
  • e

    elect

    11/10/2020, 12:49 PM
    how can I avoid autoformatting from touching this code?
    vertices = BufferUtils.allocateFloatAndPut(floatArrayOf(
            // Front
            -side2, -side2, side2,
            side2, -side2, side2,
            side2,  side2, side2,
            -side2,  side2, side2
    ))
    a
    r
    • 3
    • 5
  • s

    Steffen Stenersen

    11/16/2020, 10:00 AM
    Hello. I'm having some issues upgrading to Kotlin 1.4 on my Zorin OS. Kotlin 1.3 is running just fine. The problem occurs if I create new project with the ktor server template and try to use any collection operations. (Same thing happens if I upgrade my existing projects to kotlin 1.4) Gradle builds the project just fine, but in intellij I get unresolved reference on all kotlin collections. I've tried different JVM versions without any luck. intellij version: community 2020.2.3 SDK: I've tried with corretto 11, openjdk-8, openjdk-11. OS: Zorin os 15.3
    a
    • 2
    • 4
  • p

    pniederw

    11/17/2020, 6:47 AM
    How can I stop IntelliJ from adding comments such as
    /* = Comparator<T> */
    when displaying signatures? Kills readability.
    g
    • 2
    • 15
  • t

    tateisu

    11/19/2020, 2:11 PM
    How to use coroutine's Flow class from scratch.kts file ? (I'm not using gradle in this time)
    j
    a
    • 3
    • 7
  • t

    Ted Naleid

    11/20/2020, 9:20 PM
    threading a question asking about Find Usages (or alternatives) for a function
    typealias
    or function signature
    a
    • 2
    • 10
  • j

    johnaqel

    11/23/2020, 11:27 PM
    I use the envFile Support plugin when launching my Ktor app from IntelliJ (https://plugins.jetbrains.com/plugin/9525--env-files-support) However, when I updated to the latest Kotlin plugin today, it seemed that the envFile Support plugin stopped working and my app wouldn’t start as it wasn’t getting the environment variables fed to it. I’ve re-installed the previous Kotlin plugin from September and envFile is working again.
    a
    • 2
    • 1
  • d

    diesieben07

    11/24/2020, 11:31 AM
    Since 1.4.20 IntelliJ no longer detects Kotlin run configurations as "running" when using Gradle. When debugging, it shows two process tabs for each running one, one of which never has any console output. Is this an issue on my end?
    👍 1
    👀 1
    a
    e
    +2
    • 5
    • 13
  • k

    Karlo Lozovina

    11/24/2020, 11:23 PM
    is there some standard way to send "events" from the IDE to a running JVM app? I'd like to bind a hotkey in Intellij that sends, for example, strings to the app...? I'm guessing no, but doesn't hurt to ask 🙂
    g
    • 2
    • 1
  • j

    jeggy

    11/25/2020, 10:38 AM
    How does one install an older version of IntelliJ in JetBrains ToolBox?
    • 1
    • 1
  • r

    Rob Elliot

    11/26/2020, 10:12 AM
    Niche, this, but IntelliJ is giving me “Could not autowire” inspection errors in a Spring Boot app when I have a class annotated as
    @Component
    where the constructor has arguments with default values. Because it has default values it can actually start up just fine, but I’d rather not have the red squiggles. And the suppression annotation is verbose. I could just disable the inspection entirely, but I’d rather IntelliJ was clever enough to know it isn’t a problem.
    • 1
    • 1
  • n

    napperley

    11/30/2020, 1:13 AM
    IntelliJ applies invalid syntax checking to a Kotlin source file in a Kotlin Native project (using the linuxX64 target) that uses a Kotlin Multiplatform library ( https://gitlab.com/napperley/kmqtt-client ). Both the library and the project use the same Kotlin version (1.4.20). There are no compilation/build issues with the project. When doing a Gradle refresh IntelliJ showed a popup window about the Kotlin Native library being incompatible which is incorrect.
    a
    a
    • 3
    • 6
  • p

    poohbar

    12/03/2020, 4:33 PM
    Disabling these two settings in Kotlin codestyle does not stick in 2020.3. It gets reset back to enabled.
    m
    a
    • 3
    • 6
  • d

    Dieter Konrad

    12/03/2020, 6:47 PM
    2020.3 IdeaLearningProject is cool. But there is bug. Essential > Basic Completion the second paragraph ^Space is what?
    a
    • 2
    • 6
  • c

    christophsturm

    12/04/2020, 4:01 PM
    convert triple to data class would be a nice refactoring.
    t
    • 2
    • 3
  • j

    jaqxues

    12/05/2020, 10:05 AM
    Since when is it that the program looks like it is run in a Gradle task, the
    Build
    tab and not
    Run
    , I want an empty console when i run it, so how can I change it back
    r
    a
    • 3
    • 4
  • k

    kirillrakhman

    12/07/2020, 8:12 AM
    is it possible that version 1.4.20 of the IDE plugin isn't available for 2020.3 in the stable branch?
    a
    • 2
    • 4
  • m

    Marc Knaup

    12/07/2020, 12:48 PM
    Why does the IDE keep suggesting me to change my file property to all-uppercase? How can I turn that off?
    r
    a
    • 3
    • 14
  • n

    napperley

    12/08/2020, 1:45 AM
    Every time a Gradle refresh is done an ArtifactNotFoundException is thrown:
    Unable to build Kotlin project configuration
    
    org.gradle.internal.resolve.ArtifactNotFoundException: Could not find kmqtt-client-metadata-0.2.3-dev.jar (org.digieng:kmqtt-client:0.2.3-dev).
    Searched in the following locations:
        <https://dl.bintray.com/digieng/development/org/digieng/kmqtt-client/0.2.3-dev/kmqtt-client-0.2.3-dev.jar>
    	at org.gradle.internal.resolve.result.DefaultBuildableArtifactResolveResult.notFound(DefaultBuildableArtifactResolveResult.java:28)
    
    ...
    With the project (Kotlin Native based) I am developing this is a show stopper! IntelliJ's syntax checking for Kotlin source files is broken. In every Kotlin source file in the project there is a green tick, even on a clean build. Funny thing is that the link exists yet Gradle cannot find it which is weird.
    a
    • 2
    • 3
  • k

    kartikpatodi

    12/08/2020, 1:44 PM
    Is there a plan for option to add a custom postfix completion for Kotlin in Intellij?
    a
    • 2
    • 1
  • t

    tateisu

    12/09/2020, 4:33 AM
    Is Kotlin plugin 1.4.21 for IntelliJ IDEA 2020.3 not yet available?
    :yes: 1
    c
    a
    • 3
    • 5
  • c

    Colton Idle

    12/09/2020, 5:02 AM
    Sometimes I change my java_home and the change isn't reflected in the Intellij terminal window... until I log out. Why is that? Is there any way to change it so that the new version takes into affect on launch?
    t
    j
    • 3
    • 5
  • j

    jeggy

    12/09/2020, 3:00 PM
    How does the dsl marker colors work? All I can see is that everything is extending from the
    DslMarker
    and somehow that ends up being using DslStyle1,2,3 or 4.
    m
    • 2
    • 3
  • d

    dalexander

    12/10/2020, 1:24 PM
    I'm running in to what looks like a bug in Android Studio. I have a gradle main project A which is dependent upon a subproject B. B is using a compiler plugin to generate some additional classes like a souped up annotation processor. The problem I'm running into is the generated classes from B aren't visible to AS/intellij, even though the build can find them and they're in B's output jar. This leads to a bunch of red text and no autocompletion with the generated classes. Does anyone know what I can do to address this, or should I file an issue somewhere? The traditional "Add java sources directories to gradle" doesn't seem appropriate because the generated classes are in a different subproject.
    • 1
    • 1
  • c

    christophsturm

    12/14/2020, 2:00 PM
    can idea create equals methods for kotlin classes?
    r
    • 2
    • 5
  • m

    Miguel Guilherme

    12/15/2020, 2:54 PM
    hey guys, do you know why there’s no code assistance in annotation expressions if your project is using kotlin?
    w
    n
    • 3
    • 9
  • s

    Slackbot

    12/16/2020, 2:59 AM
    This message was deleted.
    v
    • 2
    • 1
Powered by Linen
Title
s

Slackbot

12/16/2020, 2:59 AM
This message was deleted.
v

vineethraj49

12/16/2020, 2:59 AM
isn't there a "check for updates" option?
View count: 9