Opened 11 years ago

Closed 9 years ago

Last modified 7 years ago

#2220 closed enhancement (fixed)

Automatic Save in OMEdit - Logging of Edit Operations

Reported by: Peter Fritzson Owned by: Adeel Asghar
Priority: critical Milestone:
Component: OMEdit Version: trunk
Keywords: Cc:

Description

An automatic save feature in OMEdit is very valuable for the user acceptance of OpenModelica. Currently, if there is a crash in OMEdit or in OMC a lot of user time might be lost and the user becomes very frustrated.

Since saving is currently done via OMC, and OMC sometimes crashes we need a mechanism that is more robust.

One proposal is to log all OMEdit update commands sent to OMC after each save all (or save). These are already sent to OMC in textual form and could easily also be written to an external file without noticably overhead. The logs might be associated to the affected model(s). After a crash, when restarting there can be an option of replaying all commands (except the last which caused the crash). This would also be useful for bug reporting since all the commands that caused a crash would be available. In fact, we could have a report bug button in OMEdit that would email the log and associated models.

Change History (4)

comment:1 by Adeel Asghar, 11 years ago

Status: newaccepted

comment:2 by Adeel Asghar, 9 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in 1ec6313/OMEdit.

The automatic save is available since a long time but I have fixed some issues with it now and it should work fine.

The logging of all commands sent to OMC are already done. But we can't replay the commands (it's very difficult to implement that).
The crash reporting is also available. The crash is detected automatically and a bug report window is shown which also allows the user to write the bug description and attach files.

comment:3 by Adeel Asghar, 9 years ago

Milestone: Future1.10.0

comment:4 by Martin Sjölund, 7 years ago

Milestone: 1.10.0

Milestone deleted

Note: See TracTickets for help on using tickets.