docToolchain / diagrams.net-intellij-plugin

An IntelliJ plugin which allows you to edit diagrams.net (formerly known as draw.io) diagrams directly in IntelliJ!
https://plugins.jetbrains.com/plugin/15635-diagrams-net-integration
Apache License 2.0
128 stars 16 forks source link

Deprecated ActionUpdateThread.OLD_EDT in future Jetbrains IDEs #297

Closed rob-mason closed 3 months ago

rob-mason commented 4 months ago

Jetbrains Rider (as of 2024.1) is now reporting the following warning/error:

com.intellij.diagnostic.PluginException: ActionUpdateThread.OLD_EDT is deprecated and going to be removed soon. 'de.docs_as_co.intellij.plugin.drawio.actions.OpenDevtoolsAction' must override getActionUpdateThread and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: de.docs_as_co.intellij.plugin.diagramsnet] at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23) at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:90) at com.intellij.diagnostic.PluginException.reportDeprecatedUsage(PluginException.java:125) at com.intellij.openapi.actionSystem.ActionUpdateThreadAware.getActionUpdateThread(ActionUpdateThreadAware.java:21) at com.intellij.openapi.actionSystem.AnAction.getActionUpdateThread(AnAction.java:199)

ahus1 commented 3 months ago

Thank you for letting me know. This will be fixed in the next version of the plugin. I'll update this issue once it is avialable.

ahus1 commented 3 months ago

There is now pre-release v0.2.5 which includes a fix. Please give it a try if it fixes your problem.

The pre-release of the plugin is available from GitHub releases.

To try out a pre-release:

  1. Download the new release file diagrams.net-intellij-plugin-xx.xx.xx.zip from the Assets section of the release.
  2. Go to menu File | Settings... | Plugins | Gear Icon (⛭).
  3. Choose Install plugin from disk....
  4. Choose the downloaded file in the file selection dialogue.
  5. Restart the IDE to activate the new plugin version.