https://kotlinlang.org
Join Slack
How is the status om running KMM on iOS simulator on M1 Mac? I create new project using latest versi...
b

Bill Mårtensson

over 4 years ago
How is the status om running KMM on iOS simulator on M1 Mac? I create new project using latest version. Can run on device but not on simulator.
ld: warning: ignoring file /Users/xxxx/project/android/yyyy/shared/build/cocoapods/framework/shared.framework/shared, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64
Undefined symbols for architecture arm64:  "_OBJC_CLASS_$_SharedGreeting", referenced from:    objc-class-ref in ContentView.o ld: symbol(s) not found for architecture arm64
✅ 2
b
o
+2
  • 4
  • 23
  • 421
I’m testing whether my compiler plugin compiled with 2.1.0 previews will be compatible with consumin...
d

Drew Hamilton

12 months ago
I’m testing whether my compiler plugin compiled with 2.1.0 previews will be compatible with consuming projects still using 2.0.x. I’m not using any compiler APIs that broke, but I’m getting this error in the consuming project:
> Task :mpp:transformCommonMainDependenciesMetadata
e: KLIB resolver: Could not find "/home/runner/work/Poko/Poko/sample/mpp/build/kotlinTransformedMetadataLibraries/commonMain/org.jetbrains.kotlin-kotlin-stdlib-2.1.0-RC2-commonMain-ITmP6A.klib" in [/home/runner/.local/share/kotlin/daemon]

> Task :mpp:compileCommonMainKotlinMetadata FAILED
w: KLIB resolver: Skipping '/home/runner/work/Poko/Poko/sample/mpp/build/kotlinTransformedMetadataLibraries/commonMain/org.jetbrains.kotlin-kotlin-stdlib-2.1.0-RC2-commonMain-ITmP6A.klib'. Incompatible ABI version. The current default is '1.8.0', found '1.201.0'. The library was produced by '2.1.0-dev-7621' compiler.
Does the klib format have some breaking change in Kotlin 2.1 that makes this inherently incompatible? Full stacktrace here.
d
j
  • 2
  • 1
  • 420
Is there any EASY way to get the body's object content from Ktor client's MockEngine's requestHistor...
d

dave08

almost 3 years ago
Is there any EASY way to get the body's object content from Ktor client's MockEngine's requestHistory?
d
a
k
  • 3
  • 11
  • 420
Seeing an inconsistent issue with initialising Koin when running iosX64 tests on a multiplatform pro...
j

Jacob Hughes

almost 4 years ago
Seeing an inconsistent issue with initialising Koin when running iosX64 tests on a multiplatform project. I see get the following error when I run the entire suite of tests
kotlin.IllegalStateException: KoinApplication has not been started
. When I run the test individual the test passes as expected. For context each of my test classes extends implements this abstract class:
abstract class KoinTest : KoinComponent {

    @BeforeTest
    fun beforeTest() {
        println("Starting Koin")
        startKoin {
            printLogger(Level.ERROR)
            modules(
                module {
                    single { Log(testing = useMocks) }
                },
            )
        }
    }

    @AfterTest
    fun after() {
        stopKoin()
    }
}
From my build.gradle
dependencies {
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10")
        classpath("com.android.tools.build:gradle:7.0.4")
}
val commonTest by getting {
            dependencies {
                implementation(kotlin("test"))
                implementation(kotlin("test-common"))
                implementation(kotlin("test-annotations-common"))
                implementation("io.kotest:kotest-assertions-core:5.0.1")
                implementation("io.kotest:kotest-framework-engine:5.0.1")
                implementation("app.cash.turbine:turbine:0.7.0")
                implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-native-mt")
                implementation("io.insert-koin:koin-core:3.1.5")
            }
        }
Has anyone come across any similar issues?
j
a
  • 2
  • 2
  • 420
- Kover — the Code Coverage plugin Multiplatform support :tada:
j

Javier

about 4 years ago
• Kover — the Code Coverage plugin Multiplatform support 🎉
j
r
a
  • 3
  • 7
  • 420
Hi guys, is it possible with KSP to get the default value of a function parameter which function is ...
r

Rafael Costa

over 4 years ago
Hi guys, is it possible with KSP to get the default value of a function parameter which function is annotated? I am able to check if there is a default value for that parameter (using
KSValueParameter.hasDefault
), but not what that value is..
r
e
z
  • 3
  • 6
  • 420
Is there some way to disable overScroll effect in HorizontalPager by Accompanist?
a

Arpit Shukla

almost 4 years ago
Is there some way to disable overScroll effect in HorizontalPager by Accompanist?
a
a
+3
  • 5
  • 11
  • 419
I get `Could not resolve org.jetbrains.compose.ui:ui-tooling:1.3.1` and `Could not resolve org.jetbr...
m

Marko Novakovic

over 2 years ago
I get
Could not resolve org.jetbrains.compose.ui:ui-tooling:1.3.1
and
Could not resolve org.jetbrains.compose.ui:ui-tooling-preview:1.3.1
respectively when I add
implementation(compose.uiTooling)
or `implementation(compose.preview)` to
build.gradle.kts
any solution for this?
m
k
  • 2
  • 9
  • 419
Is it possible to write unit tests for a Compose Desktop project? If so, is there any “getting start...
m

Marc Fearby

almost 3 years ago
Is it possible to write unit tests for a Compose Desktop project? If so, is there any “getting started” page somewhere to help?
m
j
+2
  • 4
  • 12
  • 419
How do I drop all connections from my R2dbc client? ```io.r2dbc.postgresql.ExceptionFactory$Postgres...
s

S.

about 3 years ago
How do I drop all connections from my R2dbc client?
io.r2dbc.postgresql.ExceptionFactory$PostgresqlNonTransientResourceException: [53300] sorry, too many clients already]
s
t
  • 2
  • 14
  • 419
Previous160161162Next

kotlinlang

A modern programming language that makes developers happier.

Powered by