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(qt_utils): added error handle utility with popup messageBoxes

wyzula_j requested to merge feat/error_message_popup_util into main

Description

  1. General utility to display any raise error as a message box with traceback to user. Can be activated globally or jsut for certain methods with decorator @error_managed. 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!

Definition of Done

  • Documentation is up-to-date.
Edited by wyzula_j

Merge request reports

Loading