• I get this after I install widgetupdate on a fresh install:

    >OK
    OK
    OK
    Uncaught Error: Cannot read property 'filter' of undefined
     at line 1 col 112 in messages.wid.js
    msgs.filter(msg=>msg.new&&msg.id!="music­").map(m=>m.src).filter((m...
              ^
    in function "filterMessages" called from line 1 col 1371 in messages.wid.js
    ...msgs=filterMessages(rawMsgs);this.wid­th=24*E.clip(this.msgs.length...
                                        ^
    in function "update" called from line 16 col 329 in .boot0
    ...ETS[i];if(w.update)w.update();}}
                                   ^
    in function "updateWidgets" called from line 16 col 1049 in .boot0
    ...};});}Bangle.updateWidgets();if(!WIDG­ETS_LOADED)WIDGETS_LOADE...
                                   ^
    in function "o" called from line 35 col 29 in .boot0
    o();const s=require("Storage").readJSON("wid_edit.­json",1)||{};const c=...
                 ^
    in function "loadWidgets" called from line 3 col 7789 in antonclk.app.js
    ...all;}});Bangle.loadWidgets();Bangle.d­rawWidgets();}
                                  ^
    >
    Uncaught Error: Cannot read property 'filter' of undefined
     at line 1 col 112 in messages.wid.js
    msgs.filter(msg=>msg.new&&msg.id!="music­").map(m=>m.src).filter((m...
              ^
    in function "filterMessages" called from line 1 col 1371 in messages.wid.js
    ...msgs=filterMessages(rawMsgs);this.wid­th=24*E.clip(this.msgs.length...
                                        ^
    in function "update" called from line 16 col 329 in .boot0
    ...ETS[i];if(w.update)w.update();}}
                                   ^
    in function "updateWidgets" called from line 16 col 1049 in .boot0
    ...};});}Bangle.updateWidgets();if(!WIDG­ETS_LOADED)WIDGETS_LOADE...
                                   ^
    in function "o" called from line 35 col 29 in .boot0
    o();const s=require("Storage").readJSON("wid_edit.­json",1)||{};const c=...
                 ^
    in function "loadWidgets" called from line 1 col 157 in iconlaunch.app.js
    ...screen){Bangle.loadWidgets();Bangle.d­rawWidgets();}let launchCa...
                                     ^
    >
    

    Step-by-step:

    1. Factory reset watch via web IDE
    2. Install favorite apps, among them Icon Launcher, Anton Clock and Fastload helper.
    3. Install widgetupdate.
    4. Long press physical button to reset after loading apps.
    5. On Anton Clock no widgets are drawn.
    6. Press physical button go to launcher.
    7. Stuck on "Fastloading..."
  • That's not because of wid_edit, it's the messages widget: it already had an update method which expects an incoming message as argument.

    Actually, I think I'd like to rewrite the messages library/app/widget some more, so it just passes everything through Bangle.emit("message", type, message);, instead of directly calling widget methods or global functions.

  • Ok! EDIT: But I don't seem to get the error if I don't install widgetupdate.

    EDIT2: Another thing I'm noticing now is "Exit to launcher"-widget and "Light switch widget" will sit in the same postition, overlapping each other depending on which of them had the latest draw.

About

Avatar for rigrig @rigrig started