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
Currently errors within visualizations are not really handled - usually when one happens the visualization box just stays empty with no feedback to the user.
Two kinds of visualization errors should be handled:
if the preprocessing code that is attached to the visualization panics/returns an error/does not compile - currently this can only be checked by inspecting the language server logs,
if the JS visualization code fails (for example throws an exception) - currently this can be checked by inspecting dev console logs.
Tasks
Display the errors received from the Engine.
Display errors when js script throws an exception.
Motivation
Engine specification
#1671 adds new executionContext/visualisationEvaluationFailed notification about visualisation errors.
In general, there are two kinds of visualisation errors.
VisualisationExpressionError, the error reply on executionContext/attachVisualisation or executionContext/modifyVisualisation request. This error is sent when the text visualisation expression is compiled into an Enso function.
(new) executionContext/visualisationEvaluationFailed notification sent during the program execution, when the computed value is applied to the visualisation function.
The text was updated successfully, but these errors were encountered:
- Add parser & handler in IDE for `executionContext/visualisationEvaluationFailed` message from Engine (fixes a developer console error "Failed to decode a notification: unknown variant `executionContext/visualisationEvaluationFailed`"). The contents of the error message will now be properly deserialized and printed to Dev Console with appropriate details.
- Fix a bug in an Enso code snippet used internally by the IDE for error visualizations preprocessing. The snippet was using not currently supported double-quote escaping in double-quote delimited strings. This lack of processing is actually a bug in the Engine, and it was reported to the Engine team, but changing the strings to single-quoted makes the snippet also more readable, so it sounds like a win anyway.
- A test is also added to the Engine CI, verifying that the snippet compiles & works correctly, to protect against similar regressions in the future.
Related: #2815
General Summary
Currently errors within visualizations are not really handled - usually when one happens the visualization box just stays empty with no feedback to the user.
Two kinds of visualization errors should be handled:
Tasks
Motivation
Engine specification
#1671 adds new executionContext/visualisationEvaluationFailed notification about visualisation errors.
In general, there are two kinds of visualisation errors.
VisualisationExpressionError, the error reply on executionContext/attachVisualisation or executionContext/modifyVisualisation request. This error is sent when the text visualisation expression is compiled into an Enso function.
(new) executionContext/visualisationEvaluationFailed notification sent during the program execution, when the computed value is applied to the visualisation function.
The text was updated successfully, but these errors were encountered: