JetBrains / intellij-platform-plugin-template

Template repository for creating plugins for IntelliJ Platform
Apache License 2.0
3.05k stars 618 forks source link

DialogWrapper not working with current plugins, ok with next versions #349

Closed hamoid closed 1 year ago

hamoid commented 1 year ago

Describe the bug: I have a working plugin. If I update my plugin matching v1.4.0 of the intellij-platform-plugin-template, a dialog that extends DialogWrapper no longer shows any content, only the OK and Cancel buttons.

Steps to reproduce:

Expected behavior: The UI Elements in the Dialog should be displayed.

Additional context: with kotlin.jvm 1.7.21 and intellij 1.10.0 (working): dialogBeforeWorks

with template v1.4.0, kotlin.jvm 1.8.0 and intellij 1.12.0 (broken): dialogAfterBroken

with kotlin.jvm 1.8.10 and intellij 1.13.0 (working): dialogBeforeWorks

hsz commented 1 year ago

Can you provide a reproducible project?

hamoid commented 1 year ago

I created one here: https://github.com/hamoid/IPPT/commit/174809dcd6f568935a8885b8f865d398e3ef41cb

In that commit one can see my only changes after creating the plugin. You should be able to clone and run the project. When running the IDE task, immediately it should show a popup window. That window will contain a Label or not, depending on which version of the Gradle IntelliJ Plugin is used.

It is possible that I am using something incorrectly, as I'm not an expert in Swing. But in any case changing the Gradle IntelliJ Plugin version changes the behavior without touching the code (on my system).

YannCebron commented 1 year ago

You cannot use Kotlin to bind with UI Designer forms, see green box https://plugins.jetbrains.com/docs/intellij/user-interface-components.html