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

    bsideup

    08/25/2017, 7:18 AM
    Hi! FYI
    KotlinScriptDefinitionFromAnnotatedTemplate
    has a memory leak of
    ScriptDependenciesResolver
    instances when resolver is not passed as
    providedResolver
    Is it known?
    y
    • 2
    • 2
  • a

    alexcouch

    08/26/2017, 6:05 PM
    I mean either way, there's really no difference post-compilation wise but it would be better to read and debug code imo
    k
    d
    • 3
    • 3
  • a

    alexcouch

    08/27/2017, 12:17 AM
    Also, for some reason, the gradle of the libraries only use Java 1.6, which doesn't make any sense to me considering that kotlin uses lambdas and autoboxing and a bunch of other stuff that were introduced 1.7+. The gradle has variable for 1.7 and 1.8 but they are never used as far as I can tell
    k
    k
    • 3
    • 4
  • a

    alexcouch

    08/27/2017, 1:35 PM
    The reason I ask about the gradle file, it's because I get an error saying that I don't have JDK_16 pointed to a jdk1.6 jar, and I was thinking that shouldn't it be either 1.6, 1.7, OR 1.8? I only have 1.8 installed
    y
    • 2
    • 1
  • j

    jimn

    08/28/2017, 2:16 AM
    does kotlin plan a generic means of prologue and epilogue ? per recommendation from @olonho to crib this code, why is this in a corner of the native code and not available for extensible features related to ... minimizing statemachine boilerplate? https://github.com/JetBrains/kotlin-native/blob/master/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/CodeGenerator.kt#L477
    y
    • 2
    • 1
  • b

    bsideup

    08/28/2017, 4:14 PM
    Hi! I see a lot of Protobuf objects after I compile a script (by calling the compiler). The biggest ones are of instances of
    Protobuf.Type
    . How to destroy them?
    k
    • 2
    • 4
  • b

    bsideup

    08/28/2017, 5:33 PM
    Okay, I definitely see a leak here 😃
    k
    • 2
    • 1
  • e

    Eugenio

    09/08/2017, 3:43 PM
    Hey @udalov, about this ticket, do you have any idea why this is the case? I would love to be able to help! https://youtrack.jetbrains.com/issue/KT-19452
    u
    • 2
    • 2
  • k

    kartikpatodi

    09/11/2017, 6:16 PM
    @ilya.gorbunov These were the files I guess there is some error due to CompilerSmokeTest
    i
    • 2
    • 1
  • j

    jlleitschuh

    09/14/2017, 9:09 PM
    Any assistance here would be appreciated. I'd like to contribute but running the tests is hard. https://youtrack.jetbrains.com/issue/KT-20271
    d
    • 2
    • 1
  • i

    ilya.gorbunov

    09/17/2017, 2:02 PM
    @trent IJ Community artifacts are about 500 mb. You need to download them before continuing the build.
    t
    • 2
    • 1
  • z

    zeugederunity

    09/20/2017, 10:57 AM
    Hello, i don't know if this is the right chat to talk about that, but i was looking for a way to use multiple resources at the same time as this fellow here: https://discuss.kotlinlang.org/t/is-there-standard-way-to-use-multiple-resources/2613 So i wrote a code generator to create multiple C#-like "using" inline functions with 1 to 20 generic closeable parameters and this is the result: https://github.com/FelixEngl/KotlinUsings What do you think about this code as a possible contribution to the Kotlin library as alternative to the "use"-nestings and autocloseables?
    k
    • 2
    • 2
  • i

    izorin

    09/21/2017, 9:46 AM
    Hi! I pulled the latest changes and wanted to try building project with gradle and went through all the new instructions, but I can’t build because of errors like
    Class 'org.intellij.markdown.IElementType' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler
    in
    KDocRenderer.kt
    during
    idea:compileKotlin
    . Am I missing something?
    i
    • 2
    • 13
  • s

    shiraji

    09/22/2017, 9:22 AM
    How to build kotlin using gradle? The doc says open build.gradle.kts from
    Module from Existing Sources
    . I tried that but got error
    Cannot import anything from build.gradle.kts
    . I could not see the gradle’s import dialog.
    i
    s
    • 3
    • 3
  • g

    gildor

    09/22/2017, 9:24 AM
    Maybe you need to chose dir with project instead of build.gradle.kts itself
    s
    z
    i
    • 4
    • 17
  • s

    semoro

    09/22/2017, 11:46 AM
    Inability to open build.gradle.kts caused by old version of Kotlin plugin
    s
    • 2
    • 4
  • k

    kirillrakhman

    09/25/2017, 7:06 PM
    I can't even run tests... I'm getting
    FAILURE: Build failed with an exception.
    * What went wrong:
    Could not determine the dependencies of task ':idea:test'.
    > Could not resolve all dependencies for configuration ':idea:testRuntimeClasspath'.
       > A problem occurred configuring project ':compiler:backend'.
          > org.gradle.api.internal.initialization.DefaultClassLoaderScope@37dc4b7d must be locked before it can be used to compute a classpath!
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    * Get more help at <https://help.gradle.org>
    BUILD FAILED in 6s
    org.gradle.api.internal.initialization.DefaultClassLoaderScope@37dc4b7d must be locked before it can be used to compute a classpath!
    b
    s
    • 3
    • 7
  • s

    snowe

    09/25/2017, 7:21 PM
    This happens if I have an annotation such as
    @Mock
    or
    @Autowired
    on a property, and then I call
    addModifier
    on that
    KtProperty
    k
    • 2
    • 12
  • s

    shiraji

    09/26/2017, 2:09 PM
    Can I send PR for adding the run configuration of “Generate Tests” that runs
    ./gradlew :generators:generateTests
    ?
    y
    • 2
    • 2
  • k

    kirillrakhman

    09/26/2017, 6:28 PM
    can anybody share a run config for testing a nested class? e.g.
    org.jetbrains.kotlin.idea.intentions.IntentionTestGenerated.ConvertToBlockBody
    s
    • 2
    • 1
  • k

    kartikpatodi

    09/28/2017, 12:39 PM
    Where can i find the api docs?
    k
    g
    • 3
    • 3
  • k

    karelpeeters

    10/05/2017, 6:08 PM
    Can you give an actual code example of where you need this?
    l
    d
    • 3
    • 2
  • m

    megamiun

    10/11/2017, 3:12 AM
    Hello, I'm doing an issue(KT-20305) and got to a problem: I am doing an inspection/Intention that can change Java classes too. How can I create a test that checks for change on more than one file? https://youtrack.jetbrains.com/issue/KT-20305
    m
    • 2
    • 2
  • u

    uli

    10/11/2017, 7:04 PM
    Hi all, sometimes the compiler creates unused local variables in Java bytecode code. Is this expected behavior with neglectable performance impact? Or is it considered a bug?
    y
    • 2
    • 2
  • m

    megamiun

    10/12/2017, 5:43 PM
    Is there anyway to run just one test without doing changes to the project? I tried to run standalone tests and receive a exception
    Error:Internal error: (java.lang.NoSuchMethodError) com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V
    java.lang.NoSuchMethodError
    y
    • 2
    • 2
  • k

    karelpeeters

    10/26/2017, 6:16 PM
    Am I missing something or should https://github.com/Kotlin/KEEP/blob/master/proposals/type-aliases.md be marked as fixed?
    d
    • 2
    • 2
  • r

    raulraja

    11/06/2017, 10:32 AM
    We forked the Kotlin compiler at (https://github.com/kategory/kotlin) to start an attempt to implement https://github.com/Kotlin/KEEP/pull/87. If any of you would like to get involved or can provide help to a bunch of Kotlin compiler newbies your help would be much appreciated. I'm at this point looking for areas of the compiler related to grammar, typechecking, extension syntax resolution, etc. and any documentation that can help us getting started. 🍻
    👍 1
    d
    • 2
    • 2
  • c

    chan

    11/11/2017, 3:43 AM
    I want to contribute to Kotlin standard lib, wondering if there is any requirement or some guideline how to get started?
    k
    • 2
    • 2
  • d

    diogowatson

    11/18/2017, 4:58 AM
    Hi, I'm from Brazil (but currently living and doing college in Canada). Any help translating docs to portuguese is needed?
    y
    • 2
    • 2
  • k

    kartikpatodi

    11/23/2017, 6:00 AM
    Is Kotlin's latest rc version required for Kontribution? And is Kotlin 1.2 rc default for 2017.3 EAP?
    y
    • 2
    • 3
Powered by Linen
Title
k

kartikpatodi

11/23/2017, 6:00 AM
Is Kotlin's latest rc version required for Kontribution? And is Kotlin 1.2 rc default for 2017.3 EAP?
y

yole

11/23/2017, 9:21 AM
please do not @mention me unless you’re sure that the question is for me specifically. this one is not
no, Kotlin 1.2 RC is not required to contribute. you can use 1.1.60.
k

kartikpatodi

11/23/2017, 3:29 PM
Thanks and sorry 😅
View count: 1