enso-org / enso

Enso Analytics is a self-service data prep and analysis platform designed for data teams.
https://ensoanalytics.com
Apache License 2.0
7.39k stars 323 forks source link

Error handling inside visualizations code #11624

Open vitvakatu opened 6 days ago

vitvakatu commented 6 days ago

Unhandled exceptions thrown from visualization code (during setup script execution or when rendering) usually cause the whole visualization stack to collapse.

My initial experiments as part of https://github.com/enso-org/enso/issues/11426 were unsatisfactory. To detect an error, we need to at least try to instantiate the visualization component. But if the error happens, Vue reports it as an unhandled exception in the console even when we handle it in the onErrorCaptured hook.

We should implement proper error handling for both built-in and user-defined visualizations.