kpgalligan
10/22/2018, 2:03 PMjdemeulenaere
10/22/2018, 9:03 PMorangy
10/22/2018, 9:36 PMjw
10/22/2018, 9:38 PMgildor
10/23/2018, 9:47 AMSergio Casero
10/23/2018, 8:40 PMcoletz
10/24/2018, 7:28 AMHamza
10/25/2018, 7:47 AMuse gradle runner
selected in my IDEA preferences. Whenever I try to run the tests though, I get the [included] error. [stacktrace mode enabled] When i try running gradle jvmTest
though, it succeeds without any problems.coletz
10/25/2018, 10:35 AMld: framework not found _podname_
(I'm using the xcworkspace)kpgalligan
10/25/2018, 10:34 PMHamza
10/26/2018, 10:09 AMfabianterhorst
10/29/2018, 4:12 PMalex.hart
10/29/2018, 5:24 PMankushg
10/29/2018, 6:13 PMcommonTest
sources) using the Play button in the gutter, I get Error:(1, 18) Kotlin: [my-module_jvmMain] Declaration annotated with '@OptionalExpectation' can only be used in common module sources
. Tests run perfectly fine with ./gradlew :my-module:jvmTest
though!
I have a couple methods annotated with JsName
and JvmStatic
, but they very clearly are in the common module sources. I'm using a standard fromPreset(presets.jvm, 'jvm')
target.
Do I need to explicitly call useExperimentalAnnotation
or enableLanguageFeature
to use annotations marked as @OptionalExpectation
? Or is this an IDE issue? If it's an IDE issue, is there a ticket I should be following?ankushg
10/29/2018, 6:31 PMutils/TimeUtils.kt
in my commonMain
source set, with a top-level expect fun getCurrentTime(): Long
declaration. I've also defined a file TimeUtils.kt
in my jvmMain
source set, in the same utils
package, with an actual fun getCurrentTime(): Long = System.currentTimeMillis()
.
Attempting to build this project is giving me an error: Duplicate JVM class name 'utils/TimeUtilsKt' generated from: package-fragment utils, package-fragment utils
Is this supposed to be allowed? Using @file:JvmMultifileClass
doesn't fix the issue either... Do the files just have to be named differently altogether?kpgalligan
10/29/2018, 7:07 PMtarek
10/29/2018, 7:32 PMlawlorslaw
10/29/2018, 8:43 PMSergio Casero
10/30/2018, 6:55 AMSergio Casero
10/30/2018, 1:14 PMJoris PZ
10/30/2018, 3:50 PMjvmMain
modules uses logback for logging, which works fine. However, IDEA is not copying src/jvmMain/resources/logback.xml
to the build folder, and so my config is not picked up at runtime.
When I manually copy logback.xml
to build/classes/kotlin/jvm/main
before running my main method, the config is picked up by logback.
Anyone have any idea where I should look for a solution? I haven't used Gradle before, so I have no idea if I need to configure something on that side? src/jvmMain/resources/
is part of the classpath, so it seems more like an IDEA issue?ankushg
10/30/2018, 9:51 PMsort
isn't necessarily always stable. Despite anecdotally being stable in JVM, its unstable in certain JS environments and the docs don't make any guarantees about stability.
Does anyone know of a multiplatform-friendly way to do stable sorts?
https://youtrack.jetbrains.com/issue/KT-12473Erling Fjelstad
10/31/2018, 12:15 PMqlitzler
10/31/2018, 3:30 PMrusshwolf
11/01/2018, 5:15 AMErling Fjelstad
11/01/2018, 9:03 AMgaetan
11/01/2018, 6:34 PMhmole
11/01/2018, 7:59 PMaar
with mew mpp? Is it even possible?Brian
11/02/2018, 9:39 AMSequence
) from Swift.
It seems, that the generated framework headers only include definitions for my code but misses a lot from the stdlib. So there actually is the compiled KotlinSequence
accessible but all the factory and extension functions are not -- which renders it pretty useless.
Is there a way, to make some or all types and methods available in a compiled native xcode framework? Any hints are much appreciated!
See also my question on stackoverflow: https://stackoverflow.com/questions/53103956/access-kotlin-standard-library-from-swiftpatjackson52
11/02/2018, 1:31 PMpatjackson52
11/02/2018, 1:31 PMlouiscad
11/02/2018, 1:47 PM