Sikuli IDE Error - javax.script.ScriptException " is not defined in nashorn:mozilla_compat.js at line number 69 - sikuli-script

I'm working on a simple Sikuli Script.
The script is simply one line shown below
click()
The following error is produced?
javax.script.ScriptException: ReferenceError: "Commands" is not defined in nashorn:mozilla_compat.js at line number 69
I believe I have all dependencies installed. Could I ask for some assistance for what else is missing to move on from this error?

You are trying to use the commands in javascript mode. Do the following: create a new tab, right click on it, select "set type" and choose "jython". Your code should now work.

Related

VScode C debug problem with unable to find corresponding c file

When I use vscode debug, and upon meeting function like printf(), it will generate an error message saying the certain file cannot be found
Unable to open 'acrt_iob_func.c': Unable to read file
'c:_\M\mingw-w64-crt-git\src\mingw-w64\mingw-w64-crt\stdio\acrt_iob_func.c'
(Error: Unable to resolve non-existing file
'c:_\M\mingw-w64-crt-git\src\mingw-w64\mingw-w64-crt\stdio\acrt_iob_func.c').
The C file at the end (acrt_iob_func.c) varies.
Using gcc as my compiler help are appreciated.
Skip command to add into launch.json under "setupCommands" for muting warning:
{
"description": "Skip stdio-common files",
"text": "-interpreter-exec console \"skip -gfi stdio/*.c\""
},

T24 routine - compilation error - No component defined. $PACKAGE is mandatory?

Below is the sample code
SUBROUTINE HELLO.WORLD
*-----------------------------------------------------------------------------
*
*-----------------------------------------------------------------------------
* Modification History :
*-----------------------------------------------------------------------------
*-----------------------------------------------------------------------------
CRT "HELLO WORLD"
END
Compilation error;
01/01/2019 16:26:03 Compiling HELLO.WORLD... ERROR
Error : (line 12) HELLO.WORLD.b, No component defined. $PACKAGE is mandatory !
Compilation completed for 1 file(s). 1 error
01/01/2019 16:26:03 Compiling HELLO.WORLD... ERROR
Error : (line 12) HELLO.WORLD.b, No component defined. $PACKAGE is mandatory !
Compilation completed for 1 file(s). 1 error
I have setup (during toggle tafj project nature option in design studio);
The TAFJ_HOME correctly.
T24lib directory under "Known Libraries" section.
Java folder : ....\ProjectName-models\java.
Class folder : ....\ProjectName-models\classes.
Thank you
To switch off this check for tCompile, set these properties in tafj.properties:
temn.tafj.compiler.internal.development=false
temn.tafj.compiler.component.strict.mode=false
However, to follow the "best practice way" you should have the $PACKAGE statement, then your JBC code will be compiled into a proper Java Package and put inside a JAR file. Note that before that you should do "New-->T24Component Folder Structure" in T24 Design Studio. This will create the XX.componentname.component file where you can define the subroutines. This "XX.Local.component" has to be compiled first:
component XX.Local
# Component Isolation Definition
metamodelVersion 1.6
# -------------------------------------------------
public method helloWorld ()
{
jBC: HELLO.WORLD
}
Then you can reference the $PACKAGE in the subroutine like this:
$PACKAGE XX.Local
SUBROUTINE HELLO.WORLD
CRT 'Hello, World!'
RETURN
END
The component can also be created manually without Design Studio. You should not use the Dunce Cap (see this: https://en.wikipedia.org/wiki/Dunce) unless you have a good reason.
For R19 Right Click on project navigate to Properties->TAFJ->Compiler->Uncheck Maintain validation code.
Right click on project source folder and click “Put on / Take off the Dunce cap”. Compile again.
It's a subroutine , it needs a RETURN statement

Cudafy chapter 3 example has path issue how to fix?

Using Cudafy version 1.29, which can be downloaded from here
I am executing the examples that are found in the install folder CudafyV1.29\CudafyByExample\
Specifically, "chapter 3" example that begins line 42 of program.cs calls the following:
simple_kernel.Execute();
which is this:
public static void Execute()
{
CudafyModule km = CudafyTranslator.Cudafy(); // <--exception thrown!
GPGPU gpu = CudafyHost.GetDevice(CudafyModes.Target, CudafyModes.DeviceId);
gpu.LoadModule(km);
gpu.Launch().thekernel(); // or gpu.Launch(1, 1, "kernel");
Console.WriteLine("Hello, World!");
}
The indicated line throws this exception:
Compilation error: CUDAFYSOURCETEMP.cu
'C:\Program' is not recognized as an internal or external command,
operable program or batch file. .
Which is immediately obvious that the path has spaces and the programmer did not double quote or use ~ to make it operational.
So, I did not write this code. And I cannot step through the sealed code contained within CudafyModule km = CudafyTranslator.Cudafy();In fact I don't even know the full path that is causing the exception, it is cut-off in the exception message.
Does anyone have a suggestion for how to fix this issue?
Update #1: I discovered where CUDAFYSOURCETEMP.cu lives on my computer, here it is:
C:\Users\humphrt\Desktop\Active Projects\Visual Studio
Projects\CudafyV1.29\CudafyByExample\bin\Debug
...I'm still trying to determine what the program is looking for along the path to 'C:\Program~'.
I was able to apply a workaround to bypass this issue. The workaround is to reinstall all components of cudafy in to folders with paths with no ' ' (spaces). My setup looks like the below screenshot. Notice that I also installed the CUDA TOOLKIT from NVIDIA in the same folder - also with no spaces in folder names.
I created a folder named "C:\CUDA" and installed all components within it, here is the folder structure:

Compiler error when putting class in App_Code folder for common use

I have put a class in the App_Code folder, so it should be accessible for all my source files. Intellisense indeed sees the class (in code-behind), but when I run the site from the browser I get a compiler error:
**Compilation Error**
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30002: Type 'ClsTranslation' is not defined.
Source Error:
Line 38: End If
Line 39:
**Line 40: Dim clsTrans As ClsTranslation**
Line 41: clsTrans = New ClsTranslation()
Line 42: lblLevel0.Text = clsTrans.GetResource("", "Modules")
Source File: C:\inetpub\wwwroot\myproject\InfoSiteMap.aspx.vb Line: 40
I am running this site as a web project and therefore the build-option content/compile for my App_Code/class is not available. I also tried to map the file to the pre-compiler using the # Reference directive, but this seems to work for user controls only and not for classes. Also tried to put the class in a namespace, all with same result.
Any suggestions?
Most of the time, when I do this, the build action of the file is to "Content" instead of "Compile". Highlight the class in solution explorer and hit f4 and change this.

Algebra filter error in moodle

I installed moodle 1.9.12 and now I want to use Algebra notation in content. I enable "TeX Notation" and "Algebra Notation" in administrator panel and also install mimetext and dvips and Imagemagic on the server. fortunately Tex Notation works fine but I got the following error for Algebra:
sh: /var/www/html/moodle/filter/tex/mimetex.linux: not found
The shell command
"/var/www/html/moodle/filter/tex/mimetex.linux" -e "/var/www/moodledata/filter/algebra/de06d6c44d98ba4e42dffca988bf530b.gif" -- '\Large \frac{\sin\left(z\right)}{x^{2}+y^{2}}'
returned status = 127
File size of mimetex executable /var/www/html/moodle/filter/tex/mimetex.linux is 830675
The file permissions are: 100775
The md5 checksum of the file is 56bcc40de905ce92ebd7b083c76e019e
Image not found!
Note: /var/www/html/moodle/filter/tex/mimetex.linux exists on the server and is executable!!!
What is the problem?? Any idea?????
From what you have described, calling the general tex filter debug page works and does not show up the same error.
/filter/tex/texdebug.php works, but /filter/algebra/algebradebug.php does not.
If this is the case, perhaps you could check for an open_basedir, or safe_mode_exec_dir being set to include the current working directory, or otherwise restricting the execution of /var/www/html/moodle/filter/tex/mimetex.linux, while the current working directory is /var/www/html/moodle/filter/algebra.
You could look at this by visiting /admin/phpinfo.php at your site, and look carefully at the effective values of open_basedir, safe_mode and safe_mode_exec_dir.
You could also check the apache error log or add the following lines to the top of the algebra debug php file, and you might see some extra error messages:
$CFG->debug = 6143 ;
$CFG->debugdisplay= 1 ;
Hope that helps