-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[module/suncalc.js] Calling functions multiple times leads to errors. #3062
Comments
This looks more like the IDE trying to kill the program. Looks like its checking the prompt after upload which your heavy computation prevents. How about waiting before executing the program?
This runs without error on my Bangle. |
I didn't do enough testing. It seems like an error occurs after some amount of computing?
|
Might be related: espruino/EspruinoWebIDE#194 |
That does not surprise me :)
Hmm maybe. I changed the program I am working on, so it won't call the function that often. But I am not sure what to do with this issue now. |
@nxdefiant Waiting beforehand works. Thanks |
This is expected behaviour - specifically:
The IDE uploaded some code (likely to RAM?) which gets executed as it's uploaded, but then the IDE detects that it's taking a long time to complete, so rather that leave you with a blank, unresonsive left-hand side of the IDE it tries to break out of the executing code. If possible, ideally you'd avoid anything that takes that long (even after a delay) as while it won't break out on the watch it can make it seem unresponsive. |
Affected hardware version
Bangle 2
Your firmware version
2v19
The bug
Calling functions from suncalc.js a few times creates errors. When sending following program to Bangle 2 via the web ide an error occurs. This does not happen with the emulator. Don't have a Bangle 1 for testing. Hope someone else can reproduce this.
Program:
Terminal output:
Console output:
Installed apps
No response
The text was updated successfully, but these errors were encountered: