Sikuli IDE "Save" Operation Overwrites Existing Files Without Warning

Bug #595283 reported by Stefani
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Undecided
Unassigned

Bug Description

Sikuli IDE "Save" Operation Overwrites Existing Files Without Warning

Sikuli v10.1

When saving via IDE, Sikuli will overwrite existing files without warning. Allows users to make mistakes and overwrite existing projects.

Basically, I inteneded to click Open, but clicked Save instead. The problem is compounded by the fact that the "save" dialog is actually showing as an "open" dialog. So, if you think you clicked open but accidentally clicked save, then you won't know it just by paying attention to the "save" dialog because it looks like an "open" dialog.

Two Fixes Wanted:
1. Make the dialog box more descriptive -- Change "save" dialog so that it actually shows "save" in the dialog title. Change "open" button in dialog to say "save".
2. Give a warning when saving to an existing project. "Warning, files already exist. Saving will overwrite existing files. Do you want to continue?"

To reproduce...
1. Open Sikuli IDE.
2. Untitled file is already presented to user.
3. Click File-->Save.
4. Navigate to existing project (navigate to a dummy / throwaway project)
5. Click Open on dialog.
6. Poof...files are gone. :-(
7. Cry a little on the inside.
8. Grab your old backup and figure out what has changed since then.
9. Cry a little more.

Revision history for this message
niknah (hankin0) wrote :

Sikuli 0.10.2
Ubuntu 10 x86_64

I have a related save problem, to duplicate...

* new file
* click save as 'test2'
* click save as 'test'
* click save as a few more times.

Now in the last .sikuli folder you'll have all the files from the previous folders under their old names.

Here's a fix for my problem.

Revision history for this message
niknah (hankin0) wrote :

Here is a patch for the save as dialog as reported by Stefani.
But it's only for english.

Revision history for this message
Tsung-Hsiang Chang (vgod) wrote : Re: [Bug 595283] Re: Sikuli IDE "Save" Operation Overwrites Existing Files Without Warning

Thanks for the patch, niknah!
I will take a look at it later.

Changed in sikuli:
status: New → Fix Committed
milestone: none → x1.0-rc1
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.