← Back to team overview

sikuli-driver team mailing list archive

[Bug 1473631] [NEW] [1.1.0] addImagePath NoMethodError --- workaround: use ImagePath.add instead

 

Public bug reported:

I would like to use the addImagePath in a script. 
When I run it I get the following error: 
[error] script [ repository ] stopped with error in line 10
[error] NoMethodError ( (NoMethodError) undefined method `addImagePath' for main:Object )
[error] --- Traceback --- error source first line: class ( method ) file 10: RUBY ( (root) ) C:/sikuliscripts/FTAS/repository.sikuli [error] --- Traceback --- end --------------

NoMethodError: undefined method `addImagePath' for main:Object (root) at
C:/sikuliscripts/FTAS/repository.sikuli:10

Code looks like: 
#add path to the project
addImagePath('..//generic.sikuli')

I use Sikuli 1.1.0. 
In the IDE I do see that the addImagePath turns green, so, I do expect it to be valid. 

Just for checking, I also tried the methode getImagePath, but here I get
the same error.

** Affects: sikuli
     Importance: High
     Assignee: RaiMan (raimund-hocke)
         Status: In Progress

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.1.0

** Summary changed:

- [1.1.0] addImagePath NoMethodError --- workaround: use ImagePath.addImagepath instead
+ [1.1.0] addImagePath NoMethodError --- workaround: use ImagePath.add instead

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

Title:
  [1.1.0] addImagePath NoMethodError --- workaround: use ImagePath.add
  instead

Status in Sikuli:
  In Progress

Bug description:
  I would like to use the addImagePath in a script. 
  When I run it I get the following error: 
  [error] script [ repository ] stopped with error in line 10
  [error] NoMethodError ( (NoMethodError) undefined method `addImagePath' for main:Object )
  [error] --- Traceback --- error source first line: class ( method ) file 10: RUBY ( (root) ) C:/sikuliscripts/FTAS/repository.sikuli [error] --- Traceback --- end --------------

  NoMethodError: undefined method `addImagePath' for main:Object (root)
  at C:/sikuliscripts/FTAS/repository.sikuli:10

  Code looks like: 
  #add path to the project
  addImagePath('..//generic.sikuli')

  I use Sikuli 1.1.0. 
  In the IDE I do see that the addImagePath turns green, so, I do expect it to be valid. 

  Just for checking, I also tried the methode getImagePath, but here I
  get the same error.

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