Feature #460

Show STSimulator Errors in JTorX

Added by Anonymous over 9 years ago. Updated over 9 years ago.

Status:NewStart date:14 Dec 2010
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

When something is wrong with an STS model, the error reported by the STSimulator lib is not reported by JTorX.

As message, only this is displayed.
Torx-Explorer child-starter exits with failure: Process exited with an error: 1(Exit value: 1)

Instead, the error message is found in a terminal, like for instance:

run-errreporter: Torx-Explorer: stsimulator.sts.SymbolicTransitionSystem$SwitchParseException: Update Mapping parse error at switch: ?op1 [true == true] sum = sum + s
2010-12-14T13:28:02.164+0100 Torx-Explorer suberr: Encountered "<EOF>" at line 1, column 13.
run-errreporter: Torx-Explorer: Encountered "<EOF>" at line 1, column 13.
2010-12-14T13:28:02.174+0100 Torx-Explorer suberr: Was expecting one of:
run-errreporter: Torx-Explorer: Was expecting one of:
2010-12-14T13:28:02.184+0100 Torx-Explorer suberr: ";" ...
run-errreporter: Torx-Explorer: ";" ...
2010-12-14T13:28:02.188+0100 Torx-Explorer suberr: "+" ...
run-errreporter: Torx-Explorer: "+" ...
2010-12-14T13:28:02.189+0100 Torx-Explorer suberr: "-" ...
run-errreporter: Torx-Explorer: "-" ...
2010-12-14T13:28:02.189+0100 Torx-Explorer suberr: "*" ...
run-errreporter: Torx-Explorer: "*" ...
2010-12-14T13:28:02.189+0100 Torx-Explorer suberr: "/" ...
run-errreporter: Torx-Explorer: "/" ...

It would be nice if the error would be displayed by JTorX, otherwise it is very difficult to debug a model.

History

#1 Updated by Axel Belinfante over 9 years ago

These messages that appear on the terminal are also shown in the messages pane, but, unfortunately, each line becomes a separate message.
The scrollbar that is visible in/near the message pane only 'works' on the individual message that is being shown, it is not used to scroll back/forth through the messages.
By clicking the buttons next to the messages pane (at the right) you can scroll back and forward through the messages, i.e. by pressing the 'down-arrow' button often enough you will finally see the parse error.

I agree that the messages pane can be improved, I'm not sure yet what would be the best way.

Also available in: Atom PDF