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
134 stars 16 forks source link

Unable to type however keystrokes are recorded #212

Closed JoaoRuss0 closed 1 year ago

JoaoRuss0 commented 1 year ago

OS: Ubuntu 22.10

IntelliJCE: Build #IC-223.8836.41, built on March 10, 2023 | Runtime version: 17.0.6+1-b653.34 amd64

As you can see the keystrokes are recorded without a problem but there is no output, I can not type anything. Clean IntelliJ installation, no setting changed or plugin installed(VIM keymap plugin is known to cause problems from what I have read on some other youtrack issues, but I do not have it enable or even have it), happens on ultimate and community on the versions below:

Screenshot from 2023-03-25 23-52-51

Screenshot from 2023-03-25 23-48-55

pawel0987 commented 1 year ago

as a dirty workaround - copy-paste works :)

ahus1 commented 1 year ago

Thanks for reporting this, and sorry to hear this is causing problems for you. The lastest versions of the plugin have cause this to break on Linux (maybe other OS as well), while it works on Windows. Interaction with a mouse seems to work on all devices.

To disable the "off-screen-rendering" for this plugin, open the IDE's registry via the menu "Help | Find Action...", then search for "Registry...". The key ide.browser.jcef.diagramsNet.osr.enabled is enabled by default. If you disable it, and then close and open your diagram editor windows, it should then work again.

I'll look into over the next days to see how this can be fixed without changing things in the registry.

JoaoRuss0 commented 1 year ago

@ahus1 Thank you, works like a charm after doing that :smiley:

itsjavi commented 1 year ago

@ahus1 Thanks, your solution with the registry fixed the issue for me (PHPStorm 2022.3.3, macOS 13.2.1), also performance is much better after disabling this.

ahus1 commented 1 year ago

I've released version 0.2.2 of the plugin which will be available in the JetBrains marketplace within the next 1-2 days.

In the meantime, the release of the plugin is also available from GitHub releases.

  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.
ahus1 commented 1 year ago

The plugin has now been published on the JetBrains marketplace, therefore I'm closing this issue.

puyt commented 1 year ago

I still can't type any text unless I change the registry as suggested above. Tried reinstalling the plugin without any success.

Running plugin v0.2.2 on linux Pop!_OS 22.04 with PhpStorm 2023.1 Build #PS-231.8109.199, built on March 29, 2023

ahus1 commented 1 year ago

Reopening this issue as the fix was probably incomplete or misleading: The intended fix was to keep the setting, but change the default of the setting, which by reading the comment wasn't successful in all cases. Also having three states here with "on", "off" and "default" is confusing.

The next iteration will remove the setting completely to allow only the setting that is known to work.

ahus1 commented 1 year ago

I managed to trace this down to https://youtrack.jetbrains.com/issue/JBR-5348

The version 0.2.3 of the plugin now disables the off-screen rendering on Linux and macOS, with no entry in the registry to change this.

Starting with the latest IntelliJ 2023.3.1 EAP it enables it again, as not using offscreen rendering is the cause of #218.

Until the plugin appears in the marketplace, 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.