Comment 3 for bug 1426748

Revision history for this message
Blair Bonnett (bcb) wrote :

Thats how I was testing it anyway. To make sure we're both doing the same procedure, here are the steps I have been testing it with:

1. File -> New -> Blank project (/tmp/foo/foo.pro)
2. Open Eeschema, agree to create /tmp/foo/foo.sch
3. Set auto-save time to one minute.
4. Add a couple of resistors.
5. Add a hierarchical sheet, /tmp/foo/subsheet.sch
6. Save the top-level sheet.
7. Open the sub-sheet, add a couple of capacitors, and save it.
8. Close KiCad.
9. Check there are no auto-save files.
10. Run KiCad from the terminal.
11. Open the sub-sheet and add a resistor.
12. Wait for a minute (until an auto-save file $subsheet.sch is created).
13. Kill KiCad with Ctrl-C from the terminal.
14. Open KiCad and then Eeschema.
15. Get dialog box:

> Well this is potentially embarrassing! It appears that the last time you were
> editing the file 'subsheet.sch' it was not saved properly. Do you wish to
> restore the last edits you made?

16. Click yes, then open sub-sheet. Resistor added in step 11 has been recovered.

If I make changes to both the main and sub-sheet in step 11, I get two dialog boxes in step 15 and both files are successfully recovered.

If I click No to restoring the edits, the old unmodified sheets are opened i.e., there is no other mechanism doing the recovery.

Are these the steps that you are following to trigger the bug? If so, can you please try with the latest revision to see if it still occurs. If not, please point out where my steps differ.