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

    martinb

    10/02/2019, 2:55 PM
    In IntelliJ 2019.2.3, when opening Call Hierarchy (Ctrl-Alt-H) on a Kotlin method, the hierarchy stops on calls from Java code. However, when opening Call Hierarchy (Ctrl-Alt-H) on a Java method, the call hierarchy doesn't stop even when passing through a Kotlin method. Example when starting from a Java method:
    ▼ javaMethod1()
        ▼ kotlinMethod2()
            ▼ javaMethod3()
                  javaMethod4()
    Example when starting from a Kotlin method:
    ▼ kotlinMethod2()
        ▼ javaMethod3()
    Above,
    javaMethod4()
    does not appear when starting from
    kotlinMethod2()
    . Note that there is a
    ▼
    before
    javaMethod3()
    , but nothing underneath. Is this a known issue?
    a
    • 2
    • 1
  • s

    Sylvain Patenaude

    10/08/2019, 3:20 PM
    Anyone knows if the "Visual Studio Team Services" plugin for IntelliJ is still available? I know there's one called "Azure DevOps", but its ratings are not really inspiring and performance seems a big issue. The goal is to have a seamless and workable integration with a DevOps server (cloud-based) from IntelliJ. Thanks in advance!
    m
    • 2
    • 1
  • s

    sksk

    10/09/2019, 2:27 PM
    Proposal: Detect kotlin and library versions in gradle files, and proposes updates/downgrades on the fly
    a
    • 2
    • 1
  • s

    sksk

    10/09/2019, 2:29 PM
    i'd prefer something integrated, just like this https://marketplace.visualstudio.com/items?itemName=pflannery.vscode-versionlens
    w
    • 2
    • 7
  • p

    poohbar

    10/11/2019, 12:55 PM
    I for one think that mindlessly updating to the latest version is a bad idea. Every new dependency version should be thoroughly tested. The
    npm
    default where it automatically bumps to the latest minor version is a source of many bugs because many library maintainers don't understand semver. When I update a library in Maven I do that for a reason after researching and studying the release notes. One-click action would not really save me any time in that process.
    💯 4
    w
    r
    +2
    • 5
    • 7
  • s

    Samuel Cook

    10/11/2019, 10:16 PM
    I’m using the kotlin-js plugin and the kotlin-test-js library. How do I run individual unit tests from within IntelliJ IDEA Ultimate? The tests run just fine from Gradle.
    a
    • 2
    • 5
  • g

    GarouDan

    10/16/2019, 3:53 PM
    Hi, Does someone know if we can automatically import the environment variables to IntelliJ? I’d like to automatically use the exported environment variables from zsh in the run/debug configurations. (Without needing to replicate them inside IntelliJ)
    • 1
    • 1
  • s

    Sylvain Patenaude

    10/16/2019, 3:55 PM
    In Project Structure for my Kotlin project, in the section Project Settings\Project, what is recommanded for these settings: 1) Project SDK: Should it be the java version that fits with my JAVA_HOME variable? Should it be Kotlin SDK? 2) Project language level: Should it be set to SDK Default? Should it be set to an explicit level?
    d
    • 2
    • 2
  • b

    Bernhard

    10/17/2019, 3:41 PM
    does intellij understand kapt("org.springframework.boot😒pring-boot-configuration-processor:2.2.0.RELEASE") because it says the annotation preprocessor is not on class path. I can add annotationProcessor("org.springframework.boot😒pring-boot-configuration-processor:2.2.0.RELEASE") but then it's generated twice
    c
    • 2
    • 1
  • f

    FranGSierra

    10/18/2019, 12:00 PM
    Hello! One fast question. I'm running a Multiplatform project on IntelliJ IDEA Community Edition. For some reason, a lot of my code changes are never propagated in the code when im compiling. The only way to make it work back when the compilation get stuck with old code is closing IntelliJ and opening it again. Anyone know why this could be happening?
    c
    • 2
    • 2
  • m

    Mohamed Ibrahim

    10/21/2019, 10:55 AM
    What's the basic knowledge needed to contribute in Intellij community edition?
    m
    • 2
    • 2
  • t

    trevjones

    10/23/2019, 9:44 PM
    So I have been running 1.3.60 EAP1 and now EAP2 in AS 3.5.0b1 and now 4.0a1 and have been having crazy long UI hangs in both editing kt files as well as b.g.kts files. the reformat code action is also much slower than it once was (but not on every invocation). What is the best way to capture and thus provide useful feedback?
    k
    • 2
    • 3
  • s

    Sylvain Patenaude

    10/24/2019, 2:31 PM
    In my build.gradle file, I have this a my first line: import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget but is says "Cannot resolve symbol 'KotlinNativeTarget'". Do I have to import an extra plugin (other than the Kotlin plugin)? Is there something I'm missing? Edit: Is it because it's the kotlin syntax (build.gradle.kts) instead of Groovy (build.gradle)?
    m
    • 2
    • 5
  • i

    Ilya Shaydullin [IceRock]

    10/25/2019, 6:55 AM
    Hello! I ran into a problem: When using the typealias Exception with a naming argument the compiler throw error
    @SinceKotlin("1.1") public actual typealias Exception = java.lang.Exception
    throw Exception( message = "TEST" )
    > Task :microservice:payment:compileKotlin FAILED
    e: /var/www/backend-services/microservice/payment/src/main/kotlin/com/icerockdev/microservice/payment/application/usecase/CardCreateUseCase.kt: (39, 19): None of the following functions can be called with the arguments supplied: 
    public final fun <init>(): kotlin.Exception /* = java.lang.Exception */ defined in kotlin.Exception
    public final fun <init>(p0: String!): kotlin.Exception /* = java.lang.Exception */ defined in kotlin.Exception
    public final fun <init>(p0: String!, p1: Throwable!): kotlin.Exception /* = java.lang.Exception */ defined in kotlin.Exception
    public final fun <init>(p0: String!, p1: Throwable!, p2: Boolean, p3: Boolean): kotlin.Exception /* = java.lang.Exception */ defined in kotlin.Exception
    public final fun <init>(p0: Throwable!): kotlin.Exception /* = java.lang.Exception */ defined in kotlin.Exception
    w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
    
    FAILURE: Build failed with an exception.
    If use
    throw Exception("TEST" )
    that build pass correctly. On the compiler side, everything seems fine, but probably IDE should make a check by itself.
    a
    • 2
    • 1
  • t

    thana

    10/28/2019, 11:09 AM
    i just realized there is a
    Async stack trace
    in the debugger when debugging a
    suspend
    method - is that new in 2019.2.3?
    a
    • 2
    • 2
  • d

    Dico

    11/03/2019, 10:18 PM
    I just updated IntelliJ from 2019.2.2 to 2019.2.4. After that, I ran into an issue where its Kotlin analysis is unable to resolve symbols in files with a main function, other than the main function. Anyone else familiar with this?
    a
    • 2
    • 3
  • v

    vineethraj49

    11/04/2019, 9:57 PM
    does view-source work with kotlin-coroutines-core for someone? cmd-b always takes me to the decompiled class file
    • 1
    • 1
  • c

    Casey Brooks

    11/04/2019, 11:37 PM
    Can IntelliJ convert HTML to the Kotlinx HTML DSL, like it converts Java to Kotlin?
    a
    • 2
    • 1
  • k

    Kirill Zhukov

    11/05/2019, 5:08 PM
    I have a set of folders that I always want exclude from indexing, is there a way to put them into some reusable
    .iml
    file that can be included in main project
    .iml
    ?
    a
    • 2
    • 3
  • r

    ribesg

    11/06/2019, 3:02 PM
    IntelliJ says “Kotlin not configured”, but it is. What do?
    c
    • 2
    • 2
  • k

    karelpeeters

    11/11/2019, 6:40 PM
    Is intelij supposed to understand the experimental command-line parameters? I added
    kotlinOptions.freeCompilerArgs += "-Xuse-experimental=kotlin.contracts.ExperimentalContracts"`
    To my
    build.gradle
    , and
    ./gradlew build
    compiles fine. Intelij still gives errors when actually trying to run code using contracts:
    Error:(552, 5) Kotlin: This declaration is experimental and its usage must be marked with '@kotlin.contracts.ExperimentalContracts' or '@UseExperimental(kotlin.contracts.ExperimentalContracts::class)'
    Intelij seems to at least understand that it's a compiler argument, it automatically ends up in Project settings > Modules > main > Kotlin > Additional cmdline parameters. Is this just not supported right now or there another problem?
    a
    • 2
    • 2
  • b

    bitkid

    11/14/2019, 3:07 PM
    seems like something is broken when i run my test suite with coverage .. is that kotlin related?
    java.lang.NullPointerException
    	at com.intellij.rt.coverage.data.ProjectData.touchLine(ProjectData.java:239)
    a
    • 2
    • 1
  • p

    pajatopmr

    11/15/2019, 5:04 PM
    So I saw that 1.3.60 was out and had IntelliJ upgrade the Kotlin plugin only to realize a bit later that that was not a wise choice. As near as I can tell, I need to completely reinstall IntelliJ to get back to 1.3.50. Is that the case?
    j
    • 2
    • 3
  • b

    basher

    11/15/2019, 8:18 PM
    Is there a way to run IntelliJ code inspections as a linter-like CLI tool?
    t
    • 2
    • 3
  • n

    napperley

    11/20/2019, 6:17 AM
    Is there a field in Run/Debug Configurations for passing through program arguments? Trying to setup multiple run configurations that pass different program arguments to a Kotlin Native binary.
    m
    d
    • 3
    • 3
  • r

    ribesg

    11/22/2019, 8:50 AM
    1. This view should enforce some line breaks 2. What the fuck is happening, never seen code analysis fail like that
    l
    • 2
    • 4
  • n

    napperley

    11/23/2019, 3:02 AM
    With the JS Client and JVM Server | Gradle project wizard there are many options that are missing: • Backend logging library (Log4J, Logback etc) • Frontend logging library • Kotlin development platform to use for the frontend (if Kotlin WASM existed then there would be two options: Kotlin JS & Kotlin WASM) • Frontend library/framework • Kotlin/Java backend library/framework (Ktor, HTTK4K, Spring Boot, Vert.x etc) • Frontend CSS library (eg Kotlin CSS - https://github.com/JetBrains/kotlin-wrappers/tree/master/kotlin-css ) [OPTIONAL] • Backend CSS library (eg Kotlin CSS - https://github.com/JetBrains/kotlin-wrappers/tree/master/kotlin-css ) [OPTIONAL] • Backend HTML library/template language (KotlinX HTML, Thymeleaf etc) • Frontend HTML library (eg KotlinX HTML) • Gradle DSL (Groovy and Kotlin) • Backend data persistence library (JOOQ, Exposed, JPA, Spring Data etc) [OPTIONAL] • Frontend web client library (eg Ktor Client) [OPTIONAL]
    a
    • 2
    • 1
  • r

    ribesg

    11/25/2019, 10:18 AM
    Why does IntelliJ needs to use 4 cores at 100% forever when I have a certain file open
    k
    • 2
    • 1
  • p

    pzarycki

    11/25/2019, 11:00 AM

    https://i.redd.it/7sfba3qln6821.png▾

    m
    • 2
    • 1
  • p

    poohbar

    11/25/2019, 1:53 PM
    Do we know when is
    2019.3
    coming out?
    a
    e
    • 3
    • 2
Powered by Linen
Title
p

poohbar

11/25/2019, 1:53 PM
Do we know when is
2019.3
coming out?
a

Alexey Belkov [JB]

11/27/2019, 7:48 AM
It is generally released a week after the release candidate, which was released on November 21. So, in a few days.
e

E.Kisaragi

11/28/2019, 10:31 PM
it came today 🎉
💯 1
View count: 2