E3022
Error code: the run stops before anything is written. Raised by: events.
Cause
<plugin> provides <contract>, whose <clause> clause clears <items>, but does not listen to <event>, so that state would outlive the agent it describes.
Fix
Add <event> to [events] listens in the plugin.toml of <plugin>, and clear <items> in that listener.
What the engine prints
The message names the code, then where the problem is when it has a place in a file, then the fix. Words in angle brackets are filled in with the names and values of your file.
error[E3022]: <plugin> provides <contract>, whose <clause> clause clears <items>, but does not listen to <event>, so that state would outlive the agent it describes.
--> <file>:<line>:<column>
= fix: Add <event> to [events] listens in the plugin.toml of <plugin>, and clear <items> in that listener.
With --json, the same diagnostic is one JSON object with the fields code, severity, file, line, column, rule, fix and args.
Values filled in
plugin, contract, clause, items, event.
Generated from schemas/messages/en.toml. Do not edit. This page (code E3022) is built from the engine sources at every documentation build. To change it, edit the E3022 rule and fix in the English message catalogue (crates/cohortix-schema/messages/en.toml, published as schemas/messages/en.toml) and open a pull request.