https://kotlinlang.org logo
#feed
Title
s

Slackbot

10/25/2020, 11:05 AM
This message was deleted.
❤️ 4
v

Vampire

10/25/2020, 3:56 PM
What versions are you using? For me the yellow notification has an option to decompile to java
e

Edoardo Luppi

10/25/2020, 3:57 PM
@Vampire every version, up to 203. It depends if the file comes from your project or not
If it's an external dependency you will get stubs only
Although as mentioned in Github my solution results in a side effect on IDE indexes. Need to solve that anyway before publishing to marketplace.
v

Vampire

10/25/2020, 4:07 PM
I meant IJ version and Kotlin plugin version. I get this option for external dependencies too
e

Edoardo Luppi

10/25/2020, 4:09 PM
@Vampire 2020.3 and earlier, and 1.4.20 and earlier
v

Vampire

10/25/2020, 4:20 PM
Strange, works fine with 2020.1 and 1.4.10 here
e

Edoardo Luppi

10/25/2020, 4:22 PM
@Vampire I think there are particular instances where it won't work. It happens frequently here, but yes, sometimes I get the option to decompile too
@Vampire that "Decompile" action comes
DecompileKotlinToJavaActionProvider
. It seems it doesn't offer to decompile when it isn't able to associate with a library
Just for a test.
v

Vampire

10/25/2020, 5:23 PM
Maybe this is more a bug then and should be reported to Jetbrains 🙂
e

Edoardo Luppi

10/25/2020, 5:24 PM
@Vampire maybe, but after reading a couple issue on YouTrack it seems intentional
v

Vampire

10/25/2020, 5:25 PM
Oh. 😞 Did they provide some reasoning?