Skip to content
Skip to Content

W4042

Warning code: the run goes on. Raised by: data loading.

Cause

Plugin <plugin> reads access on <collective_type>, but some open dwellings have no place.access row for a place of that type; access returns NoAccessRow for them.

Fix

Bind a place.access table whose travel_times step covers every open dwelling (a larger radius_m, or candidate sites declared), or make the plugin handle NoAccessRow.

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[W4042]
warning[W4042]: Plugin <plugin> reads access on <collective_type>, but some open dwellings have no place.access row for a place of that type; access returns NoAccessRow for them.
  --> <file>:<line>:<column>
  = fix: Bind a place.access table whose travel_times step covers every open dwelling (a larger radius_m, or candidate sites declared), or make the plugin handle NoAccessRow.

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, collective_type.

Generated from schemas/messages/en.toml. Do not edit. This page (code W4042) is built from the engine sources at every documentation build. To change it, edit the W4042 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.

On this page

You are reading the docs for 0.1. Keys can change between versions: use the version that matches cohortix --version.