jdiaz
04/07/2019, 6:04 PMAn exception occurs during Evaluate Expression Action : More than one package fragment, files: [KtFile: debugFile.kt, KtFile: ConfigProvider.kt] | fragments: [package com.jdiazcano.cfg4k.providers, package com.jdiazcano.cfg4k.providers]
an exception from [this](https://github.com/JetBrains/kotlin/blob/683c2b0434d0d69c9a4bd85a28c437a71dc2b39b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/debugger/evaluate/KotlinEvaluationBuilder.kt#L178) line (inside kotlin code)Slackbot
04/08/2019, 2:04 AMSmallville7123
04/08/2019, 6:47 AMPluginSpecBuildersFor$f1aa8c20a83a561deeaf97817f973d9f.kt 14 warnings
Line is longer than allowed by code style (> 120 columns)
/home/macropreprocessor/AndroidStudioProjects/kppmaster/buildSrc/build/generated-sources/kotlin-dsl-external-plugin-spec-builders/kotlin/gradle/kotlin/dsl/plugins/PluginSpecBuildersFor$f1aa8c20a83a561deeaf97817f973d9f.kt
* The `org.gradle.build-announcements` plugin implemented by [org.gradle.api.plugins.announce.BuildAnnouncementsPlugin].
Bernhard
04/10/2019, 11:33 AMSmallville7123
04/14/2019, 3:31 PMGerard Klijs
04/14/2019, 5:54 PMDias
04/15/2019, 11:31 AMthis
it says this@post is not captured
Smallville7123
04/15/2019, 12:42 PM"Delegate build to Gradle: (Settings - Build, Execution, Deployment - Build Tools - Gradle - Build and Run using Gradle (default: Idea)). "
Dias
04/16/2019, 9:51 AMAndrew Gazelka
04/16/2019, 9:31 PMgsala
04/17/2019, 2:09 PMsteamstreet
04/21/2019, 3:12 AMSmallville7123
04/21/2019, 10:34 AMdiesieben07
04/21/2019, 5:17 PMimport
is impossibleGarouDan
04/22/2019, 12:23 PMqualified names
of my modules on IntelliJ? Or how can I configure the qualified modules names in .gradle.kts
files?
When importing a gradle project I would like it automatically creates the modules tree, but it is not creating it properly.
Since the other option explicit module groups
seems to be something manual, that will disappear in the next project refresh, I would like to create something persistent,
that will work across projects re-imports.vach
04/22/2019, 10:51 PMEugen Martynov
04/23/2019, 5:58 AMdata class A(val topProperty: String)
to data class A(...) { data class B(val innerProperty: String)}
Czar
04/23/2019, 8:56 AMpoohbar
04/23/2019, 2:07 PMVariables
tab during debugging?Scott White
04/24/2019, 3:16 PMMichael Bryant
04/24/2019, 10:11 PMMike
04/25/2019, 10:24 AMRobert Menke
04/28/2019, 2:45 PMScott Dudley
04/30/2019, 12:57 PMNikky
04/30/2019, 5:10 PMelect
05/02/2019, 8:31 AMinfix operator fun <N> N.minus(other: N): N where N : Number, N : Comparable<N> =
when {
this is Byte && other is Byte -> this - other
this is Short && other is Short -> this - other
this is Int && other is Int -> this - other
// this is Long && other is Long -> this - other
// this is Float && other is Float -> this - other
else -> error("Invalid operand types")
} as N
Everything works fine, smart casting is kicking in properly.
However if I comment out one the last two lines, then it cast automatically the result to Any
... ??DALDEI
05/05/2019, 6:36 AMRobert Menke
05/05/2019, 5:03 PMBernhard
05/06/2019, 10:53 AMval method = result.jsonObject?.get("result")?.asString
?: throwInsertionError(result)
return when (method) {
elect
05/07/2019, 9:07 AM0f == (-0f)
as false
, which is wrongelect
05/07/2019, 9:07 AM0f == (-0f)
as false
, which is wrongDias
05/07/2019, 9:24 AMAlthough negative zero and positive zero are generally considered equal for comparison purposes, some programming language relational operators and similar constructs treat them as distinct. According to the Java Language Specification,[5] comparison and equality operators treat them as equal, but Math.min() and Math.max() distinguish them (officially starting with Java version 1.1 but actually with 1.1.1), as do the comparison methods equals(), compareTo() and even compare() of classes Float and Double
karelpeeters
05/07/2019, 9:27 AMtrue
with false
.Dias
05/07/2019, 9:30 AMkarelpeeters
05/07/2019, 9:30 AMAccording to the Java Language Specification,[5] comparison and equality operators treat them as equal
Dias
05/07/2019, 9:31 AMbut Math.min() and Math.max() distinguish them (officially starting with Java version 1.1 but actually with 1.1.1), as do the comparison methods equals(), compareTo() and even compare() of classes Float and Double
karelpeeters
05/07/2019, 9:31 AM==
, but not according to Float.equals
.java.lang.Float.equals
docs:
If f1 represents +0.0f while f2 represents -0.0f, or vice versa, the equal test has the value false, even though 0.0f==-0.0f has the value true.
Dias
05/07/2019, 9:33 AMkarelpeeters
05/07/2019, 9:36 AMval posPrimitive: Float = 0.0f
val negPrimitive: Float = -0.0f
val posBoxed: Float? = posPrimitive
val negBoxed: Float? = negPrimitive
println(posPrimitive == negPrimitive) //true
println(posBoxed == negBoxed) //true
println(posBoxed?.equals(negBoxed)) //false
true, false, true
.Dias
05/07/2019, 9:39 AMprintln(posPrimitive.equals(negPrimitive)) //false
karelpeeters
05/07/2019, 9:40 AMFloat.equals
function, so according to the docs that makes sense.elect
05/07/2019, 9:41 AMkarelpeeters
05/07/2019, 9:42 AM