Uh oh. I'm seeing crashes on the native code: ```k...
# kotest-contributors
a
Uh oh. I'm seeing crashes on the native code:
Copy code
kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen io.kotest.assertions.BasicAssertionCounter@edc548
        at kfun:kotlin.Throwable.<init>(kotlin.String?;kotlin.Throwable?)kotlin.Throwable (0000000000456260)
        at kfun:kotlin.Throwable.<init>(kotlin.String?)kotlin.Throwable (0000000000456550)
        at kfun:kotlin.Exception.<init>(kotlin.String?)kotlin.Exception (000000000044ffe0)
        at kfun:kotlin.RuntimeException.<init>(kotlin.String?)kotlin.RuntimeException (000000000044fbd0)
        at kfun:kotlin.native.concurrent.InvalidMutabilityException.<init>(kotlin.String)kotlin.native.concurrent.InvalidMutabilityException (000000000047ca30)
        at ThrowInvalidMutabilityException (000000000047cbc0)
        at MutationCheck (00000000007b8610)
        at kfun:io.kotest.assertions.BasicAssertionCounter.<set-counter>#internal (00000000005ef300)
        at kfun:io.kotest.assertions.BasicAssertionCounter.inc() (00000000005ef440)
        at kfun:io.kotest.matchers.shouldBe@T.(U?){0<kotlin.Any?>;1<T>}Generic (0000000000618230)
        at Konan_start (0000000000494fb0)
To achieve mutable XOR global invariant, all globally visible state (currently, object singletons and enums) are automatically frozen. If object freezing is not desired, a kotlin.native.ThreadLocal annotation can be used, which will make the object state thread local, and so, mutable (but the changed state is not visible to other threads).
s
ok
I can fix that
a
Clikt's tests pass on all platforms using the lastest snapshot, so other than publishing, 4.1.0 seems good to go from my perspective. https://github.com/ajalt/clikt/pull/195/checks
👍🏻 1
s
Great