You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling compile method on IMain (JSR223 ScriptEngine) with an invalid script, ScriptException is thrown with no other information than the message: "compile-time error". It should be thrown with an error message coming from the compiler, and also with the lineNumber and columnNumber arguments.
It should throw the same ScriptException content as when calling eval method.
It's quite inconvenient when embedding Scala in a end-user application with a JSR223 Script Editor, along with others languages (see attached screenshots). The Script Editor calls compile to validate the script from user invalid input through JSR223 API, and display message from ScriptException to the user if it fails to compile.
Others ScriptEngine implementations (Groovy, MVEL, Jython ...) provides usefull those information on compilation errors (line number, column number, compiler message).
The text was updated successfully, but these errors were encountered:
When calling compile method on IMain (JSR223 ScriptEngine) with an invalid script, ScriptException is thrown with no other information than the message: "compile-time error". It should be thrown with an error message coming from the compiler, and also with the lineNumber and columnNumber arguments.
It should throw the same ScriptException content as when calling eval method.
It's quite inconvenient when embedding Scala in a end-user application with a JSR223 Script Editor, along with others languages (see attached screenshots). The Script Editor calls compile to validate the script from user invalid input through JSR223 API, and display message from ScriptException to the user if it fails to compile.
Others ScriptEngine implementations (Groovy, MVEL, Jython ...) provides usefull those information on compilation errors (line number, column number, compiler message).
The text was updated successfully, but these errors were encountered: