← Back to team overview

sikuli-driver team mailing list archive

[Bug 1202368] Re: [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 changed:

- [1.0.1] 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 --- workaround

-- 
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:
  [1.0.1] IDE: Renaming an image in Pattern Settings should change all
  occurrences in the file --- workaround

Status in Sikuli:
  In Progress

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.

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


References