https://kotlinlang.org logo
Title
r

Raphael TEYSSANDIER

05/09/2023, 5:26 PM
Is the 1.7.0 will have a
*-native-mt
version ? And after upgrading from
1.6.4-native-mt
to
1.7.0
. I got :
Compilation failed: Internal compiler error: no implementation found for FUN DEFAULT_PROPERTY_ACCESSOR name:<get-parent> visibility:public modality:ABSTRACT <> ($this:kotlinx.coroutines.Job) returnType:kotlinx.coroutines.Job?
when building itable for CLASS INTERFACE name:Job modality:ABSTRACT visibility:public superTypes:[kotlin.coroutines.CoroutineContext.Element]
implementation in CLASS CLASS name:ChannelJob modality:FINAL visibility:private superTypes:[io.ktor.utils.io.ReaderJob; io.ktor.utils.io.WriterJob; kotlinx.coroutines.Job]
at /opt/buildAgent/work/8d547b974a7be21f/ktor-io/common/src/io/ktor/utils/io/Coroutines.kt (156:1)
CLASS CLASS name:ChannelJob modality:FINAL visibility:private superTypes:[io.ktor.utils.io.ReaderJob; io.ktor.utils.io.WriterJob; kotlinx.coroutines.Job]

 * Source files: 
 * Compiler version info: Konan: 1.8.20 / Kotlin: 1.8.20
 * Output kind: FRAMEWORK
h

hfhbd

05/09/2023, 5:32 PM
No
e

ephemient

05/09/2023, 5:36 PM
also the website is out of date :( https://youtrack.jetbrains.com/issue/KT-55498
r

Raphael TEYSSANDIER

05/09/2023, 5:38 PM
Okay, so no more
-native-mt
everything is merged ?
e

ephemient

05/09/2023, 5:39 PM
only the new memory model is supported
m

mkrussel

05/09/2023, 6:34 PM
-native-mt
was multithread support for the old memory model. With 1.7 you must use the new memory model and it supports multiple threads on native platforms.
r

Raphael TEYSSANDIER

05/09/2023, 7:09 PM
Ok, thanks!
d

darkmoon_uk

05/13/2023, 11:05 AM
Note that this issue unfortunately prevents the adoption of Coroutines 1.7 in projects using Ktor on Native targets, at present. This PR stands to correct the issue but needs to be merged and released; hopefully someone from the Ktor team is able to prioritise it theres a lot to like in the new Coroutines version including official K/N IO Dispatcher support.