OxL Reference

error missing-provide

error Standard: [§12.7]

What it means#

A dep name: T of a service impl needs a provide T = … for every role that serves the service (all roles when the provide has no for role; the implicit role all without a cluster).

Example#

oxl✓ checked in CI
data Db { name: str }
service Users { rpc dbName() -> str }
impl Users {
  dep db: Db           // <- missing-provide
  rpc dbName() { db.name }
}
error
missing-provide

How to fix#

Add provide Db = … (with for role r, … listing every role that serves the service).

See also#

OxL 1.0.0-beta · Documentation version 1.0.0-beta© OxwaldLink · generated from the Standard, the std sources and the guides