Menu

scriptHelper / Blog: Recent posts

1.5.6 released

Avoid to set for Javascript the Rhino context more than once
Check the arguments arity in the JSScriptWrapper when setCompilerIsStrict(boolean) method is set to true

Posted by Hervé Girod 2020-05-21

1.5.5 released

Fix the layout of the error window which was incorrect in some cases
Allow to define an array of classes to be accessible in the context of the JSScriptWrapper
Reduce the length of the error message if a Groovy script does not implement the script interface
Reduce the length of the error message if a Python script does not implement the script interface
Reduce the length of the error message if a Ruby script does not implement the script interface
Allow the library to be used in any ClassLoader architecture
Add a setOptimizationLevel(String level) method to the script wrapper to allow to set the optimization level of scripting languages which have this kind of option
Add a set setCompilerIsStrict(boolean) method in the JSScriptWrapper to throw an exception if a method defined in the interface is not implemented

Posted by Hervé Girod 2020-05-21

1.5.4 released

Fix the package declarations for the import(...) methods not working correctly for the RubyScriptWrapper
Fix the package declarations for the import(...) methods not working correctly for the PythonScriptWrapper

Posted by Hervé Girod 2020-05-19

1.5.3 released

Fix the package declarations for the import(...) methods not working correctly for the JSScriptWrapper

Posted by Hervé Girod 2020-05-18

1.5.2 released

Add a DefaultSwingScriptLoggerArea class allowing to show the log in a component which can be integrated in another GUI
Allow to reset the associated wrapper when the user dispose of the error window in the SwingExceptionListener.
In this case, add a "dismiss" option when quitting the error window to allow the user not to see this popup again
Fix the exception lines being off by one when there is a custom ScriptHelper

Posted by Hervé Girod 2020-05-16

1.5.1 released

Allow to use the SwingExceptionListener with exceptions not originating from a script
Avoid to throw an NPE when getting the invocable methods if there is no script associated to a wrapper
Fix the direct invocation of script methods the Groovy, Javascript, and Python being too strict about the method signature

Posted by Hervé Girod 2020-05-15

1.5 released

Use docJGenerator 1.4.17.5
Don't add in Ruby the stdlib directory if it does not exist
Allow to invoke directly a method in the wrapper
Add a getMIME() method for all script wrappers
The script can be created from a String content, added the notion of a Script source
Allow to manage properties and functions at the Javascript level in the JSScriptWrapper
Fix the error lines in Javascript being off by one
Fix the Javascript wrapper throwing an exception when installing the script if the script used global variables
Add two methods in each wrapper implementation allowing to know if the associated scripting library is available
Allow the framework to accept functions declaration at the Javascript level rather than only methods declaration

Posted by Hervé Girod 2020-05-10

1.4 released

Use Groovy 3.0.3
Use JRuby 9.2.11.0
Fix the Ruby stdlib not loaded in the Ruby wrapper
Allow the Ruby stdlib to be loaded with a default path or to be set in the wrapper

Posted by Hervé Girod 2020-04-28

1.3.6 released

Use JEditor 1.2.6
Fixed an exception which was thrown when creating a debug session with fields declaration
Improve the return type for the "/" expression in the debugger breakpoint properties
Fixed the XOR expression in the debugger breakpoint properties
Handle correctly the compilation exceptions in the debugger
Fix the exception message for compilation errors in the script which contained erroneous line numbers
Fix the SwingDebugScriptWindow not handling clicking on exceptions stacktraces hyperlinks

Posted by Hervé Girod 2020-04-09

1.3.5 released

Add the echo(message, htmlcolor) and echo(number, htmlcolor) methods in the ScriptContext interface

Posted by Hervé Girod 2020-04-07

1.3.4 released

Fix variables declarations in Groovy not taken into account in debug parsing in some generics cases
Make sure that there is a debug step before each block
Fix the exception lines which were incorrect in Debug sessions
Fix the steps line numbers which were incorrect in some cases
Fix the breakpoint properties not taking correctly into account the parenthesis in some cases
Handle breakpoint properties expressions methods with arguments
Silently swallow exceptions from incorrect breakpoint expressions
Show incorrect breakpoint expressions in red in the Swing Debug Script window

Posted by Hervé Girod 2020-04-07

1.3.3 released

Use Jython 2.7.2
Use Groovy 3.0.2
Fix an exception which would occur in the SwingDebugScriptWindow if one of the values for the step variables was null
Add highlight on breakpoint lines in the SwingDebugScriptWindow
Add the jEditor.jar library which was forgotten in the binary distrib
Present the elements of arrays in the Swing debug mode variables tab
Present the types of variables in the Swing debug mode variables tab
Present correctly null values in the Swing debug mode variables tab
Put the VarNode and DebugVar classes in a new core package rather than in the swing package to allow to reuse them
Take correctly into account generics in variables declarations in the Groovy debug parser
Take correctly into account arrays in variables declarations in the Groovy debug parser
Add a method in the DebugSession to check if there is a Breakpoint on a specified line
Fix some cases where the step lines positions where incorrect in the Groovy debug session

Posted by Hervé Girod 2020-04-01

1.3.2 released

Use JEditor 1.2.5
Allow to customize the default close operation of the Swing error window
Fix the comment lines not correctly positioned in Groovy
Handle correctly comments lines in Groovy
Fix the error line returned for an exception which was off by one in Groovy
Improve the SwingDebugScriptWindow class
Allow to use children DebugSessions. Note that this changed some of the methods previously used for debugging

Posted by Hervé Girod 2020-03-05

1.3.1 released

Use JRuby 9.2.10.0
Allow to access the tab in the AbstractSwingScriptLogger sub-classes
Allow to add a progress bar in the script logger
Fix some possible ConcurrentModificationExceptions when getting the step variable values
Return the list of currently logged lines in the AbstractSwingScriptLogger
Fix the Groovy error line number not being correctly parsed since Groovy 3.0.0
Fix the usage of the Debug feature with several methods called in the SessionHook
Remove the contribs package in the scriptHelper jar file

Posted by Hervé Girod 2020-02-25

1.3 released

Use JEditor 1.2.4
Use Groovy 3.0.1
Use Rhino 1.7.12
Use Jython 2.7.2b3
Use JavaCC 7.0.5
Put several fields and methods of the DefaultSwingScriptLogger as protected to be able to extend its behavior more easily
Allow to customize the labels in the DefaultSwingScriptLogger class
Add the clearTab() and setTab(int) methods in the ScriptContext interface, delegating to the ScriptLogger
Fix the exception message in the Swing ScriptErrorLoggerArea no being red in some cases
The getScriptProxy() method now return the ScriptProxy, the getScript() method the resulting script. Note that the ScriptProxy allow to wrap the exceptions.
Add a method in the ScriptWrapper to return the script text content
Add an experimental debugging feature

Posted by Hervé Girod 2020-02-19

1.2 released

Separate the distributions for the languages implementations from the core distribution
It is now not necessary anymore to extend the ContextListener interface for the Javascript implementation
Fix the dependency between the core library and the Javascript implementation library
Fix the line number for Javascript exceptions not computed
Fix the StackTrace creation for Javascript exceptions
Add a Python implementation

Posted by Hervé Girod 2020-01-05

1.1 released

Use JEditor 1.2.1
Add a clear() method in the ScriptLogger interface
Fix the setClassLoader(ClassLoader) method in the ScriptWrapper not correctly setting the ClassLoader
Add a CombinedScriptWrapper class which allows to find a suitable ScriptWrapper among a list for the script file
Add a Javascript implementation

Posted by Hervé Girod 2020-01-04

1.0 released

Fix the scripts not always working in some cases if there is no method header
Fix the line offset being incorrect when there is no method header
Support the 'load' and 'require' expressions in Ruby scripts
Add a custom 'load as' instruction for groovy scripts

Posted by Hervé Girod 2020-01-03

0.9 released

Use JEditor 1.2
Use docJGenerator 1.4.16.1
Add a default Swing implementation for the ScriptLogger
Add the concept of a script helper
Allow to not write the method header if the script has only one method

Posted by Hervé Girod 2019-12-22

0.8 released

Add the ability to add several ScriptExceptionListeners (rather than only one)
The SwingExceptionListener popup Window is called through an invokeLater to avoid any freeze of the GUI

Posted by Hervé Girod 2019-10-16

0.7 released

Use jEditor 1.1
Fix the presentation of the exceptions in the Swing panel which was incorrect
Factor the StackTrace creation in a general helper method
The Groovy Script interface do not need to extend the ContextListener interface anymore

Posted by Hervé Girod 2019-10-15

0.6 released

Allow to add custom default import declarations in the scripts
Fix the context set externally in the ScriptWrapper not taken into account
Improve the wiki content

Posted by Hervé Girod 2019-10-13

0.5 released

First release !

Posted by Hervé Girod 2019-10-12
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.