Skip to content

[widget_utils] seems to have become incompatible with Bangle.js 1 at some point because of it's reliance on Bangle.setLCDOverlay. #3830

@thyttan

Description

@thyttan

Tried the updates here on Bangle.js 1 emulator. I found two problems so far:

  1. Widget Utils seems to have become incompatible with Bangle.js 1 at some point because of it's reliance on Bangle.setLCDOverlay.
>eval(require("Storage").read("messagegui.app.js"))
=undefined
Uncaught Error: Function "setLCDOverlay" not found!
 at line 16 col 549 in messagegui.app.js
exports.offset=-24,Bangle.setLCDOverlay(undefined,{id:'widge...
                          ^
in function "cleanupOverlay" called from line 16 col 863 in messagegui.app.js
exports.cleanupOverlay(),delete exports.offset,exports.swipe...
                       ^
in function "cleanup" called from line 16 col 105 in messagegui.app.js
if(exports.cleanup(),!global.WIDGETS)return;g.reset();for(va...
                   ^
in function "hide" called from line 308 col 11 in messagegui.app.js
  WU.hide();
          ^
in function "showMessagesScroller" called from line 640 col 40 in messagegui.app.js
    showMessagesScroller(newMessages[0]);
                                       ^
in function "checkMessages" called from line 745 col 22 in messagegui.app.js
    dontStopBuzz: 1 });
                     ^
in function called from system

Note: [Bangle.setLCDOverlay] is only available in Bangle.js 2 smartwatches and DICKENS

  1. The scroller works with my test messages, but when I try to exit to the message overview I get low memory error:
>
[...]

Originally posted by @thyttan in #3685 (comment)


Thanks, I tested your version of the app and it appears to fix the problem.

However, your version of Settings might have other issues, perhaps due to my missing other apps that also need to be updated on my Bangle 1. In particular, if I press the red "back arrow" from within the launcher now, I get the following error:

 2v25 (c) 2024 G.Williams
Uncaught Error: Function "setLCDOverlay" not found!
 at line 1 col 458 in launch.app.js
exports.offset=-24,Bangle.setLCDOverlay(undefined,{id:"widget_utils"...
                                  ^
in function "cleanupOverlay" called from line 1 col 731 in launch.app.js
exports.cleanupOverlay(),delete exports.offset,exports.swipeHandle...
                             ^
in function "cleanup" called from line 1 col 291 in launch.app.js
if(exports.cleanup(),!global.WIDGETS)return;for(var a of global.WIDGETS){if...
                                 ^
in function "show" called from line 2 col 219 in launch.app.js
...quire("widget_utils").show();
                              ^
in function "b" called from line 1 col 502
...iRemove;delete Bangle.uiRemove;b()}g.reset();if(c){if("updown"==c)Ban...
                                       ^
in function called from line 1 col 31
Bangle.uiRemove?(Bangle.setUI(),(__FILE__=a)||(a=".bootcde"),...
                               ^
at line 1 col 130
...a))):load(".bootcde"!=a?a:void 0)
                                   ^
in function called from line 1 col 23
Bangle.load(".bootcde")
                      ^
at line 1 col 23
Bangle.load(".bootcde")
                      ^
in function called from line 1 col 12
1==b&&a.back()
             ^
at line 1 col 12
1==b&&a.back()
             ^
in function called from system

Originally posted by @banglejsdev in #3824

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions