mdenet / educationplatform

Eclipse Public License 2.0
2 stars 3 forks source link

Using "outputConsole" results in console having "undefined" as text when program completes with no console output #124

Open agarciadom opened 8 months ago

agarciadom commented 8 months ago

I noticed that in order to see error messages in the console panel, I need to use the outputConsole option in the action definition. When I do that, when the program completes successfully, the console will always have the text "undefined" in it. See this screenshot:

image

This is the relevant activity:

https://github.com/agarciadom/mdenet-mde-ci-tutorial/blob/9faca3619f4840b8aabbeef1c699196a81e4f06d/smachines-activity.json#L91

agarciadom commented 8 months ago

In general, I find it a bit odd how we replace undefined values with "undefined" in requests to external services and responses. I understand it's from how the Epsilon tool functions were originally written, but that shouldn't be the case anymore with the playground-micronaut implementations.