[check] IDE: Renaming an image in Pattern Settings should change all occurrences in the file --- workaround
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.
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 |
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 |
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 |
description: | updated |
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 |
Does this mean it will be available in 1.1.0?