what's am I doing wrong when IntelliJ doesn't show...
# intellij
m
what's am I doing wrong when IntelliJ doesn't show decompiled Kotlin and instead shows the method body as
Copy code
/** compiled code **/
m
michael.barker: there are some class files, which cannot be correctly decompiled. You can try another decompilers (including online ones, if your class contains no sensitive data), or bytecode viewer tools (e. g. jclasslib https://github.com/ingokegel/jclasslib).
m
Is that only for bytecode? I'd like to be able to step through Kotlin.
m
What do you mean? Decompile to Kotlin?
m
yeah
so it depends on the class file, some you can step through as Kotlin and others will show ```/** compiled code **/ for the method body?
y
there is no decompiler to Kotlin, and we have no plans to build one. if you have sources attached, you see sources. if you don't, you see /** compiled code */
v
Why doesn't IJ show decompiled Java if there are no Kotlin sources?
y
because that's how the PSI works - a Kotlin-compiled .class file needs to be represented as a Kotlin source file in the editor