spand
04/13/2021, 8:38 AMtasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile.class){
sourceCompatibility = JavaVersion.VERSION_1_9
targetCompatibility = JavaVersion.VERSION_1_9
kotlinOptions {
jvmTarget = "1.9"
allWarningsAsErrors = warningsAsErrors
}
}
But IDEA still insists on using windows-1252 when editing properties files. (Apparently the default was changed to UTF-8 in Java 9)Marc Knaup
04/13/2021, 12:39 PMmarzelwidmer
04/14/2021, 8:00 AMspand
04/14/2021, 9:34 AMmain
method via the gutter icon. It correctly creates a Kotlin run configuration but previously it would build (using gradle) and then launch the main method using the command line (visible in first line of the console). Now, it launches as a gradle task (11:34:39: Executing task 'MainTestKt.main()'...
) ie. with the gradle task execution ui in the Run/Debug panes.
Is there a setting for getting the old behavior back ?elect
04/14/2021, 12:13 PMwasyl
04/15/2021, 10:06 AMval foo: Foo = createFoo()
with caret somewhere in createFoo
, pressing cmd + shift + b
will navigate to Foo
. Nice 👍
What I want is with:
val foo: Flow<Foo> = createFooFlow()
with caret somewhere inside createFooFlow
to navigate to the generic parameter, Foo
, instead of Flow
. Is there a shortcut for this, or any other way to easily navigate to Foo
?John Towell
04/16/2021, 2:20 AMthana
04/16/2021, 10:55 AMAdemir Queiroga
04/16/2021, 1:38 PMCould not resolve: org.jetbrains.kotlin:kotlin-stdlib:1.4.32
after update to 2021.1
? Already tried do invalidate caches and delete the .idea
folder but still having this issue…eedrd
04/16/2021, 3:45 PMSequence
-based expressions not being returned and not having a terminal operation:mbonnin
04/17/2021, 10:34 PMConstantine Plotnikov
04/20/2021, 11:31 AMnapperley
04/21/2021, 1:20 AMColton Idle
04/21/2021, 9:57 AMclass MyTest {
@Test
fun `test something`() {
Assert.assertEquals("asdf", "asdf")
}
}
When I run that in intellij I get this message. Ideas?Colton Idle
04/21/2021, 10:10 AMdave08
04/22/2021, 12:07 PMoverride
and select a suggestion, it gives me override fun dummy() {}
.... 🤕Tomasz Krakowiak
04/22/2021, 3:54 PMchristophsturm
04/22/2021, 4:07 PMFleshgrinder
04/23/2021, 7:50 PMcallSomeFun("first argument", buildString {
append("...")
append("...")
})
I think that this is perfectly readable, but it always turns it into something else no matter the setting (well, except the don't do anything). Currently it would turn the above into:
callSomeFun(
"first argument",
buildString {
append("...")
append("...")
},
)
😞napperley
04/24/2021, 4:28 AMRob Elliot
04/24/2021, 4:16 PMPHondogo
04/27/2021, 3:40 PMdave08
04/28/2021, 1:01 PMRob Elliot
04/28/2021, 2:33 PMMichael Böiers
04/30/2021, 5:43 AMnanodeath
04/30/2021, 4:45 PMJetCodeStyleSettings
in the IntelliJ code style file? I get that it's Kotlin settings apparently, but why "Jet"thhh
05/01/2021, 7:17 AMhttps://i.imgur.com/E7sjSgu.png▾
elect
05/01/2021, 10:00 PMprivate void throwIllegalArgument(Object object) {
throw new IllegalArgumentException("Can't handle the following object (${object}) of class (${object.class})")
}
am I a the only one?Manuel Pérez Alcolea
05/01/2021, 10:41 PMInvalidate Caches...
so often? Sometimes IDEA doesn't seem to have access to the SDK libraries or whatever and not even a prinln(...)
is recognized, triggering an error on the IDE (not the compiler/Gradle). What causes this? Can I prevent it? Am I doing something wrong?napperley
05/06/2021, 1:03 AM