a2 icon indicating copy to clipboard operation
a2 copied to clipboard

runtime error handling

Open ewerybody opened this issue 4 years ago • 0 comments

Expected Behavior

a2 offers detailed information and ways to deal with errors that occur with the runtime.

Current Behavior

There are only the default Autohotkey error popups that tell something but not much about whats happening

Possible Solution

  • [ ] startup/load-time errors - interestingly the OnError() method can only be used with errors that occur AFTER everything was loaded in. The a2 runtime is either called from the a2.exe in a2 root OR by the UI. Both need to deal with these.
    • [x] make a2.exe detect load-time errors, offer to call the ui, open up code editor ...
    • [ ] make ui detect these and offer ways to deal with it
  • [x] runtime errors - make use of OnError() with a function that handles these
    • [ ] open ui with according module
    • [ ] create error report for the according module on its github project
    • [x] open the offending file in code editor ...

ewerybody avatar Jan 27 '21 21:01 ewerybody