alec
07/04/2020, 12:50 PMlouiscad
07/07/2020, 6:56 AMokhttp3.internal.http2.StreamResetException: stream was reset: CANCEL
unless I add logging with BODY
level:
.addInterceptor(HttpLoggingInterceptor(logger = HttpLoggingInterceptor.Logger.DEFAULT)
.setLevel(HttpLoggingInterceptor.Level.BODY))
Whenever I disable body logging, I get the cryptic exception aforementioned, and I don't get why.
Where should I look for?
I can commit and push my work for reproducing if needed since its open source.Siggi Gunnarss
07/08/2020, 11:47 AMlinux_x64
target (the main targets are android and iOS, but I maintain a linux target to run native tests without a mac).
The project builds fine if i comment out the linux target. When I include it I get build errors:
Required org.jetbrains.kotlin.native.target 'linux_x64' but no value provided.
- Variant 'mingw-api' capability com.squareup.sqldelight:native-driver:1.4.0:
- Incompatible attribute:
- Required org.jetbrains.kotlin.native.target 'linux_x64' and found incompatible value 'mingw_x64'
I can't see in the documentation, is there maybe no support for linux native in SqlDelight?Sam
07/09/2020, 9:17 AMNot Work:
@GET("/users")
suspend fun getUsers(
@QueryMap params:Map<String,Any>): BaseResponse<List<UserDto>>
Work:
@GET("/users")
suspend fun getUsers(
@Query("lat") lat:Double,
@Query("long") lon:Double,
@Query("genders")genders: String,
@Query("age_max") ageMax:Int,
@Query("age_min") ageMin:Int
): BaseResponse<List<UserDto>>
My Repository implement:
fun search(params:Map<String,Any>) = flow {
emit(service.getMatchedUsers(params
).data.map {
it.mapToDomainModel() }.toList())
}
alec
07/13/2020, 11:56 AMgsala
07/23/2020, 8:51 AMjw
07/27/2020, 2:40 PMadams2
08/03/2020, 3:24 PMwasyl
08/08/2020, 4:03 PMContributesBinding
doesn’t support multibindings or qualifiers. Is support planned (or will be accepted if someone contributes), or there are some issues with it/it’s not in the scope of the library?Rohan Maity
08/10/2020, 12:05 PMColton Idle
08/12/2020, 10:43 PMsuspend fun getItem(): Response<Any>
Doesn't compile... and my google fu (im assuming someone has inquired about this before) is failing me.Bruno Kongawi
08/13/2020, 10:38 PMtimrijckaert
08/21/2020, 11:09 AMSQLDelight
statements but keep the type safety?
It seems like using named arguments will result in all arguments being generated as `String`s
Simple example:
SQL Statement:
UPDATE UploadItem SET lastModifiedTimeStamp = ? WHERE id = ?
Will generate:
fun updateUploadState(
lastModifiedTimeStamp: Long,
id: Long
)
Which is correct ✅
However when using named args:
UPDATE UploadItem SET lastModifiedTimeStamp = (:someOtherNameForLastModifiedTimeStamp || ' ?') WHERE id = (:someOtherName || ' ?')
Will generate:
fun updateUploadState(
someOtherNameForLastModifiedTimeStamp: String,
someOtherName: String
)
andev
08/22/2020, 6:49 PMcreate table
statements with the right orderkevin.cianfarini
08/26/2020, 1:43 AM./gradlew jmh
is only running writeHex benchmarks? This is my first time dipping my toes in JMH so any help is appreciated 😬jw
08/28/2020, 3:30 AMJeff
08/30/2020, 5:52 AMNikky
08/30/2020, 9:39 AMElka
08/31/2020, 6:18 AMnull
attributes specially that the JSON does NOT include the keys with null values like "someAtt": null
.
We're open to any suggestion on how to handle this considering that we have 40+ tables and we prefer if we don't duplicate the model or write the serializers ourselves.jw
08/31/2020, 12:29 PMjameswald
08/31/2020, 11:20 PMjanvladimirmostert
09/05/2020, 8:52 AMElka
09/08/2020, 11:29 AMINSERT OR REPLACE
would cause the record to be deleted and reinserted which might trigger foreignkey updates like ON CASCADE DELETE...jessewilson
09/27/2020, 1:43 AMnrobi
09/29/2020, 7:46 AMSqlDelight 1.4.3
?https://github.com/cashapp/sqldelight/issues/1992alec
10/05/2020, 12:59 PMColton Idle
10/08/2020, 3:31 AMColton Idle
10/16/2020, 1:34 PMsaket
10/27/2020, 3:06 PMCyril Find
11/03/2020, 8:39 AMType mismatch: inferred type is Long? but Any was expected
error on the Long?
type in generated methods that look like this override fun ReadPost(): GrpcCall<Long?, Post> =...
(from rpc ReadPost(google.protobuf.UInt64Value) returns (Post) {}
)
I dont understand what's going on and I can't seem to find anything on SO or anywhere. It's the first time I use this kinda stuff so maybe I forgot something silly ?Cyril Find
11/03/2020, 8:39 AMType mismatch: inferred type is Long? but Any was expected
error on the Long?
type in generated methods that look like this override fun ReadPost(): GrpcCall<Long?, Post> =...
(from rpc ReadPost(google.protobuf.UInt64Value) returns (Post) {}
)
I dont understand what's going on and I can't seem to find anything on SO or anywhere. It's the first time I use this kinda stuff so maybe I forgot something silly ?UINT64_VALUE: ProtoAdapter<Long?>
but GrpcCall
doesn't accept nullables: interface GrpcCall<S : Any, R : Any>
google.protobuf.UInt64Value
by a redefined CustomUInt64Value { uint64 value = 1; }
works but it seems weird to me
is this a bug i should file somewhere ?egorand
11/04/2020, 1:42 AMCyril Find
11/04/2020, 1:39 PM