[check] IDE: Renaming an image in Pattern Settings should change all occurrences in the file --- workaround

Bug #1202368 reported by Brian Redmond
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

********* workaround *********
- rename one image occurrence using the Preview feature
- switch the view to show the filenames instead of the image thumbs or labels
  (menu view -> show thumbnails)
- rename the other occurrences accordingly (use the search feature)
- switch back to the original view

you might generally avoid this problem of duplicating the filename, by assigning the filename to a variable once and use this instead of the image.

--------------------------------------------------------------

Sikuli 1.0.0 Win7-64

Use 'Take screenshot' to add an image in the IDE
Copy and paste the image so that it appears twice in the script
Save the script
Click one of the images to open Pattern Settings
Rename the image by changing the Filename field and click OK
Save and close the script and reopen it

When the script is reopened, the copy still refers to the original image filename which no longer exists.

Best proposed fix would be to change the default behavior to making a copy of the image when renaming and only deleting the original when there are no references to it (which happens when the IDE is closed anway I think?) and adding an option to automatically change all references in a script when an image is renamed.

Tags: ide
RaiMan (raimund-hocke)
summary: - Renaming an image in Pattern Settings should change all occurrences in
- the file
+ IDE: Renaming an image in Pattern Settings should change all occurrences
+ in the file
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
tags: added: ide
RaiMan (raimund-hocke)
summary: - IDE: Renaming an image in Pattern Settings should change all occurrences
- in the file
+ [1.0.1] IDE: Renaming an image in Pattern Settings should change all
+ occurrences in the file
Revision history for this message
UNCCheezy (shawny2005) wrote : Re: [1.0.1] IDE: Renaming an image in Pattern Settings should change all occurrences in the file

Does this mean it will be available in 1.1.0?

Revision history for this message
RaiMan (raimund-hocke) wrote :

not sure. reduced to in progress ;-)

Changed in sikuli:
status: Fix Committed → In Progress
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 1.1.0 → 1.2.0
summary: [1.0.1] IDE: Renaming an image in Pattern Settings should change all
- occurrences in the file
+ occurrences in the file --- workaround
RaiMan (raimund-hocke)
description: updated
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 2.0.0 → 2.1.0
importance: High → Medium
summary: - [1.0.1] IDE: Renaming an image in Pattern Settings should change all
+ [check] IDE: Renaming an image in Pattern Settings should change all
occurrences in the file --- workaround
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.