Skip to content
Playground(another site)

bynk.agent.replaces_unknown

Error agent New replaces Old names an Old that bynk.schema.lock does not record for this context, so there is no recorded class to rename.

agent New replaces Old renames a class: Old's stored data and its recorded history move to New. That only works for a class bynk.schema.lock records for this context, so a misspelt old name, or a class that was never built with this context, is refused rather than quietly starting New from nothing. Check the old name against the [agents."…"] entries in the lock. The old class must also be gone from source, as bynk.agent.replaces_live requires.

Example

agent Basket replaces Trolley { // ✗ the lock records no class `shop.Trolley`
agent Basket replaces Cart { // ✓ a recorded class, and no longer declared

In the Book

See also

  • Every code in its category, Agents, on the diagnostic index.
  • bynk explain bynk.agent.replaces_unknown shows the same from the installed toolchain, without a network.