https://kotlinlang.org logo
#kotest
Title
# kotest
s

snowe

03/18/2024, 4:59 PM
For some reason kotest-property-arbs is not working correctly. Artifact seems fine, but the package is not found, neither in intellij nor the command line. Is it maybe because the property-arbs project is depending on an older version of kotest?
ah of course, as soon as I post I figure it out. I need to use the
*-jvm
artifact. I’ll make a pr to update the docs
e

Emil Kantis

03/18/2024, 5:17 PM
s

snowe

03/18/2024, 5:19 PM
hm. very interesting. we use maven in some projects and gradle in others and I’ve never noticed that we needed it in one location and not the other. So it seems like it was fixed with kotest mainline, but not with the property extensions then?
e

Emil Kantis

03/18/2024, 5:20 PM
Yeah. If you’d like, a PR to publish jvm in root would be welcome
👍🏽 1
s

snowe

03/18/2024, 6:27 PM
some of the docs were still incorrect so wanted to make a PR for that first. https://github.com/kotest/kotest/pull/3945/files
@Emil Kantis I’m getting this error trying to publish location. There’s no contributing documentation in the property-arbs repo. Is there a specific setup I need to do?
Copy code
java.lang.IllegalStateException: e: Could not find "/Users/tylerthrailkill/Documents/dev/oss/kotest-property-arbs/build/kotlinSourceSetMetadata/commonMain/org.jetbrains.kotlinx-kotlinx-datetime/org.jetbrains.kotlinx-kotlinx-datetime-commonMain.klib" in [/Users/tylerthrailkill/Library/Application Support/kotlin/daemon]
	at org.jetbrains.kotlin.library.SingleFileResolveKt$resolveSingleFileKlib$1.fatal(SingleFileResolve.kt:21)
	at org.jetbrains.kotlin.library.KotlinLibrarySearchPathResolver.resolve(SearchPathResolver.kt:175)
	at org.jetbrains.kotlin.library.KotlinLibrarySearchPathResolver.resolve(SearchPathResolver.kt:181)
	at org.jetbrains.kotlin.library.CompilerSingleFileKlibResolveStrategy.resolve(SearchPathResolver.kt:302)
	at org.jetbrains.kotlin.library.SingleFileResolveKt.resolveSingleFileKlib(SingleFileResolve.kt:24)
	at org.jetbrains.kotlin.library.SingleFileResolveKt.resolveSingleFileKlib$default(SingleFileResolve.kt:15)
	at org.jetbrains.kotlin.cli.metadata.KlibMetadataDependencyContainer.<init>(K2MetadataKlibSerializer.kt:122)
	at org.jetbrains.kotlin.cli.metadata.K2MetadataKlibSerializer$serialize$analyzer$1.invoke(K2MetadataKlibSerializer.kt:54)
	at org.jetbrains.kotlin.cli.metadata.K2MetadataKlibSerializer$serialize$analyzer$1.invoke(K2MetadataKlibSerializer.kt:48)
	at org.jetbrains.kotlin.cli.metadata.CommonAnalysisKt.runCommonAnalysisForSerialization(CommonAnalysis.kt:42)
	at org.jetbrains.kotlin.cli.metadata.K2MetadataKlibSerializer.serialize(K2MetadataKlibSerializer.kt:53)
	at org.jetbrains.kotlin.cli.metadata.K2MetadataCompiler.doExecute(K2MetadataCompiler.kt:117)
	at org.jetbrains.kotlin.cli.metadata.K2MetadataCompiler.doExecute(K2MetadataCompiler.kt:40)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:91)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:43)
	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:93)
	at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1623)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
	at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:360)
	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
	at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:598)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:844)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:721)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:720)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1589)
e

Emil Kantis

03/18/2024, 7:52 PM
hmm, that looks like something's broken with a dependency.. 😞
what'd you do to get that?
s

snowe

03/18/2024, 8:31 PM
tried
./gradlew publishToMavenLocal
e

Emil Kantis

03/18/2024, 8:36 PM
Same error for me
s

snowe

03/18/2024, 8:37 PM
😬
e

Emil Kantis

03/18/2024, 8:37 PM
Think it needs to have updated dependencies for a bunch of things
fixing so it's possible to build master..
👍🏽 1
s

snowe

03/19/2024, 7:14 PM
@Emil Kantis were you able to get it working on master?
e

Emil Kantis

03/19/2024, 7:16 PM
I had to start with the dependency,
kotest-property-datetime
. I managed to get that one working @ master yesterday so I can have 2nd go at
kotest-property-arbs
now
s

snowe

03/19/2024, 7:17 PM
so it’s just dependencies out of date? I was wondering if it was the datetime dependency, but it said
kotlinx-kotlinx-datetime
so I dismissed that as an option lol
e

Emil Kantis

03/19/2024, 8:16 PM
I'm not sure tbh 🙂
I'm fixing so they're available for all multiplatform targets as well.. but it's such a pain to publish multiplatform libraries..
s

snowe

03/19/2024, 8:27 PM
well thank you for the hard work!
2 Views