Edit on GitHub

parascape.report_dialog

Error reports from the window: ask, show exactly what would be sent, send (instruction 97).

An uncaught error opens ErrorReportDialog: what happened in a sentence, the anonymised report word for word, an optional note, and Send / Don't send. "Send future reports without asking" turns asking off; Help ▸ Error reports turns it back on, or off altogether. The same error is asked about once per session. Help ▸ Report a problem sends a report written by hand.

Sending happens on a thread -- the relay can take seconds -- and its answer (the issue link, or why it was refused) is shown in the dialog. Nothing here raises: an error reporter that can itself crash the window is worse than none.

class ErrorReportDialog(PySide6.QtWidgets.QDialog):

Asks before sending one report, and shows it in full.

ErrorReportDialog( report: dict, parent=None, title: str = 'ParaScape ran into an error')
report
preview
note
always
def result(unknown):
send_button
cancel_button
def send(self) -> None:

Send the report (with the note) and show what the relay answered.

staticMetaObject = PySide6.QtCore.QMetaObject("ErrorReportDialog" inherits "QDialog": )
def report_problem(window) -> ErrorReportDialog:

Help ▸ Report a problem: a report written by hand, previewed like any other.

def install(window) -> parascape.report_dialog._Reporter:

Catch errors in window's process, and add Help ▸ Report a problem and Help ▸ Error reports (ask / always / never).