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

    gaspard

    01/08/2018, 2:52 PM
    Hi, I have a strange problem with Kotlin in Intellij: I can run a test file using the ctrl + shift +F10 shortcut, or using the mouse. but when trying to run all the tests from the test folder in the project navigator, Intellij displays "no tests where found". (using shortcut or mouse) Do you have any idea ?
    • 1
    • 1
  • p

    perryprog

    01/08/2018, 9:13 PM
    Should I just disable the inspection for the file?
    j
    • 2
    • 2
  • b

    bkenn

    01/09/2018, 6:44 PM
    Hi all. I have a problem with kotlin gradle. I used the provided kotlin gradle project generator provided and the ide is unable to recognize the gradle project. Is there something special needed for the idea to recognize kotlin gradle?
    a
    • 2
    • 3
  • k

    kassim

    01/10/2018, 9:26 AM
    is there an IDE command to move a class into another (as a nested class) ? like Java has
    y
    • 2
    • 3
  • d

    dharrigan

    01/11/2018, 11:45 AM
    For those interested, I raised a bug: https://youtrack.jetbrains.com/issue/IDEA-184799
    k
    • 2
    • 7
  • k

    karelpeeters

    01/11/2018, 8:06 PM
    Can second Fira Code, the ligatures are amazing.
    ➕ 2
    l
    • 2
    • 5
  • g

    groostav

    01/11/2018, 8:08 PM
    switched console font to fira code, still getting question marks
    c
    • 2
    • 2
  • d

    dominik.sittel

    01/15/2018, 7:58 AM
    Auto generating code documentation with /** + enter for kdoc does not work in IntelliJ. Anyone an idea 💡 ?
    c
    • 2
    • 1
  • r

    ribesg

    01/15/2018, 9:15 AM
    I just used a Java 9 method in my Java 8 project and IDEA didn't say anything, is there an option to prevent this from happening?
    a
    • 2
    • 2
  • i

    Ian

    01/15/2018, 7:01 PM
    This probably isn’t Kotlin-specific, but when I’m attaching sources in the debugger, and I have the sources on my local machine (it’s a Gradle project), which directory specifically should I choose within that project when the “Choose sources…” dialog appears?
    a
    • 2
    • 1
  • g

    gildor

    01/17/2018, 12:45 AM
    Do you use Gradle for build?
  • c

    Carl Hickman

    01/17/2018, 9:51 PM
    How do I use IntelliJ (not Android Studio) to build a library for Android consumption? Googling for it but not finding much
    a
    t
    • 3
    • 6
  • n

    nkiesel

    01/18/2018, 8:13 AM
    I tried to enable the new Koltin style guide after upgrading. Instructions say to "go to Settings | Editor | Code Style | Kotlin and use the “Set from…” link to choose the code style" and the screenshot shows "Kotlin Style Guide". But when I click on the "Set from..." link i get a simple dropdown menu containing "Groovy", "HTML", "Java", JSON", "properties", "XML", "YAML" and not the "Kotlin Style Guide". What am I doing wrong?
    h
    t
    • 3
    • 3
  • m

    michaelsims

    01/18/2018, 6:20 PM
    FWIW, I found the issue here: https://youtrack.jetbrains.com/issue/KT-21633 and I attached a sample project
    a
    • 2
    • 1
  • j

    jkbbwr

    01/22/2018, 7:28 PM
    Im still getting errors about jdk9
    s
    • 2
    • 4
  • j

    Joshua F

    01/22/2018, 9:06 PM
    Yeah, there's quite a few still open. You can see them all here https://youtrack.jetbrains.com/issues/KT?q=Subtask%20of:%20KT-2440%20%23Unresolved%20order%20by:%20Priority%20
    r
    • 2
    • 1
  • c

    Czar

    01/24/2018, 12:25 PM
    Is it because of this issue? https://youtrack.jetbrains.com/issue/KT-22473
    e
    • 2
    • 2
  • k

    kirillrakhman

    01/24/2018, 1:46 PM
    seriously though, I'd love to switch all my build scripts but the red code issues won't stop
    e
    • 2
    • 1
  • e

    Eugen Martynov

    01/28/2018, 6:23 PM
    Hi guys, is it known?
    We have kotlin tests and they run fine on AS3.1 but not with the latest 1.2.20 kotlin plug...had to go back to 1.2.10
    👀 1
    l
    r
    • 3
    • 3
  • c

    chintanshah

    02/01/2018, 7:06 PM
    but how do I make intellij suggest
    carList: List<Car>
    , with java, it used to be trivial
    y
    c
    s
    • 4
    • 7
  • i

    ianbrandt

    02/04/2018, 8:16 PM
    I have a standard Kotlin project in IntelliJ (i.e. not Gradle). Compiler target is set to 1.8, but when I Show Kotlin Bytecode it shows "class version 50.0 (50)". Shouldn't it be 52?
    a
    c
    • 3
    • 9
  • g

    gitanshu

    02/08/2018, 2:31 PM
    Is it possible to demote the generated componentN functions in code completion?
    y
    o
    s
    • 4
    • 3
  • p

    poohbar

    02/08/2018, 7:11 PM
    sometimes, e.g. in Spring, intelliJ will not mark some methods as unused (although they are not really used anywhere in the code). Does anyone know how exactly does it determine these exceptions to the unused rule? It seems random sometimes.
    y
    • 2
    • 2
  • a

    artem_zin

    02/10/2018, 2:56 AM
    Sorry for non-Kotlin question, but looks like some IJ people who know details are here I'm trying to run IJ command-line code formatting in git
    pre-commit
    hook. Looks like when I run IJ formatting — IJ talks to
    git
    which results in additional
    .git/index.lock
    file created which later results in git erroring due to multiple lock files I've tried to isolate problem and exclude different parts of
    pre-commit
    hook, looks like only calling IJ code formatter causes that weird git locks behavior I've also tried to delete
    git4idea
    and
    github
    plugins from IJ distribution I use for formatting, but that didn't help 😞 Do you think it's IJ behavior and can I prevent it other than working with temporary folders instead of project folder?
    :stackoverflow: 1
    c
    o
    • 3
    • 3
  • j

    jkbbwr

    02/13/2018, 3:50 PM
    How can I stop clion overriding the existing makefile with the cmake generated file
    r
    • 2
    • 2
  • j

    jtonic

    02/14/2018, 8:46 AM
    Dear Kotlin plugin community, There is a question I would like to ask you. Given
    package tornadofx
    
    /**
     * …
     * @sample tornadofx.tests.FirstInterceptor
     * @sample tornadofx.tests.SecondInterceptor
     *
     */
    interface ChildInterceptor {
    If I my project is gradle bases, is there a way to configure the gradle.build (and/or IntelliJ Idea) to allow me to see and|or navigate to the samples? Thank you for your support in advance. Tony
    c
    • 2
    • 5
  • e

    elect

    02/14/2018, 11:33 AM
    https://imgur.com/a/TWAdm
    c
    h
    • 3
    • 11
  • a

    arekolek

    02/14/2018, 11:50 AM
    i think alt+enter with the cursor on
    ^with
    , and there's an option to hide it
    👍 1
    e
    • 2
    • 8
  • e

    Eugen Martynov

    02/15/2018, 2:33 PM
    Guys, does Kotlin formatting work for you?
    c
    • 2
    • 2
  • r

    ribesg

    02/20/2018, 3:21 AM
    Note that I know how to do that manually. I want the run configuration to do it, or IDEA stopping ignoring file changes
    c
    • 2
    • 2
Powered by Linen
Title
r

ribesg

02/20/2018, 3:21 AM
Note that I know how to do that manually. I want the run configuration to do it, or IDEA stopping ignoring file changes
c

Czar

02/20/2018, 7:19 AM
If you know how to do it manually, you can write a script and launch that from the run configuration.
r

ribesg

02/20/2018, 7:21 AM
By manually I mean opening the files themselves in IDEA, or hit invalidate cache in the file menu, or right-click -> Synchronize on the files
View count: 1