julioromano
01/27/2022, 12:54 AMchristophsturm
01/27/2022, 7:27 PMKarlo Lozovina
02/02/2022, 6:49 PM==
check, and just leave the else
branch?Tom Haywood
02/03/2022, 12:38 AMfun foo() = "hello"
And I want to change this to have a body, because I need to add more lines. e.g
fun foo(): String {
return "hello"
}
Is there a refactoring that can do it for me?Skolson5903
02/08/2022, 12:53 AMmcpiroman
02/09/2022, 7:51 PM// Implementation of methods is not available
How do I disable that and use standard java decompiler/bytecode viewer? (the option `Show bytecode`is also disabled right now).Ayfri
02/15/2022, 4:25 PMTomas Kormanak
02/15/2022, 8:19 PMclass (
val email:String
) {
fun doSomething() {
print(email)
}
Then I decide not to define property email
in constructor and remove val
, IDEA automatically change all occurrences of email
like this:
import kotlinx.html.InputType
class (email:String) {
fun doSomething() {
print(InputType.email)
}
}
I am facing it in lot of similar cases, usually related to enums.
I have option `Editor->General->Auto Import->Add unambiguous imports on the fly`disabled.nat
02/23/2022, 12:57 AMKlitos Kyriacou
02/24/2022, 11:24 AMsmallufo
02/26/2022, 4:08 PMrkeazor
03/05/2022, 3:52 PMsimon.vergauwen
03/08/2022, 2:29 PMReplaceWith
to refactor a package
? In Arrow we need to migrate a DSL to a new package, but ReplaceWith
seems to be broken. https://github.com/arrow-kt/arrow/blob/main/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/computations/either.kt#L109sbyrne
03/08/2022, 8:44 PMMyApp.kt
in Gradle project A imports MyLib
from Gradle project B. If, from MyApp.kt
I do "Go To -> Declaration or Usages" on MyLib
, should it open MyLib.kt
in project B? Currently it opens up a decompiled bytecode. This worked with Maven, but Idea does not seem to be making the connection between Gradle projects.rocketraman
03/10/2022, 4:06 PMmbonnin
03/23/2022, 10:43 AM.zshrc
even though it's not (always) started from the command line? Am I just lucky or do "graphical" apps also inherit the shell env variables somehow on MacOS?hfhbd
03/24/2022, 11:49 AMnapperley
03/29/2022, 2:15 AM// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package io.gitlab.embedSoft.lvglKt.core.lvglObject
public final enum class LvglPart private constructor() : kotlin.Enum<io.gitlab.embedSoft.lvglKt.core.lvglObject.LvglPart> {
MAIN,
SCROLLBAR,
INDICATOR,
KNOB,
SELECTED,
ITEMS,
TICKS,
CURSOR,
CUSTOM_FIRST;
}
christophsturm
03/29/2022, 7:34 AMAyfri
04/08/2022, 10:45 AMTom Dyas
04/12/2022, 2:29 PMKlitos Kyriacou
04/13/2022, 9:03 AMdimsuz
04/14/2022, 11:17 AMBrian
04/15/2022, 5:16 PMbuild.gradle.kts
. Why is that?napperley
04/21/2022, 1:35 AMdarkmoon_uk
04/22/2022, 4:48 AM/src/main/kotlin
folder cruft etc.
A code-defined, custom project view that presents the presentation/domain/service packages beside each other would resolve this problem.
Favourite list provide a good enough User Experience, but AFAIK they can't be populated by Gradle code, so can't live alongside the code and be shared with the team. Any solutions?rkeazor
04/24/2022, 3:40 PMdarkmoon_uk
04/25/2022, 4:07 AMgradle.properties
and attached the debugger after run:
org.gradle.debug=true
org.gradle.debug.server=true
org.gradle.debug.suspend=true
...but for some reason the debugger doesn't 'break' on this Exception which is occurring in a JS build:
e: java.lang.AssertionError: Assertion failed
at org.jetbrains.kotlin.ir.backend.js.transformers.irToJs.JsAstUtilsKt.translateCallArguments(jsAstUtils.kt:341)
I have previously used the debugger successfully to debug Gradle sync issues using the same method... is there something going on with internal process launching that's 'hiding' the JS compiler's activity from the debugger?ribesg
04/25/2022, 12:42 PMkotlinx.serialization.Serializable
or is it just me? When I type @Serializable
and autocomplete it it writes @kotlinx.serialization.Serializable
instead of importing it. Doesn’t do it for any other class/annotation. Then if I try to hit Alt+Enter
on it, it doesn’t offer to add the import there either. Weirdzeugederunity
04/27/2022, 7:04 AMunresolved reference: kotlinx
in this minimal working example?
https://github.com/FelixEngl/mwe1
I tried everything I could think of and nothing seems to work. :/
I think this is a bug in the IDE or the IntelliJ-Kotlin-Plugin, but I don't know exactly what is causing it.
(Because it compiles perfectly fine, so this shouldn't be a problem of the Kotlin MPP-Gradle-Plugin.)
Thank you in advance!