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

    Graeme

    01/09/2019, 7:44 AM
    any thoughts on supporting annotation processing natively https://youtrack.jetbrains.com/issue/KT-29152 ?
    r
    k
    • 3
    • 4
  • a

    Andrew Gazelka

    01/10/2019, 12:53 PM
    welp, this is a bug (redundant spread operator). I'm guessing there is a better way to do this?
    d
    k
    • 3
    • 5
  • p

    poohbar

    01/11/2019, 3:21 PM
    IntelliJ should add the script runtime automatically behind the scenes IMO.
    ➕ 2
    n
    • 2
    • 1
  • r

    ribesg

    01/12/2019, 4:57 PM
    I’ve got a small problem with IntelliJ, it looks like it’s auto-saving every time I write a single character, but I have it set to auto format on save. So when I hit tab to indent an empty line to write something, it immediately saves and removes my indent... Any idea if I can fix this without removing formatting on Cmd+S?
    c
    s
    • 3
    • 9
  • n

    napperley

    01/14/2019, 8:49 PM
    Is there a way to get IntelliJ to inspect a KLib dependency in a Kotlin Native project (is a Linux x64 KLib) without any errors? Screenshot -

    https://files.slack.com/files-pri/T09229ZC6-FFDAGT9V1/klib_dependency_errors_in_intellij.png▾

    • 1
    • 2
  • r

    rocketraman

    01/17/2019, 3:22 PM
    Anyone else have issues with IJ + Java 11 + Kotlin + Windows? With a long command line, IJ suggests enabling "dynamic.classpath", which then causes the app to fail to load classes it should be able to, like
    java.sql.Date
    .
    • 1
    • 1
  • f

    febs

    01/20/2019, 8:40 PM
    why does a module appear with a certain icon and the other one does not? Thanks.
    h
    r
    • 3
    • 2
  • d

    Davide Giuseppe Farella

    01/20/2019, 9:52 PM
    Why does a directory use snake_case, while another one doesn't?
    🤔 2
    f
    • 2
    • 1
  • e

    Eugen Martynov

    01/21/2019, 1:55 PM
    How about JetBrains?
    c
    r
    +2
    • 5
    • 9
  • f

    febs

    01/21/2019, 8:55 PM
    my project stopped building and any Kotlin keyword appears as an unresolved reference. Apparently I did nothing. Restarted with no success. I feel like Kotlin support disappeared; how can I check that?
    s
    d
    h
    • 4
    • 17
  • p

    pniederw

    01/22/2019, 7:09 AM
    Looks like Kotlin plugin goes berserk when it sees
    ElementType.PARAMETER
    in
    @TypeQualifierDefault({ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD})
    . When I remove it, the errors disappear.
    a
    • 2
    • 1
  • f

    febs

    01/22/2019, 9:49 PM
    I'm trying to get acquainted to the icons of the autosuggestions of the IDE. So far so good: v is a value, f is an array, italic f is a lambda and that odd thing in second place is an array. So far so good...
    a
    c
    • 3
    • 4
  • s

    Slackbot

    01/23/2019, 2:31 PM
    This message was deleted.
    j
    d
    k
    • 4
    • 4
  • d

    Dalinar

    02/01/2019, 5:31 AM
    will the
    kotlinx-coutines-core
    version change with every major kotlin release? more frequently than that?
    g
    • 2
    • 1
  • d

    Dalinar

    02/01/2019, 6:20 AM
    would there be any reason why the migration tool was recommending 0.27(something)eap instead of 1.0.1 when migrating from an older version?
    g
    • 2
    • 1
  • d

    Dalinar

    02/01/2019, 6:38 AM
    also, some of my favourite coroutine features are experimental so, in the future - let's say I'm on Kotlin 2.0... I can still keep running good 'ol 1.0.1 coroutines with it? in case they removed these features?
    g
    • 2
    • 1
  • d

    Dominaezzz

    02/02/2019, 6:18 PM
    When I press Ctrl+/ to comment out Kotlin code, the
    //
    are placed at the start of the line instead of the start of the statements. How do I change that? I've googled and searched through settings but I can't find anything.
    h
    • 2
    • 2
  • m

    Marc Knaup

    02/05/2019, 3:52 PM
    Can I disable the expression hint intentions somehow? They're always shown first and I keep using them accidentally but they're least important. I cannot find them unter "Intentions" preferences.
    m
    a
    • 3
    • 7
  • n

    natpryce

    02/05/2019, 6:32 PM
    It indicates that the parameter is not used. You can reuse the “name”
    _
    multiple times, for all unused parameters, so you don’t have to think of names for them.
    👍 4
    h
    • 2
    • 2
  • b

    bjonnh

    02/07/2019, 11:25 PM
    Is there any plugin you would recommend for creating/dealing with javadocs?
    s
    • 2
    • 3
  • d

    DALDEI

    02/08/2019, 8:09 PM
    Q: has anyone had good success with InteliJ (ultimate, ea distro) using gradle composite builds ? It used to work OK -- not great but OK -- until about 2 months ago then for me It consistantly fails to resolve core dependencies from the included builds -- even dependancies which are replicated in the master build -- This renders the IDE nearly useless Timing wise the seems coorelated to gradle 5+ change to standard configuration names
    m
    m
    • 3
    • 6
  • m

    Mike

    02/11/2019, 1:01 PM
    Not sure where the best place to ask is, so will start here. IntelliJ 2018.3.4 and 2019.1 EAP exhibit this issue. Gradle 4.10.2 and Gradle 5.2.1. build.gradle sets jvmTarget to 1.8. Project compiles fine from CLI. When I import the project into IntelliJ, it’s incorrectly setting the jvmTarget on the module as it remains at 1.6, rather than being set at 1.8. I know this worked correctly in the past, and am not sure when it stopped working. This is a problem with certain inline functions and other things, so IntelliJ always reports errors in a couple of my modules as a result. I can manually change the jvmTarget to workaround it, but everytime I refresh the Gradle project, it obviously gets reverted. Anyone else having issues with this? Have a workaround, or know if there’s a ticket? Because it involves so many things, it’s difficult to search for.
    c
    o
    • 3
    • 16
  • p

    poohbar

    02/11/2019, 2:31 PM
    Javadoc containing a link to a Kotlin class works in the editor but it does not appear in the documentation window. Screenshot in thread.
    a
    • 2
    • 3
  • t

    Tom Ellis

    02/11/2019, 3:20 PM
    hi - does anyone know how to get the optimize imports in kotlin classes that import java stuff using alphabetical order? it seems to always put the java stuff at the bottom no matter what:
    package example
    
    import io.javalin.Javalin
    import org.jetbrains.exposed.sql.Database
    import java.util.UUID // for some reason at bottom after optimize imports
    
    class Example {
        fun myFun() {
            Database.toString()
            Javalin.create().toString()
            UUID.randomUUID()
        }
    }
    s
    a
    • 3
    • 3
  • t

    thana

    02/12/2019, 7:07 AM
    inellij keeps on komplaining, that i am using a feature not available on jvm 1.6 and i dont know how to get rid of it. Background: Of course the project still builds using gradle on the commandline. also i set the target jvm in the build.gradle. BUT the project is a multiplatform project. the target jvm is set in the kotlin facet for the jvm* sourcesets. so far so good. but the facets for the projects are build like a tree. on the "root node" of the facet tree, which is just called "Kotlin" i can set the target jvm version, too, and when i do, the jsMain-code gets red (yet the problem in jvmMain disappears)
    n
    a
    • 3
    • 4
  • p

    pablisco

    02/12/2019, 12:16 PM
    Has anybody experienced strange GPU artifacts with IntelliJ on windows? I am using the USB C port on an XPS 15 (GTX 1050) and renders the IDE useless to the point that I have to restart it at least 3 times each hour 😞
    c
    • 2
    • 4
  • c

    carlw

    02/16/2019, 12:38 PM
    hi. when I create a new Maven project and move on to the path dialog of the new project wizard, the textfield strips the dashes (-) I put in the artifactId. For instance, demo-ejb-project becomes demoejbproject. Is there a way to adjust the pattern used for the project names? I have to handedit the path to reinsert the dashes.
    s
    • 2
    • 3
  • d

    dewildte

    02/17/2019, 8:17 PM
    Is it possible to open a browser in intelliJ? Maybe from a Action?
    c
    m
    h
    • 4
    • 9
  • l

    louiscad

    02/19/2019, 8:49 AM
    If this annoys you, please add your vote to this: https://youtrack.jetbrains.com/issue/IDEA-188507
    👍 2
    k
    h
    c
    • 4
    • 9
  • p

    pawel.urban

    02/19/2019, 12:30 PM
    Hey! Have you experienced the issue that some of Kotlin’s intentions (alt+enter) were missing? For example I’m missing: replace with method reference, convert block body to… 🤔 AS3.3.1 Plugin 1.3.21-release-Studio3.3-1
    a
    l
    • 3
    • 3
Powered by Linen
Title
p

pawel.urban

02/19/2019, 12:30 PM
Hey! Have you experienced the issue that some of Kotlin’s intentions (alt+enter) were missing? For example I’m missing: replace with method reference, convert block body to… 🤔 AS3.3.1 Plugin 1.3.21-release-Studio3.3-1
It is more like the menu does not appear in some cases at all.
a

Alexey Belkov [JB]

02/20/2019, 11:41 AM
Is it reproducible? Can you please file an issue at http://kotl.in/issue with sample code.
l

louiscad

02/23/2019, 12:09 AM
Doesn't it work with caret on the opening brace or on the equals sign?
View count: 1