Bugfixing Hardcoded Mosaic Widgets - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9) +--- Thread: Bugfixing Hardcoded Mosaic Widgets (/showthread.php?tid=2913) |
Bugfixing Hardcoded Mosaic Widgets - hummelsystemhaus - 20.10.2020 Does anyone have a good way of bugfixing Mosaic Widgets coded in JS? My plan is to have only custom coded Widgets to get the most out of Mosaic visu. At the moment im just pushing them up into an empty Mosaic app to not crash anything important. But then the only sign i get if it works or not, is if the App loads correctly, after adding the Widget in extensions. Im writing my code in Atom with JS package, so i dont get Syntax errors shown either. RE: Bugfixing Hardcoded Mosaic Widgets - buuuudzik - 20.10.2020 1) Do backup of your current project. 2) Use everywhere try { RISK CODE } catch (err) { console.log(err); } 3) When importing you can check this issue because I had same problems: https://forum.logicmachine.net/showthread.php?tid=2849&highlight=mosaic For me the best way to minimize bugs is by preparing good backbone widget and some helpers functions to simplify as much as possible to limit bugs to only syntax which can be found by Atom or VSCode. When I have such backbone widget prepared then I am trying to use same methods as often as it is possible. |