Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content

Feat/error message popup util mg

wyzula_j requested to merge feat/error_message_popup_util-MG into main

Description

Original MR !224 (closed) closed in favour of this one made with improvements from @guijar_m.

  1. General utility to display any raise error as a message box with traceback to user. Can be activated globally or just for certain methods with decorator @SafeSlot(popup_error=True). Very useful for developing standalone waveform widget.
  2. Warning message box with simple API to raise warning.

Related Issues

related to #243 (closed)

Type of Change

  • New utility for automatic error display as message box

Potential side effects

Decorator do not fully work with PyQt6 and can lead to crash of app in some cases, due to fact that in PyQt6 unhandled exceptions in slot methods can cause the application to crash because the exceptions propagate back to the Qt event loop, which is not designed to handle them. I don't know how to fix it at the moment.

Screenshots / GIFs (if applicable)

[Include any relevant screenshots or GIFs to showcase the changes made.]

image.png

image.png

Additional Comments

There is a small test example in the qt_utils/error_popups for you to check the functionality. Be aware that this can crash with PyQt6 environments! → works great with both environments.

Merge request reports

Loading