W3021
Warning code: the run goes on. Raised by: events.
Cause
<plugin> listens to <event>, but no active plugin emits it, so that listener never runs.
Fix
Activate a plugin that provides <contract> and emits <event>, or remove <event> from [events] listens of <plugin>.
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.
warning[W3021]: <plugin> listens to <event>, but no active plugin emits it, so that listener never runs.
--> <file>:<line>:<column>
= fix: Activate a plugin that provides <contract> and emits <event>, or remove <event> from [events] listens of <plugin>.
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, event, contract.
Generated from schemas/messages/en.toml. Do not edit. This page (code W3021) is built from the engine sources at every documentation build. To change it, edit the W3021 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.