kierans777
02/08/2022, 11:30 PM> Task :my-library:linkDebugTestIosX64 FAILED
e: Could not find "io.kotest:kotest-assertions-api" in [ ... ]
FAILURE: Build failed with an exception.
// kotestVersion = "5.1.0"
commonTest {
dependencies {
implementation "io.kotest:kotest-framework-engine:${rootProject.ext.kotestVersion}"
implementation "io.kotest:kotest-assertions-core:${rootProject.ext.kotestVersion}"
implementation "io.kotest:kotest-property:${rootProject.ext.kotestVersion}"
implementation "io.kotest.extensions:kotest-assertions-arrow:1.2.2"
runtimeOnly "io.kotest:kotest-assertions-api:${rootProject.ext.kotestVersion}"
}
}
sam
02/08/2022, 11:32 PMkierans777
02/08/2022, 11:57 PMkotest-assertions-api-iosarm64
lib is on disk as is arrow-core-iosarm64
(which is a commonMain
dependency). However the linker isn't looking in the cache
directory in the list of paths. I might ask this question over on the #multiplatform channel.sam
02/09/2022, 1:41 AMkierans777
02/09/2022, 2:28 AM./gradlew iosX64Test --info
and it might be an issue integrating kotest-assertions-arrow
Classpath = [
/Users/kieran/.konan/kotlin-native-prebuilt-macos-x86_64-1.6.0/konan/lib/kotlin-native.jar
/Users/kieran/.konan/kotlin-native-prebuilt-macos-x86_64-1.6.0/konan/lib/trove4j.jar
]
Arguments = [
-p
static_cache
-target
ios_x64
-g
-Xexternal-dependencies=/var/folders/90/rnmkftm10551d62mjt897mym0000gn/T/kotlin-native-external-dependencies4001252806988445666.deps
-Xadd-cache=/Users/kieran/.gradle/caches/modules-2/files-2.1/io.kotest.extensions/kotest-assertions-arrow-iosx64/1.2.2/2da466c9780a787c5b7f8cd310cf37c82b36f754/kotest-assertions-arrow.klib
-Xcache-directory=/Users/kieran/.konan/kotlin-native-prebuilt-macos-x86_64-1.6.0/klib/cache/ios_x64-gSTATIC/kotest-assertions-arrow-iosx64/1.2.2/7cbae098c9d28e7b9d2d5cc67e2abbde4474614cc1168b690793b82432bd28dc
-Xcache-directory=/Users/kieran/.konan/kotlin-native-prebuilt-macos-x86_64-1.6.0/klib/cache/ios_x64-gSTATIC
]
Transformed arguments = [
konanc
-p
static_cache
-target
ios_x64
-g
-Xexternal-dependencies=/var/folders/90/rnmkftm10551d62mjt897mym0000gn/T/kotlin-native-external-dependencies4001252806988445666.deps
-Xadd-cache=/Users/kieran/.gradle/caches/modules-2/files-2.1/io.kotest.extensions/kotest-assertions-arrow-iosx64/1.2.2/2da466c9780a787c5b7f8cd310cf37c82b36f754/kotest-assertions-arrow.klib
-Xcache-directory=/Users/kieran/.konan/kotlin-native-prebuilt-macos-x86_64-1.6.0/klib/cache/ios_x64-gSTATIC/kotest-assertions-arrow-iosx64/1.2.2/7cbae098c9d28e7b9d2d5cc67e2abbde4474614cc1168b690793b82432bd28dc
-Xcache-directory=/Users/kieran/.konan/kotlin-native-prebuilt-macos-x86_64-1.6.0/klib/cache/ios_x64-gSTATIC
]
e: Could not find "io.kotest:kotest-assertions-api" in ...
sam
02/09/2022, 2:39 AMkierans777
02/09/2022, 2:55 AMsam
02/09/2022, 2:56 AMkierans777
02/09/2022, 2:56 AMsam
02/09/2022, 2:56 AMkierans777
02/09/2022, 2:57 AMcompileOnly
dependencies which MPP does give a warning about (however they've been suppressed via the gradle.properties
)sam
02/09/2022, 3:00 AMkierans777
02/09/2022, 3:11 AMsam
02/09/2022, 3:12 AMkierans777
02/09/2022, 8:53 AMImran/Malic
02/09/2022, 10:57 AMkierans777
02/09/2022, 10:58 AMImran/Malic
02/09/2022, 11:07 AMsam
02/09/2022, 11:13 AMkierans777
02/09/2022, 12:26 PMImran/Malic
02/09/2022, 12:41 PM@sam
I don’t think the arrow stuff itself is entirely setup right for mpp as I can’t get the core commons stuff to load on another projectWhat for instance the kotlin-stdlib has as
kotlin-stdlib-commons
is in arrow just the artifact name. So in the case of Arrow core it’s just arrow-core
, the changes in the publication can be seen here https://github.com/arrow-kt/arrow-gradle-config/blob/5037bfd3b6c3bd000163123876635[…]%3Afirst-of-type%2C%20%5Bdata-pjax-container%5D%3Afirst-of-typesam
02/09/2022, 1:36 PMImran/Malic
02/09/2022, 8:48 PMkotest-assertions-arrow
kierans777
02/09/2022, 9:29 PMImran/Malic
02/09/2022, 10:28 PM1.1.0.98-SNAPSHOT
which works fine now and I was able to run it here https://github.com/arrow-kt/Arrow-MPP-Template/pull/25/files if it works for you too I can create a 1.3.0
release with those changes or 1.2.3
kierans777
02/13/2022, 11:24 PMImran/Malic
02/14/2022, 11:33 PM1.2.3
as a stable release thanks to @sam 🙌🏾 and @kierans777 for bringing it up1.2.3
release the watchOsX86 is failing with the current node js version 14.17.0
> Task :watchosX86MainKlibrary
356
> Task :compileTestKotlinWatchosX86
357
> Task :linkDebugTestWatchosX86
358
> Task :watchosX86Test SKIPPED
359
> Task :allTests FAILED
360
361
362
FAILURE: Build failed with an exception.
363
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
364
365
366
* What went wrong:
367
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
368
Execution failed for task ':allTests'.
369
370
> Failed to execute all tests:
371
See <https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings>
372
:jsBrowserTest: java.lang.IllegalStateException: command '/Users/runner/.gradle/nodejs/node-v14.17.0-darwin-x64/bin/node' exited with errors (exit code: 1)
373
67 actionable tasks: 67 executed
https://github.com/arrow-kt/Arrow-MPP-Template/runs/5196846760?check_suite_focus=true
I am reverting to the Snapshot to check if this is a problem with out artifacts1.2.3
doesn’t seem to work on CI builds with a macos 11 runner. https://github.com/arrow-kt/Arrow-MPP-Template/runs/5197021874?check_suite_focus=true I rerun the snapshot and it worked with the same runner. On my local machine macos 12.X both work without issues1.2.3
just merged it here https://github.com/arrow-kt/Arrow-MPP-Template