Error messages in scripts are shown very poorly

22 views
Skip to first unread message

irgend wer

unread,
Oct 23, 2024, 6:32:23 AM10/23/24
to JEB Decompiler
Please improve how error output from script is shown.
At the moment it look like this: 

[C] Unknown error

[C] java.lang.reflect.InvocationTargetException

[C] at com.pnfsoftware.jeb.rcpclient.extensions.ui.UITask.run(UITask.java:149)

[C] at com.pnfsoftware.jeb.rcpclient.extensions.ui.TaskMonitorDialog$1.run(TaskMonitorDialog.java:214)

[C] at java.base/java.lang.Thread.run(Thread.java:1575)

[C] Caused by: Traceback (most recent call last):

[C] File "<string>", line 1, in <module>

[C] SyntaxError: ('non-keyword arg after keyword arg', ('c:\\Tools\\JEBDecompiler\\scripts\\samples\\DecompileFile.py', 101, 17, ' (codeUnit,)\n'))

[C]

[C] at org.python.core.ParserFacade.fixParseError(ParserFacade.java:95)

[C] at org.python.core.ParserFacade.parse(ParserFacade.java:190)

[C] at org.python.core.imp.compileSource(imp.java:544)

[C] at org.python.core.imp.createFromSource(imp.java:577)

[C] at org.python.core.imp.loadFromSource(imp.java:946)

[C] at org.python.core.imp.find_module(imp.java:771)

[C] at org.python.core.imp.import_next(imp.java:1160)

[C] at org.python.core.imp.import_module_level(imp.java:1352)

[C] at org.python.core.imp.importName(imp.java:1544)

[C] at org.python.core.ImportFunction.__call__(__builtin__.java:1285)

[C] at org.python.core.PyObject.__call__(PyObject.java:400)

[C] at org.python.pycode._pyx2.f$0(<string>:1)

[C] at org.python.pycode._pyx2.call_function(<string>)

[C] at org.python.core.PyTableCode.call(PyTableCode.java:173)

[C] at org.python.core.PyCode.call(PyCode.java:18)

[C] at org.python.core.Py.runCode(Py.java:1703)

[C] at org.python.core.Py.exec(Py.java:1747)

[C] at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:268)

[C] at com.pnfsoftware.jeb.client.script.PythonScriptFactory.init(SourceFile:90)

[C] at com.pnfsoftware.jeb.client.script.PythonScriptFactory.<init>(SourceFile:43)

[C] at com.pnfsoftware.jeb.client.script.ScriptLoader.loadPython(SourceFile:103)

[C] at com.pnfsoftware.jeb.client.script.ScriptLoader.load(SourceFile:81)

[C] at com.pnfsoftware.jeb.client.script.ScriptLoader.<init>(SourceFile:56)

[C] at com.pnfsoftware.jeb.rcpclient.RcpClientContext$22.call(RcpClientContext.java:4064)

[C] at com.pnfsoftware.jeb.rcpclient.RcpClientContext$22.call(RcpClientContext.java:4061)

[C] at com.pnfsoftware.jeb.util.concurrent.ThreadEx.run(SourceFile:52)

[C]

A  simple SyntaxError in all it's 'beauty'.

I mean, seeing the JEB's stacktrace of it's PythonInterpreter is total unnecessary and disturbing.

So make the script error to be shown nicely formatted and include the strack trace from the
 script

Just make JEB  show the SyntaxError: in the script, without all that clutter around from JEB Jpython and the framework.
Reply all
Reply to author
Forward
0 new messages