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

    hho

    11/17/2017, 10:03 AM
    I still think the concept that you have to update your project to match the IDEs plugin version is wrong… The warning should just not be there, it's IntelliJs job to support my project—not the other way around.
    👍 6
    c
    o
    +2
    • 5
    • 4
  • h

    holgerbrandl

    11/20/2017, 5:01 PM
    is there an ticket/quickfix to remove a pointless
    let
    such as in
    openFasta("hervs99k.fasta")
        .filter { it.sequence.length.let { it in 1000..3000 } }
        // suggest to replace unnecessary let with just
        .filter { it.sequence.length in 1000..3000 }
    ?
    :youtrack: 2
    ➕ 2
    a
    • 2
    • 7
  • k

    kirillrakhman

    11/21/2017, 10:22 AM
    maybe it doesn't work with the
    in
    operator in which case you should open an issue
    h
    • 2
    • 1
  • f

    Fré Dumazy

    11/21/2017, 1:14 PM
    Hi, quick question. Where's the line between "Individual customers" and "businesses and organizations" in buying the Intellij IDEA or "all products pack" if you have a one-man company?
    c
    • 2
    • 4
  • d

    dreamreal

    11/21/2017, 2:20 PM
    Is there a slack channel for IDEA or other Jetbrains products not associated with Kotlin?
    c
    y
    • 3
    • 3
  • c

    christophsturm

    11/24/2017, 12:33 PM
    i have this code:
    private fun blah(): String {
            val blah="123"
            return blah
        }
    and when i right click on the blah in return blah and select inline, nothing happens
    👀 1
    m
    l
    • 3
    • 30
  • d

    damian

    11/24/2017, 6:24 PM
    Is there already an open issue for supporting "Package and Class Migration" refactoring? The preview window correctly shows all the usages to be replaced, but running it has no effect
    y
    • 2
    • 1
  • c

    chansek

    11/25/2017, 5:11 AM
    Not sure whether the problem is with respect to kotlin or Android Studio
    y
    • 2
    • 1
  • j

    jkbbwr

    11/25/2017, 3:47 PM
    Hey all, im suffering with intellij Could not determine java version from '9.0.1'. When using built in gradle
    y
    • 2
    • 1
  • m

    mingkangpan

    11/27/2017, 11:44 AM
    guys I have a question if I use cmd-shift-f, in the popup window only the first 100 results are displayed... how can I configure the find result limit? 😕
    y
    • 2
    • 1
  • m

    mingkangpan

    11/27/2017, 12:02 PM
    so I assume its not possible to adjust the finds limit size in the popup window 😢
    s
    • 2
    • 7
  • j

    jchannon

    11/28/2017, 8:29 PM
    if I hover over
    conn
    further down I’d like it to tell me what it is
    d
    d
    c
    • 4
    • 17
  • p

    Paul Woitaschek

    11/30/2017, 10:16 AM
    @Czar And stuff like this? 😉
    c
    • 2
    • 5
  • p

    Paul Woitaschek

    11/30/2017, 9:37 PM
    This just looks stupid
    c
    • 2
    • 3
  • a

    Andreas Sinz

    12/01/2017, 8:26 AM
    @Czar you could run "analyze code" for the whole file/project and execute the action for all places where its applicable
    c
    • 2
    • 9
  • s

    stkent

    12/04/2017, 8:00 PM
    If I run these against [1, 2, 3], and the predicate is { it > 2 }, then the first version returns false (1 is not greater than 2), but the second returns true (3 is greater than 2)?
    c
    • 2
    • 9
  • d

    Dalinar

    12/05/2017, 4:39 AM
    after upgrading to 2017.3 I keep getting a message "Workspace is restored to how it was in the ‘...' branch" everytime I switch a task. Is this just a new feature of .3 ? why does it do that?
    y
    • 2
    • 1
  • o

    omuomugin

    12/06/2017, 6:11 AM
    Hi, I am researching about “Nullability inference on JVM bytecode” at university right now. And I encountered the tool called KAnnotator (https://github.com/JetBrains/kannotator) which is not active. My motivation for research is pretty much the same with this tool. Does anybody know why this has been retired? This tool has been plugin for inteliJ so I posted this question here.
    y
    • 2
    • 4
  • y

    yole

    12/06/2017, 5:41 PM
    yes, then you need to check and fix the facet settings
    d
    a
    • 3
    • 13
  • s

    snowe

    12/08/2017, 10:17 PM
    main is
    fun main(args: ArrayList<String>) {
    c
    • 2
    • 2
  • w

    wineluis

    12/10/2017, 9:51 PM
    idea is built on Swing?
    c
    • 2
    • 1
  • p

    poohbar

    12/11/2017, 6:36 PM
    how do I search for usage of data class' constructor?
    c
    o
    • 3
    • 3
  • b

    bj0

    12/11/2017, 8:07 PM
    just rand the auto-update from 2.3.3 to 3.0.1 and now it throws a
    StartAbortedException
    when I try to start AS 😞
    g
    • 2
    • 1
  • c

    christophsturm

    12/13/2017, 2:05 PM
    is something like this on jetbrain's radar? https://youtrack.jetbrains.com/issue/KT-12900 swift and scala have it and it enables a really great way of developing with a really short feedback loop. and in kotlin it could be much faster than in scala
    y
    • 2
    • 1
  • d

    diego-gomez-olvera

    12/15/2017, 10:51 AM
    question: what's the status of UAST? https://github.com/JetBrains/uast In my company we are using Eclipse AST because Lint API tends to break (waiting for Lint 2.0) but we are considering Kotlin and would need to migrate the checks
    o
    n
    e
    • 4
    • 4
  • x

    xenoterracide

    12/21/2017, 4:57 PM
    but I thought someone here might know
    s
    y
    • 3
    • 5
  • n

    napperley

    12/21/2017, 8:18 PM
    Managed to get IntelliJ to use Oracle JDK instead of the OpenJDK (temporarily using Gradle via traditional Gradle DSL) however doing a Gradle refresh results in the following error being displayed:
    FAILURE: Build failed with an exception.
    * What went wrong:
    org/jetbrains/kotlin/kapt/idea/KaptGradleModel : Unsupported major.minor version 52.0
    Doing the equivalent Gradle refresh via
    ./gradlew build
    in the terminal works without any issues (using traditional Gradle DSL). Same error occurs when using Gradle Kotlin DSL instead of the traditional one. Appear to have encountered severe IntelliJ regression(s). One other thing, IntelliJ's syntax checker isn't working when making a change to a .kt file (it is always showing a green check mark) 😧.
    • 1
    • 2
  • x

    xenoterracide

    12/22/2017, 4:16 PM
    so why does idea think this is a problem?
    n
    • 2
    • 1
  • r

    ralf

    01/02/2018, 9:16 AM
    I hope it’s the right channel. I’ve tested the new code style settings with the EAP plugin, but the if statements look kinda ugly.
    if (something
    ) {
        // do something
    }
    Is the line wrapping intended? I don’t think so, but I also couldn’t find a setting to turn it off.
    ➕ 1
    g
    • 2
    • 2
  • g

    gaetan

    01/06/2018, 9:24 AM
    When I reformat code using the 1.2.20-eap-33-IJ2017.3-1 plugin and the “Kotlin style guide” this code:
    if (true)
    System.err.println("true")
    becomes
    if (true
    )
    System.err.println("true")
    Seems to be a bug no? But I don’t find it on youtrack.
    s
    • 2
    • 1
Powered by Linen
Title
g

gaetan

01/06/2018, 9:24 AM
When I reformat code using the 1.2.20-eap-33-IJ2017.3-1 plugin and the “Kotlin style guide” this code:
if (true)
System.err.println("true")
becomes
if (true
)
System.err.println("true")
Seems to be a bug no? But I don’t find it on youtrack.
s

snrostov

01/06/2018, 10:42 AM
https://youtrack.jetbrains.com/issue/KT-22093
👍 1
View count: 1