You are reading a single comment by @Ganblejs and its replies.
Click here to read the full conversation.
-
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.width=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(!WIDGETS_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.drawWidgets();} ^ > 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.width=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(!WIDGETS_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.drawWidgets();}let launchCa... ^ >
Step-by-step:
- Factory reset watch via web IDE
- Install favorite apps, among them Icon Launcher, Anton Clock and Fastload helper.
- Install widgetupdate.
- Long press physical button to reset after loading apps.
- On Anton Clock no widgets are drawn.
- Press physical button go to launcher.
- Stuck on "Fastloading..."
- Factory reset watch via web IDE
-
That's not because of
wid_edit
, it's themessages
widget: it already had anupdate
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 throughBangle.emit("message", type, message);
, instead of directly calling widget methods or global functions.
I have done some changes to quicklaunch and wid_edit. Those should help with the erratic behaviour. I had not yet used wid_edit before, but I think it still works.