Title
m

michael.barker

02/18/2017, 8:39 PM
what's am I doing wrong when IntelliJ doesn't show decompiled Kotlin and instead shows the method body as
/** compiled code **/
m

miha-x64

02/18/2017, 8:46 PM
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

michael.barker

02/18/2017, 9:21 PM
Is that only for bytecode? I'd like to be able to step through Kotlin.
m

miha-x64

02/18/2017, 10:00 PM
What do you mean? Decompile to Kotlin?
m

michael.barker

02/18/2017, 10:01 PM
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

yole

02/19/2017, 7:24 AM
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

voddan

02/21/2017, 11:14 AM
Why doesn't IJ show decompiled Java if there are no Kotlin sources?
y

yole

02/21/2017, 11:34 AM
because that's how the PSI works - a Kotlin-compiled .class file needs to be represented as a Kotlin source file in the editor