bynk.given.cross_context_unknown_capability
Error given B.Cap or consumes B { Cap } names a capability the consumed context does not export.
A context may only depend on a capability that the context providing it exports. exports capability { … } is the provider's decision about what it offers other contexts, and a capability it leaves out stays its own. So consumes clock { Clock }, or a qualified given clock.Clock, is refused when clock does not list Clock. Add the name to the provider's exports capability clause (it must declare and provide the capability), or correct the spelling here. A context that is not consumed at all is bynk.resolve.unconsumed_context.
Example
context shop
consumes clock { Clock } // ✗ `clock` exports no `Clock`
// clock.bynkcontext clock
exports capability { Clock } // ✓ the provider offers itIn the Book
See also
- The grammar rule it governs:
given_clause. - Every code in its category, Given capabilities, on the diagnostic index.
bynk explain bynk.given.cross_context_unknown_capabilityshows the same from the installed toolchain, without a network.