Improved exception dialog with copy & paste or direct error reporting
Description
When Vorta crashed due to a python exception, one gets a dialogue box telling that one shall report the issue.
Problems:
- copy and paste does not work from there, so one has to manually type the whole stuff one is seeing in that box.
- the dialogue box contents are rather ugly / badly formatted
Environment
- OS: macOS Ventura
- Vorta version: 0.9.1beta3
- Installed from: .dmg binary download
- Borg version: 1.2.6
It can also be found in vorta.log:
2023-11-30 17:53:38,412 - root - CRITICAL - Uncaught exception, file a report at https://github.com/borgbase/vorta/issues/new/choose
Traceback (most recent call last):
File "views/exclude_dialog.py", line 266, in custom_pattern_editing_finished
AttributeError: 'NoneType' object has no attribute 'text'
Wondering if including the full traceback would make that more useful?
Yes, this dialog could be nice. It's dealt with centrally, so should be simple enough to reformat it.
IIRC this was an idea for GSoC, but wasn't picked up in the end.
I can't find an open issue for this, so let's track it here. This is what I imagined for errors. Maybe this can be POSTed to a Github issue from the dialog?
@ThomasWaldmann @m3nu could you please assign this issue to me , would like to work on this.
@rai-ankur Assigned - thanks for helping!
@rai-ankur Please share mockups before implementing the GUI. Also if you run into problems, feel free to ask.
@ThomasWaldmann @m3nu Can I work on this? I think the GUI can look like this.
Looks good! I would suggest adding a copy button though.
@rai-ankur You don't work on this any more, right?
@AdwaitSalankar Personally, I would rather have copy&paste than "send this report directly to Github" (and any complexity relating to the latter).
Agreed, This would simplify things.
Does this look good?
The GitHub link will direct to https://github.com/borgbase/vorta/issues/new/choose
I think the link should go to .../issues and it should also tell "Please only open new issues after checking if this issue was not already reported."