Animesh Sahu
08/31/2020, 1:57 PMBig Chungus
08/31/2020, 2:35 PMcolintheshots
08/31/2020, 3:31 PM* What went wrong:
An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.jvm', version: '1.4.0']
> Failed to apply plugin [id 'org.jetbrains.kotlin.jvm']
> The current Gradle version 5.2.1 is not compatible with the Kotlin Gradle plugin. Please use Gradle 5.3 or newer, or the previous version of the Kotlin plugin.
Alex Anisimov
08/31/2020, 6:09 PMM. Taufiq Hidayat
08/31/2020, 11:28 PMvinny2020
09/01/2020, 4:07 AMaddamsson
09/01/2020, 9:04 AMentity::class.members.filterIsInstance<KProperty<Entity>>().forEach { p ->
println("prop: $p")
}
it doesn't filter for Entity
. I've read somewhere that there is support for this, I just can't find itDALDEI
09/01/2020, 11:03 AMpublic <T extends JsonNode> T set(String fieldName,
JsonNode value)
Is throwing off Kotlins type inference for expressions like
val node : ObjectNode = /// assign
val value : JsonNode = // assign
node.set("field" , value )
and
node["field"] = value
The error is cannot determine type for type parameter T
I can get the former to work with
node.set<JsonNode>( "field", value )
I have not gotten the later to work at all -- I dont know how to explicty type the fun type parameters to an operator overload
These lame attempts didnt work -- but I didnt expect them
node<JsonNode>{"field" ] = value
node([<JsonNode>) "field" ] = valueTwoClocks
09/02/2020, 5:26 AMforEach{}
over it? Does it explode, or what?thana
09/02/2020, 8:36 AMwhen
into an error? (i know i can turn the when
statements themselves into expressions, but sometimes this gets forgotten)Philipp Mayer
09/02/2020, 8:53 AMShabinder Singh
09/02/2020, 3:58 PMjanvladimirmostert
09/02/2020, 8:00 PMinfix fun postgresql.DESC(value: Unit): postgresql {
return this
}
}
fun main() {
postgresql {
SELECT (
ListingTable::section, ListingTable::id,
ListingImageTable::name, ListingImageTable::listingId
) FROM (
ListingTable::class
) LEFT JOIN (
ListingImageTable::class
) ON (
ListingTable::id == ListingImageTable::id
) WHERE (
true
) ORDER BY(ListingTable::modified) DESC Unit
}
eygraber
09/02/2020, 8:45 PM::kotlinx.serialization.json.JsonObject
throws a compiler errorTwoClocks
09/02/2020, 10:29 PMrequire(foo != null)
then after that the compiles knows foo can't be null. But if I assertTrue( foo != null)
I have to use foo?.
or foo!!.
there after. why is that? Both require
and assertTrue
throw exceptions... why can't the compiler figure it for one and not the other? Or is it just a hard-coded list of functions someplace?groostav
09/03/2020, 2:17 AMArtem Kopan
09/03/2020, 11:53 AMNurBahnhof
09/03/2020, 3:14 PMuser
09/03/2020, 3:30 PMNurBahnhof
09/03/2020, 3:57 PMstephanmg
09/03/2020, 4:49 PMWesley Acheson
09/03/2020, 4:51 PMAlexJuca
09/03/2020, 5:41 PMclass CustomKlass(val status: Int = 0,
val code: String? = null,
val message: String? = null,
val type: String? = null): ErrorResponse {
}
Is it possible to generate a function with the same parameters as this class (possibly at compile time) ?MrNiamh
09/03/2020, 6:05 PMuser
09/04/2020, 10:43 AMstephanmg
09/04/2020, 12:57 PMFailed to apply plugin [id 'org.jetbrains.kotlin.jvm']
223 > The current Gradle version 5.1.1 is not compatible with the Kotlin Gradle plugin. Please use Gradle 5.3 or newer, or the previous version of the Kotlin plugin.
muliyul
09/04/2020, 1:21 PMGus
09/04/2020, 1:29 PMTheClass.Companion::method
works, but is there an alternative that doesn't involve using .Companion
? Something like TheClass::method
would've been great but it only works with instance methods. I'm using Kotlin 1.4 in case that's relevant.pp.amorim
09/04/2020, 3:00 PMpp.amorim
09/04/2020, 3:01 PMpp.amorim
09/04/2020, 3:01 PMDavid Silva
09/04/2020, 3:14 PMoutadoc
09/04/2020, 3:21 PMTobias Berger
09/04/2020, 3:24 PMoutadoc
09/04/2020, 3:27 PMJonathan Mew
09/04/2020, 3:53 PMephemient
09/04/2020, 11:53 PMAnimesh Sahu
09/05/2020, 4:50 AM