espruino / espruino/BangleApps

[setting] "Utils" -> "Rewrite Settings" gives Uncaught Error

Open Beginner friendly
#4,348 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
571
Forks
1.3k
Avg merge
17h 38m
Merged PRs (30d)
17

Description

### Affected hardware version

Bangle 2

### Your firmware version

2v29.392 (iflash - but have seen this on regular as well)

### The bug

Repro:
Go to and click "Settings" -> "Utils" -> "Rewrite Settings". Then the watch hangs. Recoverable by long press HW button to load the clock face.

Console output:
```
____ _
| __|___ ___ ___ _ _|_|___ ___
| __|_ -| . | _| | | | | . |
|____|___| _|_| |___|_|_|_|___|
|_| espruino.com
2v29.392 (c) 2026 G.Williams
Uncaught Error: Function code is null, not a string
at c (setting.app.js:41:191)
...);load("setting.app.js");
^
at select (:1:91)
...==typeof c)Bangle.haptic("touch"),c(b);else if("object"==typeof c)if(Bangle.hapt...
^
at :1:1
^
Uncaught Error: Function code is null, not a string
>
```

### Installed apps

_No response_

### Author

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the hang through Settings → Utils → Rewrite Settings on a Bangle 2, then inspect setting.app.js around line 41 and the select entry point shown in the console output. Confirm the fix by repeating the action and verifying that the watch no longer reports “Function code is null, not a string” or hangs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
embedded-iot
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.