← Back to team overview

sikuli-driver team mailing list archive

[Bug 1202368] [NEW] Renaming an image in Pattern Settings should change all occurrences in the file

 

Public bug reported:

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.

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1202368

Title:
  Renaming an image in Pattern Settings should change all occurrences in
  the file

Status in Sikuli:
  New

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1202368/+subscriptions


Follow ups

References