← Back to team overview

sikuli-driver team mailing list archive

[Bug 1865423] Re: Bath env paths are not considering in Sikuli IDE

 

ok, looks magic ;-)

... and you found a new problem:

since 2.0.x (due to the fact, that it is no longer possible to tweak the
Java classpath at runtime anymore) the final JVM runs the IDE in a
detached process.

The problem: the outer environment is not taken into account, it simply
uses the standard environment, that a new command window would start
with.

I accept this as a bug and try to fix it in the version 2.0.4

A workaround: 
let your java statement look like this (supposing you are using Jython):

java -Dsikuli.IDE_should_run -cp <path-to>\sikulix.jar;<path-
to>\jython.jar org.sikuli.ide.SikulixIDE

this is the detached command internally used.

... so with this the IDE would run in your created environment.

** 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 => 2.0.4

** Summary changed:

- Bath env paths are not considering in Sikuli IDE
+ [2.0.x] IDE/API jars from commandline: should use actual environment

** Description changed:

- i have set below path and try to import modules from below path not working 
+ bug is tracked here: https://github.com/RaiMan/SikuliX1/issues/319
+ 
+ workaround see comment #3
+ 
+ -------------------------------------------------------------------
+ 
+ i have set below path and try to import modules from below path not working
  SET  PATH=%c:\test_path%;%PATH%
  
  Note: SikuliIDE 1.1.3 is working but latest releases its not working

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

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

Title:
  [2.0.x] IDE/API jars from commandline: should use actual environment

Status in Sikuli:
  Confirmed

Bug description:
  bug is tracked here: https://github.com/RaiMan/SikuliX1/issues/319

  workaround see comment #3

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

  i have set below path and try to import modules from below path not working
  SET  PATH=%c:\test_path%;%PATH%

  Note: SikuliIDE 1.1.3 is working but latest releases its not working

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


References