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

    jdiaz

    11/17/2018, 12:54 PM
    Has any one had troubles upgrading to intellij 2018.2.6 and the folder
    buildSrc
    now not linking things properly? I updated yesterday and since then (even rolling back) can't make it compile (it works with the CLI, so not really a problem)
    g
    • 2
    • 1
  • p

    poohbar

    11/21/2018, 5:17 PM
    does anyone know what the Share checkbox does here?
    p
    k
    c
    • 4
    • 7
  • m

    Michal Fudala

    11/22/2018, 12:35 PM
    Hey guys, what do you think might be the reason for intellij not indexing some external library added through gradle (kotlin dsl) (ktor in this case)
    compile(group = "io.ktor", name = "ktor", version = "1.0.0")
    and what can I do to quickly fix it (invalidate and restart did not help 😞 ) ?
    • 1
    • 1
  • a

    Alowaniak

    11/22/2018, 3:02 PM
    isnt a class within another class in kotlin always an inner class? And thus for the refactoring one would suddenly need to get the outer instance from somewhere
    d
    • 2
    • 1
  • r

    robin

    11/23/2018, 11:42 AM
    Holy moly. What witchcraft is this? IntelliJ will, on an await call, actually statically check the job that you're awaiting, and give you an "Unreachable Code" warning if that job will always fail? That's either some very specific inspection or some seriously impressive general static analysis
    d
    p
    • 3
    • 9
  • d

    dave08

    11/27/2018, 11:34 AM
    Is there any way to get hide/show all the extra stacktraces and initializations in the Intellij Ultimate test pane?
    m
    • 2
    • 2
  • n

    natpryce

    11/27/2018, 4:35 PM
    Maybe IntelliJ doesn’t recognise Kotlin Gradle scripts yet.
    s
    a
    • 3
    • 4
  • j

    jessewilson

    11/27/2018, 6:20 PM
    We’re regularly running into trouble with IntelliJ’s handling of extension functions in companions, this bug https://youtrack.jetbrains.com/issue/KT-15286
    a
    • 2
    • 1
  • n

    natpryce

    11/28/2018, 3:30 PM
    I do that (but define it as an extension of Unit which is the only case where this matters I think) But it would be nice to use a language feature
    h
    k
    • 3
    • 8
  • b

    bod

    11/29/2018, 9:48 AM
    Hello, World! Is it really a fact that “search structurally” doesn’t work with Kotlin?
    :yes: 1
    h
    e
    • 3
    • 3
  • b

    Burkhard

    11/29/2018, 11:50 AM
    When I get error messages during build from gradle, I can jump to the file by clicking on the file name. But for some reason IDEA does not recognize the line number:
    /Users/burkhard/Projects/Kotlin/kotlin-graphics/glm/glm/src/main/kotlin/glm_/vec2/Vec2.kt: (128, 9): ‘to’ hides member of supertype ‘Vec2t’ and needs ‘override’ modifier
    Is there any way to configure gradle or intellij so that it jumps to the right line as well?
    m
    • 2
    • 3
  • r

    robstoll

    11/29/2018, 5:36 PM
    it's not really kotlin related but I guess others had the problem as well (I hope someone knows a fix). I updated intellij to 2018.3 and cannot longer start the terminal within intellij, it fails with "failed to start..."
    a
    • 2
    • 1
  • p

    Paul Woitaschek

    12/03/2018, 11:08 AM
    Is there a way to make a live template that gets the current module package?
    h
    • 2
    • 3
  • k

    keturn

    12/03/2018, 9:47 PM
    Trying to get familiar with project directory structure... getting "package directive doesn't match file location" inspection error. This Stackoverflow post claims that IntelliJ doesn't support the current recommended Kotlin coding conventions, but that doesn't seem right, given how it's the flagship Kotlin IDE. https://stackoverflow.com/a/52538331/9585
    m
    h
    k
    • 4
    • 4
  • v

    voddan

    12/04/2018, 11:36 AM
    Q: when I write a
    data class
    with multiple properties in the constructor, all of them are marked as used (not greaied-out) even when none are used in the code ("Find usages" returns empty). Removing the
    data
    modifier returns things to normal. Is this a bug or intended behavior? How can I quickly see unused data-class properties?
    s
    k
    • 3
    • 4
  • r

    rocketraman

    12/04/2018, 11:01 PM
    When will the intellij debugger finally work properly with coroutines? Right now debugging any coroutine-based code is really annoying.
    l
    h
    • 3
    • 4
  • t

    tevjef

    12/05/2018, 4:48 PM
    Slightly annoyed that the errors and warnings kotlinc spits out cannot be copy/pasted to be opened in intellij Now:
    /oss/gradle-release/src/main/groovy/net/researchgate/release/ReleasePlugin.kt: (19, 1): you did something wrong
    What it could be:
    /oss/gradle-release/src/main/groovy/net/researchgate/release/ReleasePlugin.kt:19:1 : you did something wrong
    👍 3
    m
    a
    • 3
    • 2
  • r

    rocketraman

    12/06/2018, 4:59 PM
    Are Kotlin scratch files broken in the latest version, or is it just my project? Getting "good code red":
    Cannot access script base class 'kotlin.script.templates.standard.ScriptTemplateWithArgs'. Check your module classpath for missing or conflicting dependencies
    -- I'm not seeing any issues with the module classpath...
    g
    m
    • 3
    • 6
  • k

    keturn

    12/09/2018, 10:14 PM
    I attached the debugger to my running process (using the Debug button inside the run window) and the "Resume Program" button is disabled. I can only get it to continue by detaching (closing) the debugger. Is that normal for attached processes?
    d
    • 2
    • 1
  • m

    Marc Knaup

    12/12/2018, 4:14 PM
    Where does
    PREFERRED_PROJECT_CODE_STYLE
    suddenly come from and how du I turn it off so that my individual code style configuration's name doesn't end in Git? Note that I've activated
    Project
    code style, so I haven't even set mine for the project 🤔
    codeStyleConfig.xml
    <component name="ProjectCodeStyleConfiguration">
      <state>
        <option name="USE_PER_PROJECT_SETTINGS" value="true" />
        <option name="PREFERRED_PROJECT_CODE_STYLE" value="Marc" />
      </state>
    </component>
    o
    • 2
    • 1
  • e

    elect

    12/14/2018, 9:54 AM
    I noticed that when you merge and get conflicts, while you are resolving them working on a class (with the three view: local, result and remote) if you aren't done with it and you want quickly close it and check some other class, once you close it, you cant open it again: it's gone from the list of conflicted files..
    g
    m
    • 3
    • 2
  • d

    Dominaezzz

    12/14/2018, 6:31 PM
    Which should I prefer when creating a new project 'explicit module groups' or 'qualified names'?
    a
    o
    • 3
    • 2
  • d

    Dominaezzz

    12/19/2018, 9:03 PM
    I have two identical inline extension functions on
    Collection<...>
    . The only difference is one is on
    Collection<String>
    and the other is
    Collection<Closeable>
    . IntelliJ complains they have the same signature on JVM. Even though they are inline functions?
    s
    r
    • 3
    • 10
  • d

    Dmitry Kandalov

    12/26/2018, 10:54 AM
    In Java there is an inspection which highlights failed method calls or assertions in tests (
    TestFailedLineInspection
    class). Are there any plans to have something similar for Kotlin (or :youtrack: issue to vote for)?
    a
    • 2
    • 3
  • c

    Czar

    12/29/2018, 10:41 AM
    is there a configuration to somehow highlight access to properties or values with Java Platform type besides displaying hints? e.g. if I have a :java: bean
    class JavaBean {
        private String a;
        public String getA() { return this.a; }
    }
    I want access in :kotlin: to be marked somehow, e.g. weak warning or underline or color
    s
    m
    • 3
    • 4
  • l

    louiscad

    01/03/2019, 11:52 PM
    I think it's worth reporting on kotl.in/issue, yes
    e
    • 2
    • 1
  • o

    otakusenpai

    01/04/2019, 1:13 PM
    Hello! I have a jar file which I want to decompile. I installed the jd-intellij but sadly haven't used it before...and can't find a way to invoke it from the terminal. Can anyone please tell me how to use it. Thanks a lot.
    k
    s
    • 3
    • 4
  • d

    Dalinar

    01/06/2019, 6:43 AM
    how do you refactor change signature of a java method so that kotlin knows if it is
    ?
    or not ? if I change
    double
    to
    @Nullable Double
    then in the kotlin code it becomes
    @Nullable Double?
    and then i must do a search and replace. This is for the return value but from past experience I think that happens in parameters as well
    n
    • 2
    • 1
  • m

    muralimohan962

    01/08/2019, 7:58 AM
    The intellij idea is not recognising my Android pie device to install the app. Any help is appreciated!
    c
    • 2
    • 1
  • s

    Shawn

    01/08/2019, 7:28 PM
    cmd+shift+b
    on the variable name should take you to the implementation…
    a
    • 2
    • 2
Powered by Linen
Title
s

Shawn

01/08/2019, 7:28 PM
cmd+shift+b
on the variable name should take you to the implementation…
a

Andrew Gazelka

01/08/2019, 7:31 PM
thanks
was being dumb
View count: 2