asad.awadia
03/03/2019, 5:25 PMGarouDan
03/04/2019, 1:17 AMerror: compilation failed: Could not find "/Users/travis/build/my_project/application/native/wasm/build/klib/kotlinx.interop.wasm.dom-jsinterop.klib" in [/Users/travis/build/my_project, /Users/travis/.konan/klib, /Users/travis/.konan/kotlin-native-macos-1.1.2/klib/common, /Users/travis/.konan/kotlin-native-macos-1.1.2/klib/platform/wasm32].
But this error is only happening on the CI and not in my development machine.
The strange thing is the same error is also happening in appveyor and circleci too.
Does someone knows a workaround for this?Sam
03/04/2019, 4:15 AM.def
file for JavaScriptCore
is disabled. Does this not work at all? Or was it disabled a long time ago and nobody had checked it out since?ivan.savytskyi
03/04/2019, 4:36 PMactual constructor(longVal: Long) {
delegate = NSDecimalNumber(longVal)
}
Getting error about ambiguity, looking into the bindings see 2 constructors that looks identical:
@kotlinx.cinterop.ObjCConstructor public constructor(long: kotlin.Long) { /* compiled code */ }
@kotlinx.cinterop.ObjCConstructor public constructor(longLong: kotlin.Long) { /* compiled code */ }
Is it a bug, or there something I missing?Ellen Shapiro
03/04/2019, 8:08 PMkotlin-multiplatform
plugin and the kotlin-native-platform
plugin and when to use each?Ellen Shapiro
03/04/2019, 9:50 PMenableFeaturePreview('GRADLE_METADATA')
, but not using gradle 5.1, which theoretically has that built in?
(I will accept “gremlins” as an answer at this point)ivan.savytskyi
03/05/2019, 5:17 AMkotlin.native.concurrent.Future.result
and kotlin.native.concurrent.Future.consume(code: (T) -> R))
. Seems like both are blocking, will block caller. I was assuming from API that Future.result
- suppose to be blocking but Future.consume(code: (T) -> R))
non blocking as it takes lambda.mben
03/05/2019, 4:58 PMgabin
03/05/2019, 6:56 PMGarouDan
03/06/2019, 1:40 AMMichael Bryant
03/06/2019, 7:57 PMEllen Shapiro
03/06/2019, 10:32 PMrunBlocking
coroutines version that works in a commonTest
for a multi-platform project?GarouDan
03/09/2019, 12:37 AMorg.jetbrains.kotlin.konan.library.resolver.KonanLibraryResolverKt$TopologicalLibraryOrder$1$1.invoke(KonanLibraryResolver.kt:40)
and I would like to inspect the code with breakpoints.
Does someone knows how can I debug my konan build in IntelliJ? Where I’m using something like ./gradlew build
for now and all of my build scripts are .gradle.kts
onesivan.savytskyi
03/10/2019, 5:41 AMTransferMode.UNSAFE
for Worker
transfer mode? Can we say if we are 100% sure that no one is going to mutate the thing we passed from the producer to the job, then it’s ok to use unsafe mode (and avoid freezing)? And second question what consequences to expect if smth goes wrong? (one thing I can think about is mem corruption issue, is there anything to watch out?)spierce7
03/10/2019, 9:35 PMkpgalligan
03/11/2019, 1:42 AMtapchicoma
03/11/2019, 2:19 PMabstract class
? Can't find it in OBJC_INTEROP.md
spierce7
03/12/2019, 9:48 PMbasher
03/13/2019, 12:39 AMSebastian Keller
03/13/2019, 12:59 PMCPointer<BooleanVar>
without the use of the nativeHeap? I would like to create one on the stack, but everything i've tried failed.
Currently im using this
val flag = nativeHeap.alloc<BooleanVar>(); flag.usePinned { it.get().ptr /* <- CPointer<BooleanVar> */}
AJ
03/13/2019, 3:29 PMCyrille QUÉMIN
03/13/2019, 4:28 PM1.3.30-eap-11
and I have a multiplatform project that used to build just fine with 1.3.21
and now I have this exception during the link phase for iOS framework creation: e: Compilation failed: lateinit property parent has not been initialized
. I looked in my entire source code I do not use lateinit
and I do not have a variable named parent
. I suspect this an error from the kotlin native source code itself. I’d like to know if there is a workaround I could try?aerb
03/13/2019, 5:24 PMEllen Shapiro
03/14/2019, 2:23 PMenum class
and I want that switch
functionality I could get in a swift enum
galex
03/14/2019, 2:27 PMAnalyticsConfig.init().baseUrl = "<http://192.168.85.16:8000>"
I get the following error:
Uncaught Kotlin exception: kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen com.analytics.core.helper.AnalyticsConfig@94d888
galex
03/14/2019, 2:30 PMobject AnalyticsConfig {
lateinit var baseUrl: String
}
ptmt
03/14/2019, 5:38 PMfromPreset(presets.iosX64, 'ios') {
compilations.main {
kotlinOptions.freeCompilerArgs = [
'-Xlist-phases',
'-Xverbose-phases=ObjectFiles',
'-Xverbose-phases=SetUpLinkStage',
'-Xverbose-phases=Linker']
}
}
but not sure if I’m supposed to see somethingDico
03/15/2019, 1:45 AMbasher
03/15/2019, 5:50 PMbasher
03/15/2019, 5:54 PMbasher
03/15/2019, 5:54 PMr4zzz4k
03/15/2019, 5:55 PMWorker
. You should freeze (make immutable) everything that crosses thread boundary though.basher
03/15/2019, 5:56 PMr4zzz4k
03/15/2019, 5:57 PMbasher
03/15/2019, 5:57 PMolonho
03/15/2019, 7:21 PMgildor
03/16/2019, 2:31 AMbasher
03/16/2019, 2:50 AM