Daniele B
08/16/2020, 2:46 PMsaket
08/16/2020, 9:07 PMThomas Skovsgaard
08/17/2020, 5:52 AMgregorbg
08/17/2020, 9:36 PMprojectRoot/frontend
(JS) and projectRoot/backend
(JVM) as individual modules and I'd like to migrate to Kotlin without changing the project structure too muchRicky
08/18/2020, 3:17 AMcommon/
- src/
- build.gradle.kts
jvm/
- src/
- build.gradle.kts
js/
- src/
- build.gradle.kts
vs
src/
- commonMain
- jvmMain
- jsMain
build.gradle.kts
I need to use two plugins (that conflict with each other), if I have it as multi-project I can apply each plugin for the associated targetRicky
08/18/2020, 3:19 AMbod
08/18/2020, 11:41 AMThere are 33 third-party libraries attached to the project that were compiled with an older Kotlin/Native compiler and cant be read in IDE
and almost everything is red in the IDE.
I've tried to update all my dependencies to their latest versions, but this didn't improve the situation.
Is that normal?Kathrin Petrova
08/18/2020, 2:18 PMkai widmer
08/18/2020, 2:35 PMFAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared:compileKotlinIos'.
> java.lang.ClassNotFoundException: org.jetbrains.kotlin.cli.utilities.MainKt
gradlew --version:
------------------------------------------------------------
Gradle 6.5.1
------------------------------------------------------------
Build time: 2020-06-30 06:32:47 UTC
Revision: 66bc713f7169626a7f0134bf452abde51550ea0a
Kotlin: 1.3.72
Groovy: 2.5.11
Ant: Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM: 1.8.0_242-release (JetBrains s.r.o 25.242-b3-6222593)
OS: Mac OS X 10.15.6 x86_64
Did anybody have a similar problem?John O'Reilly
08/18/2020, 3:45 PM1.3.9-native-mt
version now available https://github.com/Kotlin/kotlinx.coroutines/issues/462#issuecomment-675553478Ricky
08/18/2020, 7:51 PMedenman
08/19/2020, 2:23 AMKClass<T>
and I would like to get a corresponding `KType`….KClass.createType
is JVM-only, anybody know if there’s a KMP way to do this?Sergei Novikov
08/19/2020, 6:57 AMnrobi
08/19/2020, 10:16 AMwithContext(Dispatchers.Default)
work with coroutines 1.3.8-native-mt-1.4.0-rc
on iOS as well? I’m getting There is no event loop. Use runBlocking { ... } to start one.
tylerwilson
08/19/2020, 2:44 PMNick
08/19/2020, 3:39 PMxcodebuild
fails to build the Pods.xcodeproj with error 65.
** BUILD FAILED **
The following build commands failed
CompileC [long dir]/AbstractQuoteEventSchema.o [long dir]/AbstractQuoteEventSchema.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC [long dir]/AccountBalanceMessageHandler.o [long dir/AccountBalanceMessageHandler.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
Evan
08/19/2020, 9:43 PMandroidTest
and androidAndroidTest
interact?
I can’t run instrumentation tests unless I comment out `androidTest`’s dependencies due to a duplicate class exception. Also, my androidTest
unit tests don’t pass if I have dependencies in androidAndroidTest
, but they pass once I comment the instrumentation dependencies out.hultgren
08/20/2020, 1:36 AMandroid {
publishLibraryVariants("release", "debug")
}
used to work fine but after migrating I get this error:
Kotlin target 'android' tried to set up publishing for Android build variants that are not library variants or do not exist:
* release
* debug
Check the 'publishLibraryVariants' property, it should point to existing Android library variants. Publishing of application and test variants is not supported.Replacing above with
publishAllLibraryVariants()
does build, but it publishes no android artifacts.
Anyone else seen this?Oleh
08/20/2020, 8:52 AMCould not resolve io.ktor:ktor-client-json-native:1.4.0.
all the time. When I setup only core
dependency, android/ios client doesn’t appear there.ribesg
08/20/2020, 11:51 AMexpect
-actual
things, do you need to copy the KDoc on each actual
on each platform or is documenting expect
enough? I’m talking mostly from a IDEA-picking-it-up point of viewKris Wong
08/20/2020, 2:33 PMErik Christensen
08/21/2020, 3:36 AMJsName()
without having to do it by hand.Tristan
08/21/2020, 1:44 PMMarcin Bak
08/21/2020, 2:44 PMshared-library
(kmp targeting jvm, js and ios) with just 1 class in commonMain
• jvmApp
(simple jvm module) with dependency to shared-library implementation(project(path = ":shared-library"))
For some reason jvmApp
module doesn’t see the class defined in shared-library
Any ideas what I could be doing wrong?Wolf Logan
08/21/2020, 5:51 PMFAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileKotlinJvm'.
> Internal compiler error. See log for more details
. . .
/xxx/xxx/xxx.kt:57
@PutMapping("/{userId}", consumes = [MediaType.APPLICATION_JSON_VALUE])
^
e: org.jetbrains.kotlin.util.KotlinFrontEndException: Exception while analyzing expression at (57,39) in /xxx/xxx/xxx.kt
at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.logOrThrowException(ExpressionTypingVisitorDispatcher.java:253)
. . .
Caused by: java.lang.NoSuchMethodError: kotlin.sequences.SequencesKt.flatMapIterable(Lkotlin/sequences/Sequence;Lkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
at org.jetbrains.kotlin.resolve.calls.components.CollectionTypeVariableUsagesInfo.getDependentTypeParameters(ResolutionParts.kt:364)
Carter
08/21/2020, 8:26 PMplugins {
kotlin("multiplatform")
kotlin("plugin.serialization")
}
App module, which depends on library module, declares:
plugins {
kotlin("multiplatform")
id("application")
}
My settings.gradle.kts declares:
pluginManagement {
plugins {
kotlin("multiplatform") version("1.4.0")
kotlin("plugin.serialization") version("1.4.0")
}
}
takahirom
08/22/2020, 8:18 AMoshai
08/23/2020, 12:16 PMartifactId
? It looks like it ignores that directive in the jar nameMarc Knaup
08/23/2020, 3:53 PMprivate val hash: Int by lazy { … }
but lazy
doesn’t work across threads in Native afaik.Marc Knaup
08/23/2020, 7:59 PMwithJava()
(B) multiplatform library with JVM target that depends on (A) - (no withJava()
)
If I add my java sources folder to the Kotlin JVM target of (A), then (A) compiles successfully but (B) can’t see the Java symbols.
If I add my java sources folder to the entire project (just like in a normal Java project) of (A) then (A) doesn’t see the symbols but (B) does.
If I specify the source set configuration for both in (A), i.e. in the Kotlin JVM target AND in the Java project, then it works fine in both 🤔
What’s the right way to set that up?