FWDekker / intellij-randomness

IntelliJ plugin for inserting random numbers, UUIDs, names, IP addresses, and much more
https://plugins.jetbrains.com/plugin/9836-randomness
MIT License
45 stars 7 forks source link

`JTemplateTree` bug round-up #485

Closed FWDekker closed 12 months ago

FWDekker commented 1 year ago

Unfortunately, #483 broke the drag-and-drop behaviour for Templates (I think by assuming that only consecutive rows can be swapped?) :-?

FWDekker commented 1 year ago

Also, another bug: If you move a scheme to another Template (e.g. with the arrow buttons) and then revert changes in the original parent Template, and then select either the moved scheme or the reverted scheme, an exception is thrown because there are now two schemes with the same UUID!

FWDekker commented 1 year ago

Also, yet another bug, though I'm having a hard time figuring out why this happens:

  1. Open the Settings dialog with the default list of schemes.
  2. Click the first template with the LMB.
  3. Press the following sequence of arrows keys: left, down, left, up, alt+down.

This triggers an exception for some reason. Using the mouse to manually collapse templates does not trigger this bug. Or rather, when two templates are swapped, if either was collapsed using arrow keys, then the exception occurs.