[1.1.2] IDE: when I save script I get error message --- switch off Options-on-Save: createHTML

Asked by masuo

I set up SikuliX1.1.2 by 0ffline setup.
when I save script I get error message.

[error message:]
(1)save as
[error] IDE: doSaveAs: tmp-1387651027.sikuli Error: null

(2)save
[error] IDE: A non-IOException-problem when trying to save null Error: null

[environment:]
java: 1.8.0_131
OS: Windows Server 2008 R2 Enterprise SP1
SikulixIDE 1.1.2(2018-01-10_08:31), SikulixIDE 1.1.2(2018-01-13_16:07)

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

-- does this happen all the time? or only with a specific script?

-- what exactly did you do before trying to save (the steps/actions)?

-- did anything change in your environment before using this version?

Revision history for this message
TestMechanic (ndinev) said :
#2

Try to run installation from admin console

Revision history for this message
masuo (masuo-ohara) said :
#3

[Additional explanation]
I get error message, but saving is done.

[Trial]
I tried installation from admin console, the problem is not solved.

-- does this happen all the time? or only with a specific script?
This happens all the time.
My code is only one line.
print("aaa")

-- what exactly did you do before trying to save (the steps/actions)?
Open SikuliX IDE
File-New
Input as "print("aaa")"
Save as
Get error message "[error] IDE: doSaveAs: tmp-1387651027.sikuli Error: null"

Open SikuliX IDE
File-Open
Save
Get error message "[error] IDE: A non-IOException-problem when trying to save null Error: null"

-- did anything change in your environment before using this version?
I changed nothing.
Still now I don't get error message when I save script by using SikuliX1.1.1.

Revision history for this message
RaiMan (raimund-hocke) said :
#4

Thanks for info.

??? [Additional explanation]
I get error message, but saving is done.

Does the tab title in IDE change from Untitled to new script name?

Please use
runsikulix.cmd -c -d 3

on commandline to start IDE.

This directs all messages/printout to commandline and switches on debugging level 3.

Now do the steps:
File-New
Input as "print("aaa")"
Save as

and send the debug output to my mail sikulix---at---outlook---dot---com.

Revision history for this message
masuo (masuo-ohara) said :
#5

The tab title in IDE does not change.

This is part of SikulixLog.txt
-------------------------------------------------------------
[debug (18/01/18 8:47:13)] EditorPane: writeSrcFile: trial_20180118.py
[debug (18/01/18 8:47:13)] JythonScriptRunner: Convert Sikuli source code C:\script\trial_20180118.sikuli to HTML
[error (18/01/18 8:47:13)] IDE: doSaveAs: tmp-55141941.sikuli Error: null
[debug (18/01/18 8:49:25)] IDE: doQuit requested
[debug (18/01/18 8:49:28)] Sikulix: cleanUp: 0
[debug (18/01/18 8:49:28)] RunTimeIDE: final cleanup
[debug (18/01/18 8:49:28)] FileManager: deleteFileOrFolder:
C:\Users\ADMINI~1\AppData\Local\Temp\2\Sikulix_1558488840
-------------------------------------------------------------

I noticed that HTML file does not exist, so I tried it.
When [create HTML]option is selected, I get this error message.
-------------------------------------------------------------
Options on Save [x]create HTML [x]delete not used images
-------------------------------------------------------------

When [create HTML]option is not selected, I don't get this error message.
-------------------------------------------------------------
Options on Save [ ]create HTML [x]delete not used images
-------------------------------------------------------------

Revision history for this message
RaiMan (raimund-hocke) said :
#6

Ok, thanks for the evaluation. Very helpful.

I guess, the easiest would be, to switch off the HTML option in the standard ;-) I will check (code untouched since 2010 ;-)

Did you ever use the script.html stuff? Do you think it is helpful for anything?

Revision history for this message
masuo (masuo-ohara) said :
#7

I usually don't use script.html.
When I have to explain SikuliX to others who don't know SikuliX, script.html is helpful as document. I can attach script.html and send a mail to them.
When I have to read long lines of script codes, I want to print script.html. So script.html is helpful in this case too.

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

Is the statement 'print("aaa")' valid jython syntax?
I thought it should be without parentheses?

What happens if you try saving a script that contains

print "aaa"

?

Revision history for this message
RaiMan (raimund-hocke) said :
#9

@Manfred
Yes it is and it is not the cause for the problem (just tested with 1.1.2)

Thanks for commenting,

Revision history for this message
masuo (masuo-ohara) said :
#10

@Manfred Hampl
I noticed that too, the current code is " print" aaa " "

Revision history for this message
masuo (masuo-ohara) said :
#11

On another environment, I don't get this error message.
  OS: Windows 10
  java: version "1.8.0_151"
     Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
     Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
  SikuliXIDE 1.1.2(2018-01-13_16:07)

I usually don't use script.html, so I deselect the [create HTML] option.

Revision history for this message
Launchpad Janitor (janitor) said :
#12

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
RaiMan (raimund-hocke) said :
#13

should stay open

Revision history for this message
some1 (some1here) said :
#14

same problem here with 1.1.2 when "create HTML" is enabled. seems could be a failure on getting the output from convertSrcToHtml() in JythonScriptRunner.java ??

anyway, /scripts/sikuli2html.py works fine when I follow the steps as described at https://github.com/RaiMan/SikuliX-2014/issues/22 to run it from command line

-------

[debug] MenuAction.doSave
[debug] EditorPane: writeSrcFile: new.py
[debug] JythonScriptRunner: Convert Sikuli source code C:\BigData\RPA\new.sikuli to HTML
[error] IDE: A non-IOException-problem when trying to save null
Error: null

https://github.com/RaiMan/SikuliX1/blob/master/IDE/src/main/java/org/sikuli/scriptrunner/JythonScriptRunner.java
https://github.com/RaiMan/SikuliX1/tree/master/IDE/src/main/resources/scripts

Revision history for this message
some1 (some1here) said :
#15

by the way, I am running it with:

OS: Windows 10 64-bit
  java: version "1.8.0_121"
     Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
     Java HotSpot(TM) Client VM (build 25.121-b13, mixed mode)
  SikuliXIDE 1.1.2(2018-03-08_08:37)

Can you help with this problem?

Provide an answer of your own, or ask masuo for more information if necessary.

To post a message you must log in.