prmr / JetUML

A desktop application for fast UML diagramming.
GNU General Public License v3.0
620 stars 121 forks source link

Detect deserialization errors when launching with files argument #500

Closed prmr closed 1 year ago

prmr commented 1 year ago

Description JetUML supports opening with file passed as command-line argument, which in turns supports the "open with" feature of certain OSes (see #382). If the file cannot be open for any reason, the application silently fails. The error should be reported in the same way as is done when opening the file from a running JetUML application.

Steps to reproduce

  1. Create an invalid JetUML file
  2. Start JetUML passing this file as argument
  3. In user mode, launching the app fails silently. In developer mode, an exception stack trace gets dumped on the console.

Configuration

Additional information Attempt to open the file separately from launching the editor in EditorFrame, then launch (show) an Alert Dialog before exiting if there's an issue.