poohbar
08/02/2019, 3:18 PMDrew Hamilton
08/05/2019, 7:11 AMcarlw
08/07/2019, 5:57 PMpoohbar
08/08/2019, 2:27 PMIntelliJ IDEA 2019.2 (Ultimate Edition)
Build #IU-192.5728.98, built on July 23, 2019
Please note, that this is not a new thing. It always took more than 2 seconds for the inspections to kick in which was already unacceptable. As you can see now it's even worse and is completely unusable. But even if we go back to 2 seconds, it's still really bad.
https://i.imgur.com/PcwdG7Q.mp4jrgonzalez
08/09/2019, 9:29 AMjava.*
imports for Kotlin files on Android Studio (IntelliJ) when sorting / optimizing imports? For Java files there is a “Preferences - Code Style - Java - Imports - Import Layout” where I can remove the special handling of java.*
but for Kotlin I haven’t found a way to do it so I am continuously having issues with not properly sorted java imports when checking official Kotlin code style with ktlint.David Glasser
08/19/2019, 8:42 PMthis
in a scope?arekolek
08/20/2019, 9:19 AMclass Foo {
fun bar(): String = BAZ
}
private const val BAZ = "baz"
Stefan Beyer
08/21/2019, 11:37 AMabstract class BaseGreeter(val salutation: String) {
fun greet(name: String) = println("$salutation, $name!")
}
class HelloGreeter: BaseGreeter("Hello") {
// class specific stuff here
}
class HiGreeter: BaseGreeter("Hi") {
// class specific stuff here
}
class AhoiGreeter: BaseGreeter("Ahoi") {
// class specific stuff here
}
fun main() {
AhoiGreeter().greet("Kotlin")
}
into this:
abstract class BaseGreeter {
abstract val salutation: String
fun greet(name: String) = println("$salutation, $name!")
}
class HelloGreeter: BaseGreeter() {
override val salutation = "Hello"
// class specific stuff here
}
class HiGreeter: BaseGreeter() {
override val salutation = "Hi"
// class specific stuff here
}
class AhoiGreeter: BaseGreeter() {
override val salutation = "Ahoi"
// class specific stuff here
}
fun main() {
AhoiGreeter().greet("Kotlin")
}
I have some refactoring to do and this is a task that would probably take me half a day if I have to do this all manually ^^simon.vergauwen
08/21/2019, 1:03 PMinline function
refactor action is not working for me in a multi module project. Has any1 encountered this?
EDIT: also broken in IntelliJ IDEA 2019.1.3 (Ultimate Edition)
Build #IU-191.7479.19, built on May 28, 2019
JRE: 1.8.0_202-release-1483-b58 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.6
Kotlin plugin used: 1.3.41-release-IJ2019.1-1simon.vergauwen
08/23/2019, 2:36 PM2019.1
to 2019.2
and I need a fresh install it seems 😞 Hope I am alone and it’s something on my machine but take care.napperley
08/24/2019, 4:33 AMchristophsturm
08/27/2019, 3:08 PMmathew murphy
08/27/2019, 9:05 PM"DELETE FROM ${SCHEMA}.TABLENAME WHERE PK = ?"
, and then preparing statements and injecting values.
IntelliJ can't resolve the table ("Unable to resolve table TABLENAME"), and I can't work out how to either (a) tell it not to try for this specific string, or (b) tell it where the table is.ghedeon
08/28/2019, 6:28 AMarekolek
08/28/2019, 10:27 AMfun test(a: Pair<Int, String>, b: Pair<Int, String>): Boolean {
return a.first == b.first
&& a.second == b.second
}
and use extract variable refactoring to get:
fun test(a: Pair<Int, String>, b: Pair<Int, String>): Boolean {
val result = (a.first == b.first
&& a.second == b.second)
return result
}
you can see IDE added parentheses there. Aren’t those unnecessary? IDE doesn’t offer an intention to get rid of them. But if I do, it compiles and runs the same.ribesg
09/02/2019, 1:47 PMserebit
09/04/2019, 8:03 PMhooliooo
09/11/2019, 11:42 AMpoohbar
09/13/2019, 12:55 PM.trimIndent()
on multiline strings? I will trim indent when I decide to trim indent!poohbar
09/13/2019, 1:44 PMclass MyClass(private val xyz: String)
It seems like the debuggers stops in the constructor which is what I would expect. I would like to add a condition to the breakpoint to only stop when xyz
equals "myString"
but it won't let me access xyz
in the input field. Is this is a bug?Dico
09/21/2019, 10:00 PMkarelpeeters
09/25/2019, 11:25 AMmain
and test
but called local
. I want it to depend on both main
and test
. This is my build.gradle: https://pastebin.com/raw/5u89DqYP, building with gradle commandline seems to work so i think that's correct. I'm having some problems getting it to work in intelij though, when I change any code in eg. the main
module I start to get build errors like this:Sylvain Patenaude
09/25/2019, 8:38 PMkarelpeeters
09/26/2019, 3:35 PMMarc Knaup
09/29/2019, 8:38 AMgetApplication()
still returns null
)ribesg
09/29/2019, 10:24 AMimport ...
for nonsense which breaks everything and I can’t remove themMarc Knaup
09/30/2019, 4:31 AMDonal
09/30/2019, 8:53 AMMyFile.kt
, but there is no way to see the classes it contains.
By contrast, if a Groovy file contains multiple classes, you can expand the file in the Project view to see the classes therein, so it’s surprising that this functionality doesn’t also exist for Kotlin.
Is it possible to see the (multiple) classes contained in a Kotlin file in the Project view?mathew murphy
10/02/2019, 2:07 PMmathew murphy
10/02/2019, 2:07 PMmathew murphy
10/02/2019, 2:07 PMkarelpeeters
10/02/2019, 10:07 PM