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
kontributors
  • v

    voddan

    02/19/2017, 5:13 PM
    hm, after ~4 hours of trying I've downloaded the file via Chrome
    • 1
    • 1
  • v

    voddan

    02/25/2017, 6:16 PM
    Anybody! I am (still) compiling the stdlib from sources, and I get
    Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
    [ERROR] /Users/voddan/Programming/kotlin/libraries/stdlib/src/generated/_Arrays.kt: (1, 7) Class 'kotlin.jvm.JvmMultifileClass' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler
    What is the recommended way to deal with it?
    u
    • 2
    • 1
  • d

    Dmitry Kandalov

    03/10/2017, 5:48 PM
    Hello. If I just updated kotlin source code from github but it fails to build, is there a teamcity to check that the build is broken (and it’s not my local problem)?
    u
    • 2
    • 1
  • a

    apatrida

    03/14/2017, 6:36 PM
    So I'm mimicking what they did for painless but without having to write a whole new scripting language to do it, and it would be a better version because Kotlin is more expressive when doing things like long functional chains that painless just fails at
    k
    • 2
    • 2
  • i

    ilya.gorbunov

    04/08/2017, 9:19 AM
    📣 A note to contributors working within the
    libraries
    directory: now you need to run gradle build step before running maven. More details in the readme: https://github.com/JetBrains/kotlin/blob/master/libraries/ReadMe.md And if you work solely on the standard library, it's enough to run just gradle build.
    s
    • 2
    • 3
  • k

    kirillrakhman

    05/02/2017, 12:55 PM
    not sure if this is a viable solution. I'm working on https://youtrack.jetbrains.com/issue/KT-17660. I'm adding an inspection and as a quickfix I want to reuse the intention "Add names to call arguments" without it appearing twice in the Alt + Enter menu.
    👍 1
    a
    • 2
    • 2
  • k

    kirillrakhman

    05/17/2017, 4:35 PM
    @yole can you review https://github.com/JetBrains/kotlin/pull/1011 again when you have time? thx
    y
    • 2
    • 1
  • k

    kirillrakhman

    05/22/2017, 9:20 PM
    kotlin-test documentation seems to be broken https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.test/
    i
    • 2
    • 5
  • p

    pozo

    05/31/2017, 8:04 AM
    especially with
    INDICES
    n
    • 2
    • 2
  • a

    andrewreitz

    05/31/2017, 7:23 PM
    https://kotlinlang.slack.com/archives/C0922A726/p1496258328750068
    i
    • 2
    • 1
  • u

    uli

    05/31/2017, 7:30 PM
    message has been deleted
    o
    d
    • 3
    • 10
  • e

    eddie

    06/04/2017, 4:43 PM
    @yole Could you elaborate on your comment on this issue when you get a chance, please? https://youtrack.jetbrains.com/issue/KT-17743 I'm using IntelliJ 2017.2 EAP and the latest dev plugin it wants me to install is 1.1.4-dev-469, yet I'm getting the crash the issue reports. Is there not a 1.1.4-dev plugin available for 2017.2? Why does the repository recommend this dev version, then? Or are you referring to the need to install a 2017.2 version of the Android plugin? (Which I also don't understand, since it works fine until upgrading the Kotlin plugin to 1.1.4-dev.)
    y
    • 2
    • 4
  • s

    shubham2892

    06/11/2017, 5:49 PM
    Hi, I am trying to make a change where parentheses are also deleted after deleting the last unused constructor parameter. So basically
    class TestTestTest(val param: String)
    ->
    class TestTestTest
    instead of
    class TestTestTest()
    . I have been able to do so by these changes(https://github.com/shubham2892/kotlin/commit/1b8674496721d301819fdbc17ce1eeda27a83775) but I am getting the above error. I am having hardtime understanding how the
    runSignature
    method call is acquiring the write lock.
    y
    • 2
    • 1
  • y

    yole

    06/12/2017, 10:43 AM
    there's a general "we need more settings" issue here: https://youtrack.jetbrains.com/issue/KT-9423
    n
    • 2
    • 1
  • e

    evanchooly

    06/15/2017, 3:35 AM
    has anyone gotten the kotlin tests to run in IDEA vs from ant? i get resolution errors. 😕
    k
    • 2
    • 2
  • n

    neworldlt

    06/15/2017, 9:25 AM
    What about this one: https://youtrack.jetbrains.com/issue/KT-12597 ? If I understand correctly, basically there is needed to port https://github.com/JetBrains/android/blob/master/android/src/org/jetbrains/android/AndroidGotoRelatedProvider.java to Kotlin repo and it looks like easy enough for grab. I would like work on this, because my team is missing this feature.
    v
    • 2
    • 2
  • g

    gildor

    06/22/2017, 1:55 AM
    @marcinmoskala But bytecode for implicit and explicit default constructors are the same: on bytecode level it's always explicit. Just compare bytecode before decompilation. So decompiler know nothing about original Kotlin code, just decompiles bytecode to source code according his own internal logic.
    e
    • 2
    • 2
  • k

    kirillrakhman

    06/28/2017, 6:10 PM
    can a
    com.intellij.codeInspection.LocalQuickFix
    be disabled? It doesn't seem to have an
    isAvilable
    function
    y
    • 2
    • 1
  • v

    vkkoshelev

    07/02/2017, 5:30 PM
    Are test files automatically generated from testData? If so, how should I generate them after adding a new test?
    v
    • 2
    • 2
  • t

    tieskedh

    07/10/2017, 8:27 PM
    I don't know if this is the right place, but I want to contribute to Kotlin. Unfortunately I can't build the project. I have the same error as https://kotlinlang.slack.com/archives/C19FD9681/p1499360862769923, but when I use the external gradle and maven in combination with java8, my project still don't build. Can anyone help me?
    y
    • 2
    • 2
  • e

    eddie

    07/21/2017, 2:43 AM
    @voddan if you or anyone else were still wondering, the source for actually parsing
    when
    is here: https://github.com/JetBrains/kotlin/blob/master/compiler/frontend/src/org/jetbrains/kotlin/parsing/KotlinExpressionParsing.java#L839
    v
    d
    e
    • 4
    • 5
  • e

    Eugenio

    08/02/2017, 5:43 PM
    Hi! I have a question related to reified parameters. When this code is compiled:
    abstract class A<T>
    
    class B : A<Callable<String>>()
    Then the correct
    @Metadata
    annotation is generated on `B`:
    @Metadata(
       mv = {1, 1, 6},
       bv = {1, 0, 1},
       k = 1,
       d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\u0018\u00002\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00030\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0004¨\u0006\u0005"},
       d2 = {"LB;", "LA;", "Ljava/util/concurrent/Callable;", "", "()V", "production sources for module app_main"}
    )
    (notice the reference to
    Ljava/util/concurrent/Callable
    ) Now when this code is compiled instead:
    abstract class A<T>
    
    inline fun <reified T> a() = object : A<T>() {}
    
    val B = a<Callable<String>>()
    Then this
    @Metadata
    annotation is generated on the anonymous class:
    @Metadata(
       mv = {1, 1, 6},
       bv = {1, 0, 1},
       k = 1,
       d1 = {"\u0000\r\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001B\u0005¢\u0006\u0002\u0010\u0002¨\u0006\u0003"},
       d2 = {"TestKt$a$1", "LA;", "()V", "production sources for module app_main"}
    )
    All type information is completely lost... Is that the intended behaviour? Can this be avoided?
    y
    • 2
    • 3
  • j

    jw

    08/11/2017, 8:32 PM
    https://github.com/jetbrains/kotlin#commit-comments
    y
    • 2
    • 2
  • r

    raulraja

    08/13/2017, 4:57 PM
    I'm programmatically accessing
    kotlinc
    and feeding it snippets to verify they can be compiled. Is there a way to also evaluate expressions and obtain their results in the same way the
    kotlinc
    REPL does? Any help or pointers in the right direction are appreciated 🙂
    o
    • 2
    • 2
  • j

    jimn

    08/14/2017, 6:13 AM
    can i indulge someone in exploring the limits of kotlin polymorphic syntax?
    y
    • 2
    • 14
  • a

    aoriani

    08/14/2017, 9:09 PM
    What is the process for improving the documentation? Should I open a KT ticket to document the improvement? Or can I just create the PR and explain the improvement there?
    y
    • 2
    • 5
  • m

    marcinmoskala

    08/19/2017, 12:29 PM
    I have a problem with getting getter annotation from property reference. Here is annotation:
    class A {
        @get:Arg val a: Int by BoundToValueDelegateProvider()
    }
    Inside
    provideDelegate
    I have property reference
    operator fun provideDelegate(
            thisRef: Any?,
            prop: KProperty<*>
    ): ReadWriteProperty<Any, T> {
        val annotation1 = prop.getter.findAnnotation<Arg>() // This is null
        val annotation2 = prop.javaGetter?.getAnnotation(Arg::class.java) // This is null too
        // ...
    }
    It this bug or expected behavior?
    k
    • 2
    • 4
  • o

    orangy

    08/19/2017, 1:49 PM
    done
    👍 1
    k
    • 2
    • 1
  • b

    bsideup

    08/23/2017, 2:56 PM
    http://demo.kama.zone/#/KamaHQ/dummy/554 user: user pass: user 😉
    k
    • 2
    • 2
  • r

    Roman Ivanov

    08/24/2017, 3:47 PM
    Hello! Is there API to write plugins for IDE like for Java? As I see, all plugins are integrated into kotlin repository and there is no external library for API. I'm trying to create plugin for kotlinx.html to transform html to kotlin DSL when pasting and I need to access indexes.
    o
    • 2
    • 2
Powered by Linen
Title
r

Roman Ivanov

08/24/2017, 3:47 PM
Hello! Is there API to write plugins for IDE like for Java? As I see, all plugins are integrated into kotlin repository and there is no external library for API. I'm trying to create plugin for kotlinx.html to transform html to kotlin DSL when pasting and I need to access indexes.
o

orangy

08/24/2017, 5:29 PM
https://plugins.jetbrains.com/plugin/7957-html-to-kotlin
r

Roman Ivanov

08/25/2017, 12:59 AM
Wow! Haven't heard about it! It can be very helpful working with kotlinx, maybe put a link in repository description?
View count: 2