Acknowledged
CIQQA-3165

"How to Import Barrels" doc incorrectly (?) claims that a barrel's annotations are automatically added to barrel jungle

https://developer.garmin.com/connect-iq/core-topics/shareable-libraries/#howtoincludebarrels

"The Barrels and their specified annotations will be added to the default Barrel Jungle file automatically. The manifest file will also be updated with those Barrel dependencies."

Hope I'm not misinterpreting what's meant by "specified annotations".

Recreation procedure:

- use sdk 8.1.1

- clone https://github.com/douglasr/msgpack-monkeyc barrel

- edit barrel's manifest to remove preview devices, if necessary

- export project

- note all the warnings about top level modules not being decorated with an annotation in MessagePackTest.mc: e.g.

WARNING: fenix7pro ...\MessagePackTest.mc:33: Top level module '$.MessagePack.Serialize' is not decorated with an annotation despite supported annotations being specified in the manifest file.

(if that file is removed from the project, those warnings are obviously eliminated, but it doesn't help with the bug that's the subject of this report)

- create a new Monkey C watch app project

- follow the procedure in the docs to import the MessagePack barrel

- add the following line somewhere in the new app source:

MessagePack.Serialize.pack([1,2,3,4]);

- build the project. the project build will fail with an error:

Undefined symbol ':pack' detected.

- [*] add the following line to barrels.jungle:

base.MessagePack.annotations = MessagePackSerialize;MessagePackDeserialize

- build the project and note that the project now builds without error

[*] Even if this is all "working as designed", it's not clear to me how a dev would automatically know how to do this step since it doesn't seem to be documented.

References:

https://forums.garmin.com/developer/connect-iq/i/bug-reports/ciq-barrels-documentation-doesn-t-explain-how-to-manually-include-annotations-from-a-barrel

https://forums.garmin.com/developer/connect-iq/f/discussion/409623/3d-party-barrel---can-t-get-it-to-work/1925315#1925315

https://forums.garmin.com/developer/connect-iq/i/bug-reports/bug-barrel-with-several-annotations-cannot-have-tests