minecraft-dev / MinecraftDev

Plugin for IntelliJ IDEA that gives special support for Minecraft modding projects.
https://minecraftdev.org/
GNU Lesser General Public License v3.0
1.45k stars 180 forks source link

Ungrab does not trigger when a breakpoint condition has an error until after the dialouge has been dismissed #2314

Open ChiefArug opened 3 weeks ago

ChiefArug commented 3 weeks ago

Minecraft Development for IntelliJ plugin version

2024.1-1.7.6

IntelliJ version

2024.1

Operating System

Linux Mint

Target platform

Minecraft Forge

Description of the bug

If a breakpoint condition fails to evaluate, IntelliJ will stop at the breakpoint and open a dialouge asking if you would like to stop on the breakpoint or continue. However this dialouge seems to appear before the mouse is ungrabbed from Minecraft by the MCDev plugin, meaning you cannot click the buttons (however tab and alt + y/n work, although those do not allow you to scroll and see the entire box if the error is length)

image An easy way to get this error to happen is to add a new event listener, save the event to a variable, add a condition like newVariable != null, then change the variable name.

DenWav commented 3 weeks ago

Hmm I wonder if there's a different listener we need to attach to for this situation.