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

    Alowaniak

    09/26/2018, 5:45 PM
    Isn't there a "run" view (where logging normally goes to) which has a stop button?
    a
    r
    a
    • 4
    • 6
  • c

    christophsturm

    09/27/2018, 7:52 AM
    is there no way to move a companion object out of a class and make it a real object?
    s
    g
    r
    • 4
    • 6
  • r

    r4zzz4k

    09/28/2018, 10:21 AM
    Am I missing something or "Package directive doesn't match file location" inspection still doesn't know anything about current style guide?
    r
    • 2
    • 1
  • b

    Benoît

    10/01/2018, 1:31 PM
    Hey guys, I've been using kts scratches file for a while in Intellij CE and Android Studio and everything used to work perfectly. However since I had to delete my
    ~/.gradle/caches
    , scripts don't work anymore if I try to run them from the IDE I get this :
    Primary constructor not found for script template class ScriptTemplateWithArgs
    Any idea how to fix that ?
    s
    d
    • 3
    • 4
  • c

    Czar

    10/04/2018, 7:10 AM
    For me the feature only sounds nice, all my attempts to use it required so much research time and convoluted configuration that in each case manually doing that turned out to be faster. Basically all of them required IntelliJ PSI knowledge and writing groovy scripts
    r
    t
    • 3
    • 3
  • e

    elect

    10/05/2018, 7:55 AM
    every gradle refresh now is triggering a bloody slow "resolving external annotations" process (like 10 to 15m).. is it really necessary? May I turn it off?
    m
    • 2
    • 2
  • d

    david-wg2

    10/05/2018, 10:31 AM
    i couldn't find anything there
    k
    • 2
    • 1
  • e

    elect

    10/05/2018, 9:02 PM
    Idea needs to offer the possibility to push with
    --force
    in order to delete remote commits if you reset your branch
    o
    r
    • 3
    • 3
  • h

    Hamza

    10/10/2018, 2:36 AM
    Hi, I can’t get coroutines to work with kotlin 1.3. here is the version and everything im using. When I have a hello world application, all works fine, the root cause is the coroutines.

    https://kotlinlang.slack.com/files/UA001QPFG/FDA3JAT61/screen_shot_2018-10-09_at_10.30.18_am.png▾

    g
    o
    • 3
    • 50
  • h

    hiperbou

    10/10/2018, 10:34 AM
    Hi, I updated to the latest IntelliJ 2018.2.4 CE, and when I opened my Kotlin/JS project, it asked to update it. It changed resources folders from "java-resource" to "kotlin-resource" in the .iml file, and I think that there are two things that are not working. -Resources labeled as kotlin-resource are not copied to the out folder. (So my workaround is, unmarking the directory as resources root, and marking it as Resources root again) -When you use the option Mark Directory as/Resources root it marks the directory as "java-resource" I'm not sure if this behaviour is intentional.
    a
    • 2
    • 1
  • v

    voddan

    10/11/2018, 1:28 PM
    Hello! When in InteliJ I create a Kotlin scratch file, it has this nice "run" panel at the top with "use REPL" opetion. How do I get this pannel on regular
    .kts
    files in my project?
    a
    • 2
    • 1
  • b

    bartvh

    10/15/2018, 2:27 PM
    I'm playing around with Kotlin 1.3 and IntellJ is giving me lots of these warnings now:
    Class 'kotlin.collections.CollectionsKt__CollectionsJVMKt' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler
    . Using Gradle, the code compiles and runs fine. Could it be because I'm using plugin version 1.3-rc146 but in Gradle using 1.3-M2 (which I must because of a bug in the newer version)?
    d
    • 2
    • 11
  • g

    girafferson

    10/15/2018, 5:50 PM
    Has anyone had issues compiling 1.3 with coroutines 0.30.2? Intellij can't find the packages when I remove experimental from the import statements and with it added, I get a warning that coroutines are no longer experimental.
    g
    • 2
    • 1
  • g

    girafferson

    10/15/2018, 5:51 PM
    I also get "Library should be compatible with kotlin 1.3" in gradle on the coroutines packages
    g
    • 2
    • 1
  • a

    arekolek

    10/16/2018, 9:14 AM
    I’m just wondering, this warning doesn’t make any sense and it’s a bug, or am I missing something?
    r
    g
    +2
    • 5
    • 8
  • n

    Nikky

    10/20/2018, 10:30 PM
    so where should i report bugs with idea's automatic ReplaceWith actions for Deprecated calls ? i have a call
    fun add(id: ID)
    that i rewrote to
    operator fun ID.unaryPlus()
    replacement works for usecases like this
    add(ID(something)) configure { .. }
    but not for
    add(ID(something))
    in the second case it just removes the line when i execute replacewith intent
    configure
    is a inline function the deprecation code is
    @Deprecated(
            "prefer unaryPlus",
            ReplaceWith("+ id"),
            level = DeprecationLevel.WARNING
        )
    o
    • 2
    • 2
  • c

    christophsturm

    10/24/2018, 3:14 PM
    is there a way to jump to a method declaration when using operators? like in
    mapOf(1 to 2)[1]
    v
    d
    s
    • 4
    • 12
  • g

    girafferson

    10/25/2018, 10:21 PM
    I very much dislike how plugins are handled in 183.. It seems much more confusing than it was before
    o
    c
    • 3
    • 12
  • n

    nfrankel

    10/29/2018, 1:45 PM
    hello anyone knows how to configure intellij for kotlin 1.3?
    k
    • 2
    • 4
  • d

    diesieben07

    10/29/2018, 7:53 PM
    Is it safe to update the IntelliJ Plugin to 1.3 if I still have some Projects using 1.2.71?
    d
    • 2
    • 2
  • o

    Ove Stoerholt

    10/31/2018, 8:17 AM
    Kotlin 1.3.0 plugin is not available in my installation of Intellij IDEA (Ultimate 2018.2.1). What can I do to make it appear? I could also try to install from disk and downloadables are are available from here: https://plugins.jetbrains.com/plugin/6954-kotlin None of the available downloads seem to fit my build number however... (which is IU-182.3911.36 (?) ) Tip anyone?
    ✔️ 1
    • 1
    • 1
  • n

    napperley

    11/01/2018, 7:59 PM
    IntelliJ is doing invalid highlighting of Kotlin errors all over the place. Invalidating the cache and restarting the IDE doesn't resolve the issue ☹️ . Invalid highlighting even appears on lines where the Kotlin standard library is used.
    o
    l
    h
    • 4
    • 25
  • b

    bombe

    11/01/2018, 8:57 PM
    This is what the debug tool view looks like. No pause button, no frames tab, no nothing.
    o
    y
    g
    • 4
    • 36
  • k

    kartikpatodi

    11/05/2018, 7:59 PM
    It seems
    IDEA 2018.2.5
    with
    Kotlin 1.3.0
    fails to complete postfix code completion like sout and null outside the main function scope Is it the expected behaviour? I am pretty sure it did worked on the previous versions. Note: Windows 10 pc
    a
    • 2
    • 5
  • k

    karelpeeters

    11/05/2018, 9:58 PM
    Is there a shortcut to show the type of the
    it
    parameter or the
    this
    context in the current lambda?
    ➕ 1
    s
    • 2
    • 4
  • k

    kartikpatodi

    11/06/2018, 7:29 PM
    Is there an option to set the default gradle version say
    5.0-rc-1
    so that it creates the wrapper accordingly? If I go with deafult wrapper it uses
    4.6
    and I have to use terminal to create a gradle wrapper and import it to intellij as a gradle project
    i
    • 2
    • 1
  • t

    tateisu

    11/07/2018, 1:57 AM
    Auto format does bit strange indent. Is there settings to fix it?
    y
    • 2
    • 1
  • n

    napperley

    11/13/2018, 12:19 AM
    IntelliJ incorrectly marks the function as unused even though it is used in a Kotlin Native project.
    :youtrack: 2
    i
    • 2
    • 4
  • c

    Carl Hickman

    11/15/2018, 10:19 PM
    I want to create a library that can be consumed by already existing iOS and Android apps. When creating a new project in IntelliJ one of the options is Kotlin/Native. I believe this is option that I want. Am I correct. I’m using IntelliJ Ultimate EAP if that helps.
    s
    g
    • 3
    • 2
  • d

    diego-gomez-olvera

    11/16/2018, 3:49 PM
    I am curious about Project Centaur, presented by @yole some time ago. Is there any news about it? https://twitter.com/KTUGMunich/status/1009499646249619466
    y
    c
    n
    • 4
    • 5
Powered by Linen
Title
d

diego-gomez-olvera

11/16/2018, 3:49 PM
I am curious about Project Centaur, presented by @yole some time ago. Is there any news about it? https://twitter.com/KTUGMunich/status/1009499646249619466
y

yole

11/16/2018, 3:50 PM
nothing we can share with the public
👍 2
d

diego-gomez-olvera

11/16/2018, 3:53 PM
I wonder if it is somewhat related to https://developer.android.com/topic/arc/studio, but I guess that it will only be known once there is a public announcement
y

yole

11/16/2018, 3:55 PM
it’s not related to that in any way
👍 1
c

christophsturm

11/17/2018, 10:22 AM
seems like upsource on stereoids
n

napperley

11/19/2018, 12:47 AM
So it is safe to assume that the project isn't related to language servers ( https://langserver.org/ )?
View count: 1