Acknowledged

bug: "Permission 'Fit' required for '$.Toybox.ActivityRecording'" error not matching what we see in manifest editor.

The compiler gives a wrong (or at least misleading or partial) error message when using anything from Toybox.ActivityRecording:

Permission 'Fit' required for '$.Toybox.ActivityRecording'.

However I already have the "FIT Contributor" permission checked in the manifest editor, and what actually is missing is the "Activity Recording".

IMHO the confusion is because the permissions are called differently in the manifest XML, in the manifest Editor and in the error message. For example:

xml: Fit
error message: Fit
editor: Activity Recording

Recommended possible fixes:

1. change the text in the manifest editor to include the xml value of the permission, i.e: "Activity Recording (Fit)"
2. change the error message to include the permission name as it is displayed in the manifest editor, i.e: "Permission 'Fit' (Activity Recording) required for '$.Toybox.ActivityRecording'."

  • Agreed. Not only do the permissions in the manifest editor not match the contents of the XML file and the error messages, they also do not match the permissions as listed in the "Monkey C: Edit Products" command (which is just a list of the XML values).

    I think the first recommendation is the best way to fix this problem: both the human readable permission description (e.g. "Activity Recording") and the actual XML value (e.g. "Fit") should be displayed in the manifest editor.