stokito / IdeaJol

Intellij plugin that shows an object layout in memory to help optimize it. Uses OpenJDK JOL tool
https://plugins.jetbrains.com/plugin/10953-java-object-layout
Apache License 2.0
142 stars 9 forks source link

Kotlin support works, but not as described #34

Closed OliverO2 closed 3 years ago

OliverO2 commented 3 years ago

The General Usage Instructions state:

Set a cursor into a class name and then press Code / Show Object Layout and you'll see a right panel with layout info.

This does not work with a Kotlin class. When placing the cursor into a class name, the menu Code / Show Object Layout is greyed out.

This works:

  1. Place the cursor into a class name.
  2. Select Navigate / Type Hierarchy (shortcut: Ctrl+H).
  3. Select Code / Show Object Layout.
stokito commented 3 years ago

Thank you for the report, I fixed and in two days the release will be available.

OliverO2 commented 3 years ago

Thank you so much! That was amazingly fast!

stokito commented 3 years ago

@OliverO2 just released, thanks for a quick review from JetBrains. Please tell me if something not works with Kotlin because I don't use it and it's support is experimental

OliverO2 commented 3 years ago

Just tested the new version. Works like a charm!