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

IDE freezes when huge XML file exists in project #304

Closed bibermann closed 1 month ago

bibermann commented 1 month ago

PyCharm freezes (with high CPU usage) when I have a 6GB XML file in the project (even when marked as excluded).

Probably the extension tries to find out whether it's a diagram? This happens right after launching the IDE (when the file is just there, not even opened).

ahus1 commented 1 month ago

I'm sorry to hear this happend to you. I'll fix it in the next version of the plugin. I'll restrict the auto-detection to XML files which are 10 MB the most.

ahus1 commented 1 month ago

There is now pre-release 0.2.6 available which includes a fix for this issue. Please give it a try and let me know if it works in your setups as expected.

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.
bibermann commented 1 month ago

There is now pre-release 0.2.6 available which includes a fix for this issue. Please give it a try and let me know if it works in your setups as expected.

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.

I'm sorry that I could not find the time to try it out earlier; I just upgraded to the new release which solved the issue for me :) Thanks for the fast fix!

ahus1 commented 1 month ago

Thanks for sharing!