I'm aware of the previous export problem with SDK 7.4.0, and while my issue below may be a duplicate of this post but I wanted to start a new thread with a more appropriate thread subject/title.
I was compiling and running locally (in the sim) one of my apps just fine with SDK 7.3.1, however when I downloaded SDK 7.4.1 the unchanged code was reporting 6 new errors.
Two of the errors were "Statement is not reachable" errors, which I easily tracked down to functions not marked as potentially returning Null.
The other errors, however, are very strange and are contained with the onTap() function of an InputDelegate.
var coords = clickEvent.getCoordinates();
for (var i=1; i <= 12; i++) {
// do whatever
var drawable = _view.findDrawableById("someID");
if ( != null) {
// do stuff
break;
}
}
- Trying to access an uninitialized variable.
- Cannot perform operation 'add' on types 'Uninitialized' and '$.Toybox.Lang.Number'.
I've isolated this down to the i++ portion of the for-loop and don't see how I can possibly work around this. I have tried changing it to a while-loop, moving the code location, changed variable names, defined the counter/index outside of the loop, changed the way the addition is done, etc but the end result is always the same errors.