Adam S
06/05/2023, 7:40 PMFileSystem.SYSTEM.read(path)
in commonMain?jw
06/05/2023, 7:42 PMjw
06/05/2023, 7:43 PMAadesh Maheshwari
06/06/2023, 6:28 AMiosX64() iosArm64() iosSimulatorArm64()
but this library gives error which used in my KMM project. Error stack
```
Task widgetcompileKotlinIosSimulatorArm64 FAILED
e: Could not find "org.jetbrains.kotlin.native.platform.CoreFoundationBase" in [/Users/Documents/felix, /Users/.konan/klib, /Users/.konan/kotlin-native-prebuilt-macos-aarch64-1.7.21/klib/common, /Users/.konan/kotlin-native-prebuilt-macos-aarch64-1.7.21/klib/platform/ios_simulator_arm64]FAILURE: Build failed with an exception. Any help is much appreciated!
Kirill Zhukov
06/06/2023, 10:40 PM-- someTable.sq 0.sq
CREATE TABLE someTable(
id TEXT NOT NULL PRIMARY KEY
)
-- someTable.sq 1.sq
CREATE TABLE someTable(
id TEXT NOT NULL PRIMARY KEY,
value INT NOT NULL
)
-- 1.sqm
ALTER TABLE someTable ADD COLUMN value INT NOT NULL DEFAULT 42;
This doesn’t pass SqlDelight tests because someTable.sq
schema does not define default value, which I don’t want…Is it possible to make ADD COLUMN
work here without forcing original schema to define default value, or is my best bet here to do manual table re-creation (create new table with new schema, move values there, delete old table, rename new table)?Slackbot
06/07/2023, 2:14 PMAyla
06/08/2023, 5:17 AMjson_each()
is not valid in .sq
file, will it be supported in the future?adte
06/10/2023, 1:21 PMStylianos Gakis
06/12/2023, 9:36 AMclass FakeFoo : Foo {
val responseTurbine = Turbine<Bar>()
override suspend fun invoke(): Bar {
return responseTurbine.awaitItem()
}
}
Then in a test, I am testing the result of a StateFlow, which comes from a result of combining two things, something like this
val data: StateFlow<State> = combine(someOtherFlow, flow { emit(FakeFoo().invoke()) }.onStart{ emit(null) }) { someOtherFlowValue, bar -> State(someOtherFlowValue, bar) }
But in one particular test I am not interested in the result of FakeFoo, so I want to rely on just the initial value emitted from the onStart
(Is a StateFlow with a default value in my case) to only test the other half of the combine
, whatever comes from someOtherFlow
. However, since this Turbine<Bar>
doesn’t ever get a value, but I am awaiting on it, it crashes my test with “no value received in X seconds”.
Doing cancelAndIgnoreRemainingEvents()
isn’t an option either, since now instead of infinitely waiting on awaitItem()
it will instead crash with “Expected item but found Error”.
Is there some other approach I can take instead? Maybe I shouldn’t be using a Turbine for my fake impl? I’ve taken inspiration to go with this approach from and it has worked flawlessly in all the other cases I’ve tried.Colton Idle
06/15/2023, 2:22 AMjw
06/15/2023, 2:24 AMColton Idle
06/15/2023, 2:28 AMColton Idle
06/15/2023, 2:31 AMjw
06/15/2023, 2:34 AMjw
06/15/2023, 2:35 AMColton Idle
06/15/2023, 4:32 AMjw
06/15/2023, 4:35 AMresolve()
with a relative or absolute path. if you do care about query parameters and/or fragments you would need to call newBuilder()
and then manipulate the path using its APIRohan Maity
06/15/2023, 7:32 AMjulioromano
06/15/2023, 9:13 AMMutableState
twice usually causes 2 recompositions (one per mutation), but doing the same inside a launch{}
lambda will only cause 1 recomposition.
Repro test case is included in the issue.audriusk
06/15/2023, 4:13 PMDerek Ellis
06/15/2023, 4:20 PMLukellmann
06/15/2023, 10:32 PMAnnotationSpec.get(annotation: Annotation, includeDefaultValues: Boolean)
annotated with @DelicateKotlinPoetApi
? The message says "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.". However types in annotation are already pretty restricted in Kotlin due to JVM restrictions (no `null`s, only primitives, strings, enums, arrays, classes and other annotations). So I wasn't able to think of a situation that Java reflection wouldn't be able to extract all information needed for that function. Is there a situation that wouldn't work with Java reflection? And if not, is there another reason for the annotation?Trey
06/16/2023, 6:21 PMimport app.cash.sqldelight.coroutines.asFlow
import app.cash.sqldelight.coroutines.mapToList
alec
06/16/2023, 6:22 PMalec
06/16/2023, 6:22 PMalec
06/16/2023, 6:22 PMalec
06/16/2023, 6:22 PMmohamed rejeb
06/17/2023, 3:13 PMjw
06/17/2023, 3:18 PM