Skip to content

This page is generated from docs/error-codes.md — edit it there.

ArchLang error codes ​

Every diagnostic carries a stable code. Look one up with arch explain <CODE> (e.g. arch explain E_ROOM_SIZE). Errors abort rendering; warnings do not.

166 errors · 101 warnings

CodeSeveritySummary
E_ACC_PLACEMENTerroraccTitle/accDescr used outside the plan level.
E_ARC_RADIUSerrorArc radius too small for its chord.
E_ARGCOUNTerrorComponent called with the wrong number of arguments.
E_ARITYerrorBuilt-in function called with the wrong number of arguments.
E_ASSIGN_UNDEFerrorAssignment to an undeclared name.
E_ATTACH_POS_RANGEerrorOpening attachment position is out of range.
E_ATTACH_WALL_REFerrorOpening attached to an unknown or ambiguous wall.
E_CALL_DEPTHerrorValue-function call stack too deep.
E_CLEAR_SCOPEerrorA multi-storey plan writes clear on the plan's height line.
E_COLUMN_SIZEerrorColumn must have a positive size.
E_DATUM_BEFORE_ROOMSerrorA room-edge datum is read before any room is placed.
E_DATUM_COMPASSerrorA compass word is used as a room-edge datum where it would mean two things.
E_DATUM_NAMEerrorA dotted name reads both as a room-edge datum and as an element inside an instance.
E_DATUM_UNPLACEDerrorA room-edge datum names a room that has no position or no size.
E_DIAGNOSTIC_LIMITerrorMore than 500 diagnostics; further diagnostics were not collected.
E_DIM_CURVE_REFerrorInvalid dim radius/dim diameter reference.
E_DIV_ZEROerrorDivision or modulo by zero.
E_DOMAINerrorMath domain error.
E_DOOR_KIND_CLAUSEerrorThat clause is not available on this kind of door.
E_DOOR_KIND_CURVEDerrorA sliding-family or garage door cannot sit on a curved wall.
E_DOOR_OPEN_RANGEerroropen must be between 0 and 1.
E_DOOR_WIDTHerrorDoor must have a positive width.
E_DOTTED_DECLerrorA dotted name cannot be declared.
E_DRAWING_LIMITerrorThe drawing is larger than any plan may draw.
E_DUP_IDerrorDuplicate element id.
E_DUP_INSTANCEerrorDuplicate place … as <name> instance name.
E_ELEMENT_LIMITerrorThe plan expands to too many elements.
E_FACING_CONFLICTerrorA piece states its turn twice.
E_FACING_MISSerrorNo front of the piece points at its facing target.
E_FACING_SYMMETRICerrorA piece with no front cannot face anything.
E_FACING_TARGETerrorfacing names no rectangle to face.
E_FACING_TIEerrorTwo fronts of the piece point at its facing target equally near.
E_FACING_TRANSPOSEDerrorFacing the target would put the piece's back on its short side.
E_FENCE_CURVEDerrorA fence cannot have a curved (arc) edge.
E_FURN_AGAINSTerrorInvalid against wall or against <room>.<edge> fixture placement.
E_FURN_AGAINST_DEMOLISHED_WALLerrorA piece of furniture backs onto a wall marked status demolish.
E_FURN_CLEARerrorInvalid clear depth.
E_FURN_FLUSHerrorflush on a placement that touches no edge.
E_FURN_ROOMerrorFurniture placed in an unknown room.
E_FURN_ROTATEerrorFurniture rotation must be a quarter-turn.
E_FURN_SIZEerrorFurniture must have a positive size.
E_HEIGHT_RANGEerrorA height is outside the range a storey can be built at.
E_IMPERIAL_FORMerrorAn imperial length is written in a form the language does not read.
E_IMPORT_BAD_SPECerrorMalformed import spec.
E_IMPORT_CONFLICTerrorImported name conflicts with an existing component.
E_IMPORT_CYCLEerrorCyclic import.
E_IMPORT_FORMATerrorA file given to archlang import is not a valid plan in the format it was read as.
E_IMPORT_LIMITerrorA file given to archlang import needs more work to convert than any plan does.
E_IMPORT_NOT_ARCHerrorAn imported module is not a .arch file.
E_IMPORT_NOT_EXPORTEDerrorImported name is not exported by the module.
E_IMPORT_NOT_FOUNDerrorImport path could not be resolved.
E_IMPORT_OUTSIDE_ROOTerrorAn imported module lies outside the import root.
E_IMPORT_PARSEerrorImported module has a parse error.
E_IMPORT_TOO_LARGEerrorAn imported module is larger than the CLI reads.
E_INDEXerrorArray index out of range.
E_INPUT_TOO_LARGEerrorThe source is larger than this host accepts.
E_INSTANCE_NO_TRANSFORMerrorA plugin element inside a placed component has no transform().
E_INTENT_GROSS_AREAerrorThe plan's gross internal area is outside the brief's band.
E_INTENT_NOT_ADJACENTerrorTwo rooms the brief wants adjacent share no interior door.
E_INTENT_NO_DOORerrorThe plan has no modeled entrance, so reachable cannot hold.
E_INTENT_NO_SITEerrorAn intent asserts a SYMBOLIC window facing against a plan with no site.
E_INTENT_NO_WINDOWerrorA room the brief wants a window in has too few.
E_INTENT_ROOM_AREAerrorA named room's floor area is outside the brief's band.
E_INTENT_ROOM_COUNTerrorThe plan's room count does not match the brief.
E_INTENT_ROOM_DIMENSIONerrorA room's width, depth or exact size is not what the brief states.
E_INTENT_ROOM_MISSINGerrorA room the brief names is absent from the plan.
E_INTENT_TOTAL_AREAerrorThe plan's total floor area is outside the brief's band.
E_INTENT_UNMEASUREDerrorA brief-bound measure has no value on this plan.
E_INTENT_UNREACHABLEerrorA room cannot be reached from the entrance through modeled doors.
E_JSON_DERIVED_IN_INSTANCEerrorPlan JSON cannot carry a placed component that derives its walls in this plan.
E_JSON_KINDerrorUnknown element kind in plan JSON.
E_JSON_MIRRORerrorPlan JSON door, dimension or flattened instance's piece is mirror: true, which .arch source cannot state.
E_JSON_SCHEMAerrorPlan JSON does not match the schema.
E_KEEP_LIMITerrorToo many keeps, or too many targets in one keep.
E_KEEP_MEASUREerrorThe keep's measure is not defined for what it names.
E_KEEP_PLACEMENTerrorA keep where it cannot be checked.
E_KEEP_SELFerrorA keep compares something with itself.
E_KEEP_TARGETerrorA keep names something that is not there.
E_KEEP_VALUEerrorA keep's value is out of its domain.
E_LAYOUT_CYCLEerrorRelational room placement forms a cycle.
E_LAYOUT_REFerrorRelational placement references an unknown room.
E_LAYOUT_UNPLACEDerrorA relational room depends on a room that could not be placed.
E_LEVEL_DUPerrorTwo level blocks declare the same storey number.
E_LEVEL_MIXerrorA drawable statement sits beside level blocks.
E_LEVEL_NESTerrorlevel used inside a block or component.
E_LOCKED_ELEMENT_CHANGEDerrorAn element archlang impact --lock names changed between the two versions.
E_LOCK_UNNAMEDerrorarchlang impact --lock names an element whose id was not written, or no element at all.
E_NON_FINITEerrorA number is too large to be finite.
E_OPENING_ABOVE_WALLerrorAn opening's head is above the wall it is cut in.
E_OPENING_DATUMerrorAn opening's position names no datum that applies to its run.
E_OPENING_HOST_AMBIGUOUSerrorA relational opening's run carries more than one wall and its position does not land it on one, its position does not pick one of the edges two rooms share, or an open between clause names a pair that shares more than one edge.
E_OPENING_NIBerrorA relational opening leaves too short a nib of wall at a junction; it is refused, never moved.
E_OPENING_NO_SHARED_WALLerrorA relational opening's run carries no wall (or, on a room edge, no exterior wall).
E_OPENING_ON_DEMOLISHED_WALLerrorA door, window or opening stands in a wall marked status demolish.
E_OPENING_WIDTHerrorOpening must have a positive width.
E_OUTDOOR_POLY_DEGENERATEerrorAn outdoor ring is degenerate, or a balcony was given one.
E_OUTDOOR_POLY_SELF_INTERSECTerrorAn outdoor ring crosses itself.
E_OUTDOOR_RAILerrorA rail clause on something that is not a balcony, or an unknown edge word.
E_OUTDOOR_SIZEerrorAn outdoor surface must have a positive size.
E_OUT_OF_RANGEerrorA coordinate, length or drawing setting is outside the modelling range.
E_PARSEerrorThe source could not be read: its SHAPE is wrong.
E_PARTITION_TOO_SHORTerrorwalls from rooms, or a wall … between, meets a shared edge shorter than the wall's thickness.
E_PLACE_POLYerrorA placement clause aimed at a polygon room that has no one edge or corner to stand on.
E_PLACE_REFerrorFurniture placed in an unknown or unplaced room.
E_PNG_DEPENDENCYerrorPNG/PDF export needs an optional dependency that is not installed.
E_RANGE_LIMITerrorRange too large.
E_RATE_LIMITEDerrorThis address sent more requests than the host answers per minute.
E_RECURSIONerrorComponent recursion too deep.
E_REDEFerrorName already defined in this scope.
E_ROOF_AMBIGUOUSerrorroof overhang cannot tell which wall ring to follow.
E_ROOF_CURVEDerrorroof overhang on a wall with a curved edge.
E_ROOF_OVERHANGerrorroof overhang is zero or negative.
E_ROOF_PLACEMENTerrorroof used inside a component body.
E_ROOF_POLY_DEGENERATEerrorroof polygon outline has fewer than 3 effective vertices.
E_ROOF_SELF_INTERSECTerrorThe roof outline crosses itself.
E_ROOF_WALLerrorroof overhang … wall <id> names a wall that cannot carry a roof.
E_ROOMS_NOT_TILINGerrorwalls from rooms, or a wall … around, meets rooms that do not tile one connected floor.
E_ROOMS_OVERLAPerrorwalls from rooms, a wall … between/wall … around, or a door or opening between a polygon and a room, meets two rooms that overlap.
E_ROOM_ALIGNerrorUnknown relational alignment edge.
E_ROOM_ALIGN_AXISerrorRelational alignment edge belongs to the other axis.
E_ROOM_NOT_RECTANGLEerrorA room-edge datum meets a circle, a slanted polygon, a polygon side of several runs or a polygon's centre; a wall … between/wall … around meets a polygon or circle room; or walls from rooms or a door or opening placed between two rooms meets a circle or a polygon with a slanted edge.
E_ROOM_POLY_DEGENERATEerrorPolygon room has fewer than three effective vertices.
E_ROOM_POLY_SELF_INTERSECTerrorPolygon room intersects itself.
E_ROOM_RADIUSerrorCircular room needs a positive radius.
E_ROOM_SIZEerrorRoom must have a positive size.
E_RULESET_VALUEerrorA lint ruleset value is not a finite number within the modelling range.
E_RUN_TOO_LONGerrorA stair or escalator run is longer than any run the plan draws.
E_SECTION_AXISerrorA section mark's cut line is slanted or has no length.
E_SECTION_DUPerrorTwo section marks share a name.
E_SECTION_LOOKerrorA section mark looks along its own cut line.
E_SECTION_SCOPEerrorA section mark sits inside a level, zone, component or block.
E_SEGMENT_SELECTerrorA segment selector (segment north, segment containing <room>.<edge>) does not name exactly one segment.
E_SET_OVERRIDEerrorarchlang impact --set NAME=value cannot override that name with that value.
E_SILL_ABOVE_HEADerrorA window's sill sits at or above its head.
E_SITE_BOUNDARY_DEGENERATEerrorThe site boundary encloses no lot.
E_SITE_BOUNDARY_SELF_INTERSECTerrorThe site boundary crosses itself.
E_SITE_DUPerrorTwo site blocks in one plan.
E_SITE_NO_STREETerrorA site block declares no street.
E_STAIR_PIECESerrorA stair's flights and landings do not make one stair.
E_STAIR_WIDTHerrorStair flight width is outside the footprint.
E_STALE_SOURCEerrorThe file is not the revision --expected-hash names.
E_STEP_LIMITerrorEvaluation did more work than any plan needs.
E_STRIP_NESTerrorIllegal strip nesting.
E_STRIP_SIZEerrorRoom in a strip is missing a size.
E_SWING_SIDEerrorswing inward or swing outward on a wall with no single inside.
E_TYPEerrorType mismatch.
E_UNKNOWN_COMPONENTerrorUnknown component.
E_UNKNOWN_FNerrorUnknown function.
E_UNKNOWN_REFerrorUnknown reference.
E_VERT_SIZEerrorVertical circulation must have a positive size.
E_VOID_POLYerrorA void … polygon ring must run only horizontally and vertically, without crossing itself.
E_VOID_RAILerrorA void's rail clause names an edge the void does not have.
E_VOID_SIZEerrorA floor void must have a positive size.
E_WALLS_FROM_NO_ROOMSerrorA walls from rooms statement has no room to derive walls from.
E_WALLS_FROM_ROOMS_DUPerrorMore than one walls from rooms statement in one plan or component.
E_WALL_BETWEEN_DUPerrorA walls from rooms statement names one pair of rooms in two clauses.
E_WALL_BETWEEN_NOT_ADJACENTerrorA walls from rooms clause, a wall … between, or a door or opening placed between two rooms, names two rooms that share no edge.
E_WALL_BETWEEN_OPENerrorA wall, door, window or opening is written on an edge a walls from rooms clause declares open.
E_WALL_BETWEEN_ROOMerrorA walls from rooms clause names a room it cannot act on.
E_WALL_BETWEEN_WIDTHerrorAn open between opening does not fit the clear span of its edge.
E_WALL_ID_RESERVEDerrorAn authored wall takes the id the derived exterior ring has in this plan or component.
E_WALL_THICKNESSerrorWall must have a positive thickness.
E_WHILE_LIMITerrorwhile exceeded its iteration cap.
E_WINDOW_CORNERerrorA window placed at corner does not stand at a true corner of two walls.
E_WINDOW_KIND_CLAUSEerrorThat clause is not available on this kind of window.
E_WINDOW_WIDTHerrorWindow must have a positive width.
W_ACCESSIBLE_WC_SIDE_WALLwarningAn accessible WC's pan stands too far from every side wall.
W_ALIAS_MATCHwarningA room's use was inferred from an indirect alias, not stated.
W_ANNOTATION_OVERLAPwarningA label or a dims auto number is printed over a symbol, a wall, a door swing or another label, or a label runs off its room.
W_AXES_DIFFERwarningThe plan's one axes block comes out as different grids on two storeys.
W_BALCONY_NO_DOORwarningA balcony with no way onto it.
W_BATH_VIA_BEDROOMwarningBathroom is reachable only through a bedroom.
W_BEDROOM_NO_WINDOWwarningBedroom has no window.
W_BED_UNDERSIZEDwarningA bed is drawn smaller than the smallest standard bed.
W_BOUNDARY_NO_WALLwarningTwo rooms meet with no wall between them.
W_CIRCUITOUS_PATHwarningA room is reached by a very roundabout path.
W_CJK_FONT_MISSINGwarningPDF/PNG text has CJK characters, but the optional CJK font package is not installed.
W_CLEAR_HEIGHT_MISMATCHwarningA storey's written clear height disagrees with the one its heights give.
W_CONNECTOR_AMBIGUOUSwarningA door or cased opening does not join two rooms cleanly.
W_DIAGNOSTIC_LIMITwarningMore than 500 diagnostics, all warnings; further diagnostics were not collected.
W_DIM_INSIDEwarningA hand-written dimension line lands inside the building.
W_DIM_NO_WALLwarningA dim faces/dim clear endpoint has no wall to measure to.
W_DIM_OVERLAPwarningTwo hand-written dimensions are drawn on top of each other.
W_DIM_TEXT_MISMATCHwarningA hand-written dimension's number is not the span it measures.
W_DOORWAY_BLOCKEDwarningA doorway's landing is blocked.
W_DOOR_CLEARANCEwarningDoor is narrower than the minimum clear width.
W_DOOR_NEAR_CORNERwarningA door leaves less wall between its jamb and a corner than the wall is thick.
W_DOOR_OFF_WALLwarningDoor does not lie on any wall.
W_DRAWING_OVERFLOWwarningThe whole drawing does not fit the declared paper, even though the building does.
W_DUP_ACC_METADATAwarningDuplicate accTitle/accDescr.
W_EMPTY_PLANwarningEmpty plan.
W_ENTRANCE_INTO_PRIVATEwarningThe way in from outside opens into a bedroom, bathroom or WC.
W_EXIT_APPROACH_BLOCKEDwarningFurniture stands in the clear floor inside an exterior exit.
W_EXTERIOR_RING_OPENwarningExterior walls that stand on a room close nothing: the shell has a gap.
W_FIXTURE_BACK_TO_ROOMwarningA fixture stands against a wall but faces the wrong way.
W_FIXTURE_FLOATINGwarningA plumbing/kitchen fixture is not against a wall.
W_FIXTURE_WRONG_ROOMwarningFixture is not inside its declared room.
W_FLOOR_UNASSIGNEDwarningWalled floor is in no room.
W_FOOTPRINT_TRANSPOSEDwarningA piece is drawn turned a quarter: its long side is on the wrong axis.
W_FURNITURE_ON_STAIRwarningFurniture stands on a stair or on the landing it owes.
W_FURNITURE_ON_VOIDwarningFurniture stands on a void, a lift shaft or an escalator.
W_FURNITURE_OVERLAPwarningTwo pieces of furniture overlap.
W_FURNITURE_OVER_WINDOWwarningA tall unit stands in front of a window, or a low piece against a floor-length one.
W_FURNITURE_WALL_COLLISIONwarningFurniture penetrates a wall.
W_FURN_CLEARANCEwarningA fixture's use-space is blocked.
W_FURN_CLEAR_FRONTwarningA declared clear front is not free.
W_FURN_CLEAR_SIDESwarningA declared clear sides is not free.
W_GARAGE_OPENING_UNDERSIZEDwarningA garage's vehicle door is too narrow to drive a car through.
W_GARAGE_TOO_NARROWwarningA garage is too narrow, or too shallow, to park in.
W_GLYPH_UNSUPPORTEDwarningPDF/PNG text has characters no embedded font can draw.
W_GRID_SNAPPEDwarninggrid moved a written size or door position.
W_HABITABLE_NO_WINDOWwarningA living room, dining room or kitchen has no window.
W_HATCH_SCALEwarningHatch scale must be positive; using 1.
W_HOB_FRIDGE_GAPwarningA fridge or other tall unit stands too close beside a hob.
W_HOB_UNDER_WINDOWwarningA hob stands under a window.
W_IMPORT_DROPPEDwarningPart of an imported plan has no ArchLang form and was left out.
W_IMPORT_EMPTY_FILEwarningWhole-file import binds an empty component.
W_KEEP_VIOLATEDwarningA hard keep does not hold.
W_LEAF_ACROSS_DOORWAYwarningA door's open leaf parks across another doorway's approach.
W_LEAF_TOO_WIDEwarningA swinging door leaf is wider than a door is made.
W_LENGTH_IN_METRESwarningA length reads as metres where millimetres are the unit.
W_NO_ENTRANCEwarningThe plan has no exterior door.
W_OPENING_AT_JUNCTIONwarningAn opening runs into a wall junction, or leaves too short a nib of wall beside a jamb.
W_OPENING_NOT_DIMENSIONEDwarningAn opening on the outside of the building is on no dims auto all chain.
W_OPENING_OFF_WALLwarningOpening does not lie on any wall.
W_OPENING_OVERLAPwarningTwo openings on one wall run overlap, or leave a pier thinner than a mullion.
W_OUTDOOR_OVERLAPS_ROOMwarningA ground surface is laid over a room's floor.
W_PATH_TOO_NARROWwarningThe walk to a room squeezes below a passable width.
W_POCKET_RUNwarningA pocket door has no wall to slide into.
W_REASSIGN_DEPRECATEDwarningReassignment (NAME = expr) is deprecated and will be removed in a future major version.
W_ROOM_DISCONNECTEDwarningRoom has no door — it can't be entered.
W_ROOM_LABEL_OUTSIDEwarningA room's explicit label anchor falls outside the room.
W_ROOM_MISSING_DEFININGwarningA furnished room is missing the piece that defines it.
W_ROOM_NOT_ENCLOSEDwarningBathroom is not fully enclosed.
W_ROOM_NOT_EQUATOR_FACINGwarningA habitable room has windows, but none faces the equator side.
W_ROOM_NO_CLEAR_PATHwarningA room cannot be entered or crossed.
W_ROOM_NO_FIXTUREwarningBathroom or kitchen has no fixtures.
W_ROOM_OUTSIDE_SHELLwarningA room lies partly outside the building's walls.
W_ROOM_OVERLAPwarningRooms overlap.
W_ROOM_TOO_NARROWwarningA room is narrower than its profile asks of its use.
W_ROOM_TOO_SMALLwarningRoom is implausibly small.
W_ROOM_UNREACHABLEwarningRoom cannot be reached from the entrance.
W_ROOM_VIA_PRIVATEwarningEvery route to a room passes through one particular bedroom, bathroom or WC.
W_SANITIZED_CONFIGwarningA disallowed config value was stripped.
W_SCALE_OVERFLOWwarningThe drawing does not fit the declared paper at the declared scale.
W_SEAT_FACING_AWAYwarningA chair at a table faces away from it.
W_SET_VALUE_WORDwarningA bare word in set <kind>(…) was taken as text and does nothing.
W_SHAFT_FOOTPRINT_MISMATCHwarningA shaft's runs on two neighbouring storeys do not stand over each other.
W_STAIR_HEAD_VOIDwarningA void opens on the landing at the head of a flight.
W_STAIR_NO_LANDINGwarningA flight has no landing at its foot or head, or a landing between two flights is too short.
W_STAIR_SIDE_ENTRYwarningA doorway opens onto the side of a flight.
W_STAIR_TOO_STEEPwarningA stair is too short to climb its storey.
W_STAIR_UNMATCHEDwarningA run of vertical circulation appears on only one storey.
W_SWING_OBSTRUCTEDwarningDoor swing is obstructed.
W_SWING_OVER_STAIRwarningA door's swing sweeps a stair or the landing at its end.
W_SWING_ROOM_NOT_ADJACENTwarningswing into <room> names a room the door does not border.
W_TITLE_OVERFLOWwarningA title-block value, or a sheet text caption with its value, is wider than its row.
W_UNKNOWN_FURNITUREwarningA furniture word is not a catalogued kind but is close to one.
W_UNKNOWN_MATERIALwarningUnknown wall material or room floor; the wall takes the default hatch, the room none.
W_UNKNOWN_STYLE_KEYwarningUnknown style key.
W_UNKNOWN_THEMEwarningUnknown theme name; the plan is drawn in the default theme.
W_UNKNOWN_THEME_KEYwarningUnknown theme key.
W_WALL_END_SHORTwarningA wall stops a few millimetres short of the wall it runs toward.
W_WC_SIDE_CLEARANCEwarningA WC's centreline is too close to a wall or fixture at its side.
W_WET_ROOM_DOORwarningA bathroom or WC has no door, opens onto a kitchen, or is a passage.
W_WHILE_DEPRECATEDwarningwhile is deprecated and will be removed in a future major version.
W_WINDOW_OFF_WALLwarningWindow does not lie on any wall.

E_ACC_PLACEMENT ​

error — accTitle/accDescr used outside the plan level.

Cause. An accTitle or accDescr accessibility-metadata statement appeared inside a component or a control-flow block. They describe the whole plan, so they are only legal as direct plan-level statements.

Fix. Move the accTitle/accDescr line up to the plan body, alongside units/north.

arch
component c() { accDescr "x" }   # error: only allowed at plan level

E_ARC_RADIUS ​

error — Arc radius too small for its chord.

Cause. An arc (x,y) radius R edge asks for a circle of radius R through the previous vertex and this one, but R is less than half the straight-line distance between them (or is not positive) — no such circle exists.

Fix. Raise the radius to at least half the chord (the message states the minimum), or move the endpoints closer together. archlang fix applies the minimum for you.

arch
wall exterior thickness 200 { (0,0) arc (10000,0) radius 3000 }   # error: needs R >= 5000

E_ARGCOUNT ​

error — Component called with the wrong number of arguments.

Cause. A component instance supplies more or fewer arguments than the component declares parameters.

Fix. Pass exactly one argument per declared parameter.

arch
component bed(x, y) { … }
bed(300)        # error: expects 2 arguments

E_ARITY ​

error — Built-in function called with the wrong number of arguments.

Cause. A built-in (e.g. abs, sqrt, len) was called with the wrong argument count.

Fix. Check the function's arity; most built-ins take one argument.

arch
let x = abs(1, 2)   # error: abs expects 1 argument

E_ASSIGN_UNDEF ​

error — Assignment to an undeclared name.

Cause. NAME = value was used for a name never introduced with let.

Fix. Declare it first with let, or fix a typo in the name.

arch
x = 5           # error: declare with `let x = …` first

E_ATTACH_POS_RANGE ​

error — Opening attachment position is out of range.

Cause. The at <pos> of an attached opening is outside the host wall: a percentage outside 0–100%, a millimetre distance outside 0 … wall length, or — since the position may be an expression — a value that is not a finite number at all.

Fix. Use a percentage in 0–100%, a millimetre distance within the wall's run, or center. The non-finite case carries no fix: there is no nearest legal value to clamp to, so check the expression that produced it.

arch
door on w1 at 150% width 900   # error: 150% is past the wall end

E_ATTACH_WALL_REF ​

error — Opening attached to an unknown or ambiguous wall.

Cause. A door/window/opening … on <wall> at <pos> names a wall id (or category) that no wall has, or one that matches more than one wall — so the compiler cannot pick the polyline to walk. A wall … between/wall … around the rooms refused (its own error, ADR 0028 §4) has no body, so naming it raises this code too, saying the wall "could not be placed (see its own error)": fix that error first.

Fix. Reference an existing, unique wall id (add id= to the wall if needed).

arch
door on w1 at 40% width 900   # error if no wall id=w1 (or several match)

E_CALL_DEPTH ​

error — Value-function call stack too deep.

Cause. A value-function recurses (directly or mutually) beyond the call-depth limit, or the evaluation of one expression nests deeper than the evaluator's own bound (a deep recursion whose body is itself deeply nested).

Fix. Make the recursion terminate, or rewrite it iteratively with a bounded while.

arch
let f(n) = f(n + 1)   # error: never terminates

E_CLEAR_SCOPE ​

error — A multi-storey plan writes clear on the plan's height line.

Cause. height <mm> clear <mm> states a single-storey plan's clear height. In a plan of level blocks the plan-level height is only every storey's default, and a default clear height is nothing the author said about any one storey, so each storey writes its own in its header.

Fix. Move the clause into each level header, after the storey's height and slab.

arch
height 3000 clear 2400   # error: the plan has levels
  level 1 "Ground" { }

E_COLUMN_SIZE ​

error — Column must have a positive size.

Cause. A column's width or height evaluated to zero or a negative number.

Fix. Give the column a positive size W x H.

arch
column at (0,0) size 0x300   # error: width is 0

E_DATUM_BEFORE_ROOMS ​

error — A room-edge datum is read before any room is placed.

Cause. A datum (hall.top, hall.cx, …) reads the frozen table of placed rooms, which exists only once every room of the group is placed (ADR 0028 §1). A let is evaluated once, when the plan expands, as are loop bounds, conditions, set, place and component arguments, and the plan settings (height, axes, the site boundary); a room's own at/size and relational placement run while the rooms are being placed. None of them can read a datum. A positioning axis (axis.3) is known once the plan has expanded, so a room's at and size can read one; what expands first cannot, because the axes read the plan's lets. Nor can the body of a user function (let f() = hall.top): it has no room of its own, so the edge is passed as an argument (f(hall.top)), which the caller evaluates.

Fix. Write the datum in the statement that uses it (a wall point, an opening or furniture position, a dimension), or give the room numbers or a relational placement (right-of|left-of|above|below) instead of another room's edge.

arch
room id=hall at (0,0) size 4000x3000
let x = hall.right   # error: read when the plan expands

E_DATUM_COMPASS ​

error — A compass word is used as a room-edge datum where it would mean two things.

Cause. north|south|east|west alias top|bottom|right|left only in the root of a plan whose north is up (the default). Inside a placed component a datum names the component's own frame, which a turn or a mirror carries anywhere on the page, and with any other north (a direction or a bearing) the page's top is not north. One word must not carry both meanings, so the compiler refuses (ADR 0028 §2).

Fix. Write the frame word the message names (top, bottom, left or right).

arch
north right
room id=hall at (0,0) size 4000x3000
wall interior thickness 100 { (0, hall.north) (4000, hall.north) }   # error: write hall.top

E_DATUM_NAME ​

error — A dotted name reads both as a room-edge datum and as an element inside an instance.

Cause. The last segment of a dotted name is read as the datum word (west.main.top is the top edge of room west.main). When the whole path is also the id of an element inside a placed instance (an instance west holding an element top), the name could mean either, and the compiler refuses rather than choose (ADR 0028 §2).

Fix. Rename the element inside the component so its id is no datum word (top, bottom, left, right, cx, cy or a compass word).

arch
component wing() { room id=top at (0,0) size 3000x3000 }
place wing() as west at (0,0)
wall interior thickness 100 { (0, west.top) (3000, west.top) }   # error: `west.top` is also an element

E_DATUM_UNPLACED ​

error — A room-edge datum names a room that has no position or no size.

Cause. A datum reads the room's placed rectangle, and so does an opening placed between two rooms. A relationally placed room that could not be placed (its own E_LAYOUT_* error says why) has no position, and a room of zero or negative size has no edge to read.

Fix. Fix the named room's placement or size first; the datum then reads it.

arch
room id=a right-of ghost size 3000x3000
wall interior thickness 100 { (a.left, 0) (a.left, 3000) }   # error: a could not be placed

E_DIAGNOSTIC_LIMIT ​

error — More than 500 diagnostics; further diagnostics were not collected.

Cause. One compile reports at most 500 diagnostics. Past that the lexer and parser stop collecting and every later stage's are dropped, except a budget or cap that stopped the work (E_STEP_LIMIT, E_DRAWING_LIMIT, E_ELEMENT_LIMIT and the other *_LIMIT codes), which are always kept, and this one closes the list, at the byte just past the 500th diagnostic kept. A page of stray characters, thousands of repeated declarations or one bad statement inside a long loop would otherwise cost more to report than the plan costs to compile. It is the error form, raised when any diagnostic, kept or dropped, is an error, so the plan draws nothing; when every one is a warning the limit is W_DIAGNOSTIC_LIMIT instead.

Fix. Fix the first problems reported (they usually share one cause: a pasted binary file, a block that never closes, one bad line inside a loop) and compile again.

arch
for i in 0..600 { let x = 1 / 0 }   # error: 500 E_DIV_ZERO, then E_DIAGNOSTIC_LIMIT

E_DIM_CURVE_REF ​

error — Invalid dim radius/dim diameter reference.

Cause. A curve call-out references an element that does not exist, is not the right shape (a diameter on a rectangular room, a radius on a wall with no arc edge), matches several walls, or omits segment <n> on a wall with more than one arc. The compiler will not guess which curve was meant. A wall … between/wall … around the rooms refused (its own error, ADR 0028 §4) has no body, so naming it raises this code too, saying the wall "could not be placed (see its own error)": fix that error first.

Fix. Name an existing, unique wall id whose edge is an arc (adding segment <n> when it has several), or an existing room circle id for diameter.

arch
dim radius w1   # error if w1 is straight, unknown, or has two arc edges

E_DIV_ZERO ​

error — Division or modulo by zero.

Cause. An expression divides (or takes a remainder) by a value that evaluates to zero.

Fix. Guard the divisor, or use a non-zero value.

arch
let x = 10 / 0   # error

E_DOMAIN ​

error — Math domain error.

Cause. A built-in received an out-of-domain argument (e.g. sqrt of a negative number).

Fix. Pass a value within the function's domain.

arch
let x = sqrt(-1)   # error

E_DOOR_KIND_CLAUSE ​

error — That clause is not available on this kind of door.

Cause. A door statement carries a clause its kind has no meaning for: hinge on any of the sliding family (sliding/glazed_sliding/barn/bifold/pocket — nothing is hinged to a jamb) or on a double door (a leaf hangs on each jamb, so there is no side to choose), swing on a sliding, glazed_sliding or pocket door (the panel stays in the plane of the wall, or inside it), or slide/open on a hinged or double door (nothing travels along the wall). ArchLang refuses rather than draws the statement as if the clause were absent — silently ignoring a written clause is the silent-error design this project rules out (the v1.23 precedent: rectangle-only clauses REFUSE a polygon room rather than approximate it).

Fix. Delete the clause (the machine-applicable fix does exactly that), or change the door's kind to one the clause belongs to. swing on a barn or bifold door is legal and means which FACE of the wall the panel hangs on or folds toward — it is not a leaf arc.

arch
door pocket on w1 at 50% width 900 hinge left   # error: a pocket door has no hinge

E_DOOR_KIND_CURVED ​

error — A sliding-family or garage door cannot sit on a curved wall.

Cause. The panel of a sliding, glazed_sliding, barn, bifold or pocket door is a straight rectangle running along a straight track, and its pocket/track geometry is straight by construction — none of that survives on a wall whose hosting edge is an arc. A hinged leaf does survive (its swing is taken from the tangent at the doorway), and so do a double door's two (both from the tangent at the doorway's centre), so only the sliding family and garage are refused. Refusing is deliberate: drawing a straight panel across a curved reveal would be a wrong drawing with no diagnostic.

Fix. Use a hinged door on the curve (the default — delete the kind word), or move the door onto one of the wall's straight runs.

arch
wall w1 thickness 200 { (0,0) arc (6000,0) radius 4000 }
door pocket on w1 at 50% width 900   # error: curved host

E_DOOR_OPEN_RANGE ​

error — open must be between 0 and 1.

Cause. open <f> is the fraction of its travel a sliding-family panel is DRAWN at — 0 is closed, 1 fully open — so a value outside [0,1] names a position the panel cannot reach. It is a drawing fact only: nothing measured (lint, describe, the intent channel) reads it, so a half-open door can never silence a clearance warning.

Fix. Give open a fraction in [0,1]; archlang fix clamps it to the nearer end for you. Omit it entirely for the default 0.5.

arch
door sliding on w1 at 50% width 1200 open 1.5   # error: outside [0,1]

E_DOOR_WIDTH ​

error — Door must have a positive width.

Cause. A door's width evaluated to zero or a negative number.

Fix. Give the door a positive width.

arch
door at (0,0) width 0   # error

E_DOTTED_DECL ​

error — A dotted name cannot be declared.

Cause. A dotted name like west.main addresses an element INSIDE a placed instance. The namespace belongs to the place, so a dotted name is only ever a reference — it can never be declared with id=, let, as, or for.

Fix. Declare the short name and address it from outside as <instance>.<name>.

arch
room id=main at (0,0) size 3000x3000   # then, in the plan: furniture bed in west.main centered

E_DRAWING_LIMIT ​

error — The drawing is larger than any plan may draw.

Cause. Before anything is drawn, compile() estimates the drawing primitives every element will emit (an upper bound per kind: a room 3, a door 5, a run one or two lines per tread, a fixture its own symbol), plus one per point of its outline and what dims auto, the axes and the margin tables add, summed over every storey because a multi-storey plan holds all its pages at once. Past 300,000 the drawing would take hundreds of megabytes, so the plan is refused, at the element whose estimate crosses the budget. Usually a loop that repeats long runs or large fixtures far more often than meant. describe and lint draw nothing and are not held by it.

Fix. Draw fewer or shorter runs, shrink the loop, or split the building into separate plans.

arch
for i in 0..200 { escalator at (0, i * 2000) size 300000x1200 dir up }   # error: 429,800 units

E_DUP_ID ​

error — Duplicate element id.

Cause. Two elements declare the same id=…; ids must be unique across the plan.

Fix. Rename one of them, or drop the explicit id to auto-generate a unique one.

arch
room id=a at (0,0) size 1x1
room id=a at (1,0) size 1x1   # error: duplicate id "a"

E_DUP_INSTANCE ​

error — Duplicate place … as <name> instance name.

Cause. Two place statements claim the same instance name. The name is the id NAMESPACE for everything inside the instance, so reusing it would silently merge two instances' ids.

Fix. Give each instance its own name (as west / as east).

arch
place wing() as west at (0,0)
place wing() as west at (9000,0)   # error: instance "west" already used

E_ELEMENT_LIMIT ​

error — The plan expands to too many elements.

Cause. One resolution (the plan, or one storey) expanded past the element cap (5,000), usually a for over a huge range or a while whose body creates elements but never changes its condition. Expansion stops at the statement that crossed the cap; the elements before it are kept.

Fix. Shrink the range, or make the loop terminate; split a genuinely huge site into storeys or separate plans.

arch
for i in 0..6000 { column at (i,0) size 1x1 }   # error: more than 5,000 elements

E_FACING_CONFLICT ​

error — A piece states its turn twice.

Cause. facing <id> derives the quarter-turn, so it cannot be written beside rotate, against wall … or against <room>.<edge>, which each state or derive the turn too (ADR 0029 §3). One source of truth for the turn.

Fix. Keep facing and drop rotate (or place the piece with at or in <room> …), or keep the other clause and drop facing.

arch
furniture id=t table at (0,0) size 800x800
furniture chair at (175,850) size 450x450 rotate 180 facing t   # error: two turns

E_FACING_MISS ​

error — No front of the piece points at its facing target.

Cause. facing takes the quarter-turn whose front ray, from the middle of the piece's front edge, first enters the target (ADR 0029 §3). When the piece is diagonal to the target, or its front's middle is not in line with it, no turn's ray enters it, and the compiler will not turn the piece toward a target it does not face.

Fix. Move the piece so the middle of its front lines up with the target across x or y, or name a target in line with it.

arch
furniture id=t table at (0,0) size 800x800
furniture chair at (2000,2000) size 450x450 facing t   # error: the chair is diagonal to the table

E_FACING_SYMMETRIC ​

error — A piece with no front cannot face anything.

Cause. The catalogue marks a category symmetric when its symbol has no front or back (a table, a stool, a rug), so a derived turn would change nothing anyone could see (ADR 0029 §3).

Fix. Drop facing from the symmetric piece; put facing on the pieces that face it instead.

arch
furniture id=c chair at (0,0) size 450x450
furniture table at (0,900) size 800x800 facing c   # error: a table has no front

E_FACING_TARGET ​

error — facing names no rectangle to face.

Cause. facing <id> derives a piece's quarter-turn from a target in its own plan or component (ADR 0029 §3): another piece of furniture, a rectangular room, or a door, window or opening on a straight axis-aligned wall. An unknown id, the piece itself, a wall, a polygon or circle room, an element that could not be placed, or an element of another component is refused.

Fix. Name a furniture piece, a rectangular room or an opening of the same plan or component, or turn the piece with rotate.

arch
furniture chair at (0,0) size 450x450 facing nowhere   # error: no element has that id

E_FACING_TIE ​

error — Two fronts of the piece point at its facing target equally near.

Cause. Two pieces whose footprints do not overlap can have at most one turn whose front ray enters the other, so a tie means the piece overlaps its target (ADR 0029 §3). The compiler will not choose between the turns.

Fix. Move the piece off its target so that one side faces it.

arch
furniture id=t table at (0,0) size 800x800
furniture chair at (175,175) size 450x450 facing t   # error: the chair stands inside the table

E_FACING_TRANSPOSED ​

error — Facing the target would put the piece's back on its short side.

Cause. A catalogued piece with a non-square footprint has a back on a long side (a wardrobe is 1800 along x 600 deep). When the turn that faces the target would put the back on a short side, the size was written the wrong way round, and the symbol would be drawn stretched (ADR 0029 §3).

Fix. Swap the size (the message gives it), so that the footprint's long side runs across the direction the piece faces.

arch
furniture id=b bed at (0,0) size 1500x2000
furniture tv_unit at (2500,800) size 1500x450 facing b   # error: write size 450x1500

E_FENCE_CURVED ​

error — A fence cannot have a curved (arc) edge.

Cause. An arc … radius … clause appeared inside a fence { … } body. The post pitch, the panel offset and the reported length_mm are all measured along a STRAIGHT run, so a faceted curve would silently measure the facets rather than the arc — this release refuses rather than approximating (the same decision roof makes with E_ROOF_CURVED).

Fix. Approximate the curve with short straight runs, which is what a fence built on a curve actually is.

arch
fence picket { (0,0) arc (3000,3000) radius 3000 }   # error: curved edge

E_FURN_AGAINST ​

error — Invalid against wall or against <room>.<edge> fixture placement.

Cause. A wall-anchored fixture references an unknown wall, omits segment on a multi-segment wall, omits side, sits on a non-axis-aligned segment, has an out-of-range offset, or also sets rotate. The compiler will not guess which wall/side/segment was meant. A wall … between/wall … around the rooms refused (its own error, ADR 0028 §4) has no body, so naming it raises this code too, saying the wall "could not be placed (see its own error)": fix that error first. against <room>.<edge> (ADR 0029 §2) raises it when the name is not a room edge, the offset is off the edge, in <room> names another room, or the wall on the edge is not one body on the line across the piece's whole span (a wall beside the line, a part-covered span, two thicknesses, or a run declared open between).

Fix. Name an existing wall id, add segment <n> for multi-segment walls, give side left|right, keep the segment axis-aligned, and drop any explicit rotate. With against <room>.<edge>, keep the offset on the edge and move the piece to a span one wall covers, or place it at (x,y).

arch
furniture wc against wall w1 side left size 400x700   # error if w1 is unknown or multi-segment

E_FURN_AGAINST_DEMOLISHED_WALL ​

error — A piece of furniture backs onto a wall marked status demolish.

Cause. A wall … status demolish (or a walls from rooms … status demolish statement) is a wall the remodel takes out: it is drawn, but it encloses nothing, hosts nothing and counts in no area. A piece placed against wall <id> naming it, or against <room>.<edge> where it is the only wall on the edge, would back onto a wall that is no longer there, so the plan contradicts itself. against wall <category> names only the walls of that category that stay, and raises this code when every one of them is coming out.

Fix. Back the piece onto a wall that stays (against wall <id> naming it), place it at (x,y) or in <room> anchor <edge>, or keep the wall: status existing (or no status at all).

arch
wall id=p partition thickness 100 status demolish { (4000,0) (4000,5000) }
  furniture wardrobe against wall p side left size 1200x600   # error: the wall is being demolished

E_FURN_CLEAR ​

error — Invalid clear depth.

Cause. clear front <mm> and clear sides <mm> declare a depth the piece needs kept free (ADR 0029 §4). The depth must be a positive number of millimetres within the modelling range, and each zone is written at most once on a piece.

Fix. Write one positive depth per zone, e.g. clear front 600, or drop the clause.

arch
furniture wardrobe at (0,0) size 1800x600 clear front 0   # error: a clear depth must be positive

E_FURN_FLUSH ​

error — flush on a placement that touches no edge.

Cause. flush measures inset from the inner face of the wall behind an anchored edge. A centered piece (or the equivalent anchor center) is pushed against no edge, so there is no wall face to measure from.

Fix. Anchor the piece to the edge you want it flush with (anchor bottom flush, anchor top-left flush), or drop flush and keep it centred.

arch
furniture wc in bath centered flush size 400x700   # error: centred, so nothing to be flush with

E_FURN_ROOM ​

error — Furniture placed in an unknown room.

Cause. A furniture item names a room with in <roomId>, but no room has that id.

Fix. Use the id of an existing room id=…, or drop the in clause.

arch
furniture bed at (0,0) size 1500x2000 in bedrm   # error: no room id=bedrm

E_FURN_ROTATE ​

error — Furniture rotation must be a quarter-turn.

Cause. A furniture item's rotate is not one of 0, 90, 180, or 270 degrees.

Fix. Use a quarter-turn: rotate 0|90|180|270.

arch
furniture wc at (0,0) size 400x700 rotate 45   # error: not a quarter-turn

E_FURN_SIZE ​

error — Furniture must have a positive size.

Cause. A furniture item's width or height evaluated to zero or a negative number.

Fix. Give the item a positive size W x H.

arch
furniture bed at (0,0) size 0x2000   # error

E_HEIGHT_RANGE ​

error — A height is outside the range a storey can be built at.

Cause. A height, slab, clear, sill or head clause evaluated to a number no building has: zero or negative, not finite, or above 100 m. A wall or a head at zero is not a low one, it is a missing one. A window sill of exactly 0 is the one exception and is legal — it means a floor-length window. The range guards the ENDS, not the units: heights are millimetres like every other number in the language, so height 3 is three millimetres, is inside the range, and is accepted — the compiler will not guess that three metres was meant, because that would put a number in the datum the author never wrote.

Fix. Write the height in millimetres, or drop the clause (the fix does exactly that): a height, sill or head then inherits its default — 3000 for a storey, 2100 for a door or window head, 900 for a window sill — and a storey without its slab or clear simply states none.

arch
wall id=w1 exterior thickness 200 height 0 { (0,0) (4000,0) close }   # error: a wall with no height

E_IMPERIAL_FORM ​

error — An imperial length is written in a form the language does not read.

Cause. Imperial lengths are read in three forms only: 12ft, 6in and 12ft6in (feet before inches, each part a plain decimal such as 0.5in), converted exactly (1 in = 25.4 mm) and rounded half away from zero to a whole millimetre. The feet-and-inch marks are refused because " opens a string and ' is no token (12'6", 12', 6"); a glued fraction because / is division (1/2in); and inches before feet or a bare trailing number (6in12ft, 12ft6). The literal is replaced by 0 so the rest of the plan still reads and reports. Output stays in millimetres.

Fix. Write 12ft6in for 12'6", 0.5in for 1/2", and put feet before inches.

arch
room id=r at (0,0) size 12'6"x10ft   # error: write 12ft6inx10ft

E_IMPORT_BAD_SPEC ​

error — Malformed import spec.

Cause. The string after import is not a recognizable module reference.

Fix. Use a relative path ("lib/x.arch") or a namespaced spec ("@scope/name:1.0.0").

arch
import "???" : a   # error

E_IMPORT_CONFLICT ​

error — Imported name conflicts with an existing component.

Cause. An imported component has the same name as one already defined or imported.

Fix. Rename with as, or remove the duplicate.

arch
import "lib.arch": bed as lib_bed

E_IMPORT_CYCLE ​

error — Cyclic import.

Cause. Modules import each other in a cycle, which cannot be resolved.

Fix. Break the cycle so module dependencies form a tree.

arch
# a.arch imports b.arch which imports a.arch  → error

E_IMPORT_FORMAT ​

error — A file given to archlang import is not a valid plan in the format it was read as.

Cause. archlang import --from openplan3d (openPlan3dToArch()) checks the JSON the way OpenPlan3D's own validators do (readProject for a web project in centimetres, validateRoomPlan for a prepared RoomPlan interchange file in metres) before converting anything, and reports each problem with OpenPlan3D's path and reason: a missing id, floors or walls array, a door on a wall of another floor, a position outside 0–1, a zero thickness or width, an unknown type, a repeated id, a transform that is not 16 finite numbers. A file OpenPlan3D would refuse is refused here too, and nothing is written. It is not raised by compile(): the input is JSON, not .arch source.

Fix. Fix the field the message names (its path is the JSON path in the file), or re-export the plan from OpenPlan3D. A file read as the wrong format can be forced with --format web or --format handoff.

arch
archlang import --from openplan3d plan.json   # error: Invalid project: floors[0].doors[1].wallId must refer to a wall on the same floor.

E_IMPORT_LIMIT ​

error — A file given to archlang import needs more work to convert than any plan does.

Cause. Converting an OpenPlan3D plan finds its rooms the way OpenPlan3D does, by comparing every wall with every other wall on a floor, so the work grows with the square of a floor's walls. It is counted, as the evaluator's work is (E_STEP_LIMIT), and past the same budget of 5,000,000 steps the import stops with nothing written. A floor of a few thousand walls reaches it; a house has tens. A file of more than 200 storeys is refused the same way before any storey is built: each storey is a whole drawing.

Fix. Split the plan into several files, a floor or a wing each, and import them one by one.

arch
archlang import --from openplan3d huge.json   # error: one floor with 100,000 walls

E_IMPORT_NOT_ARCH ​

error — An imported module is not a .arch file.

Cause. The archlang CLI reads an import only from a file whose name ends in .arch (in any case). Any other file is refused before it is opened, so an import cannot pull a text, config or system file into a drawing, nor learn what it holds from the parse error it would raise. A symbolic link whose target is not .arch is refused the same way. Hosts with no file system (the playground, the hosted MCP server) never read files at all.

Fix. Import the .arch module itself; rename the file to end in .arch if it is one.

arch
import "notes.txt" as n   # error: not an .arch file

E_IMPORT_NOT_EXPORTED ​

error — Imported name is not exported by the module.

Cause. The module has no component with the requested name.

Fix. Import a name the module actually defines (check its components).

arch
import "lib.arch": nope   # error if lib.arch has no `component nope`

E_IMPORT_NOT_FOUND ​

error — Import path could not be resolved.

Cause. The World could not read the module at the given path.

Fix. Check the path (relative to the importing file) and that the file exists.

arch
import "lib/missing.arch": a   # error

E_IMPORT_OUTSIDE_ROOT ​

error — An imported module lies outside the import root.

Cause. The archlang CLI reads an import only from inside its import root (the directory it was started in, or the directory --import-root <dir> names) or from under the compiled plan's own directory. The path is resolved with symbolic links and junctions followed, so a .., an absolute path, a drive letter or a link cannot leave the root. A library beside or below the plan, or in a sibling directory under the root, still imports; one above both does not.

Fix. Run archlang from a directory that contains both the plan and the library, or pass --import-root <dir> naming a directory that contains them.

arch
import "lib.arch" as lib   # error when lib.arch resolves outside the import root (e.g. through a link)

E_IMPORT_PARSE ​

error — Imported module has a parse error.

Cause. The module referenced by import does not itself parse. The message gives the module's own error code and its <path>:<line>:<col>, never the module's text, so an import cannot read a file it reached by quoting it back.

Fix. Fix the syntax error in the imported module at the line and column given; archlang lint <module>.arch shows it in full.

arch
# error originates in the imported file

E_IMPORT_TOO_LARGE ​

error — An imported module is larger than the CLI reads.

Cause. The archlang CLI reads an imported .arch module of at most 1048576 bytes (MODULE_CAP_BYTES) and refuses a larger file without reading it. No plan library comes near it; the cap stops an import from pulling a huge file into memory.

Fix. Split the module into several smaller .arch files and import each.

arch
import "huge.arch" as h   # error: the module is larger than the cap

E_INDEX ​

error — Array index out of range.

Cause. arr[i] used an index outside 0 .. len(arr) - 1.

Fix. Clamp or check the index against len(arr).

arch
let a = [1, 2]
let x = a[5]   # error

E_INPUT_TOO_LARGE ​

error — The source is larger than this host accepts.

Cause. A host with a per-request CPU ceiling (the hosted MCP server) refuses a source above its byte cap before compiling it. compile() itself has no size cap: its budgets are counts, and every input it is given returns a diagnostic.

Fix. Compile it locally, where there is no cap: npx -y @chanmeng666/archlang compile plan.arch, or the stdio MCP server npx -y @chanmeng666/archlang-mcp. Or send a smaller plan.

arch
tools/call compile { source: <more bytes than the host's cap> }   # error on the hosted MCP server, before any compile work

E_INSTANCE_NO_TRANSFORM ​

error — A plugin element inside a placed component has no transform().

Cause. A place carries every element of its component from the component's own frame into plan coordinates, and each element kind supplies that action as ElementDef.transform. A third-party element kind registered through compile(src, { plugins }) without one cannot be turned, mirrored or moved, so the instance's copy is dropped from the drawing (never drawn at its local coordinates) and this is reported once per instance and kind, at the place statement. A plugin that REPLACES a built-in kind without its own transform() inherits the built-in's; when that inherited action cannot read the plugin's resolved shape (its resolve returns a different shape from the built-in's), the element is refused the same way.

Fix. Give the plugin's ElementDef a transform(el, t) that maps its geometry with the TransformCtx it is handed (t.point, t.rect, t.side, t.id, …) — or write the element at plan level instead of inside the component.

arch
component c() { gazebo at (0,0) }   # `gazebo` is a plugin kind with no transform()
place c() as g at (5000,0)   # error: cannot be placed

E_INTENT_GROSS_AREA ​

error — The plan's gross internal area is outside the brief's band.

Cause. An intent grossInternalAreaM2 band (from a number in the brief, ±10% for "about N") does not contain the plan's gross internal area: the floor inside the exterior walls' inner faces (describe().totals.gross_internal_area_m2), the figure a client means. The centreline floor_area_m2 runs half a wall past it.

Fix. Grow or shrink the shell so the enclosed floor lands in the band; partitions inside the shell do not change the figure. Gating tier: this failure fails validateIntent's ok. Assert a band only where the brief states a number.

arch
# brief says "about 70 m²" (band 63–77); the shell encloses 9600 × 6400 = 61.44 m² inside its inner faces

E_INTENT_NOT_ADJACENT ​

error — Two rooms the brief wants adjacent share no interior door.

Cause. An intent adjacency edge names two concepts (e.g. hall ↔ bathroom) that are not joined by an interior door or cased opening in the plan's modeled connectivity.

Fix. Add a door (or opening) on the wall the two rooms share so they are directly connected. Advisory tier: this is scored and reported by validateIntent but does NOT fail ok (gate: false) — one-shot topology is what the loop tools address.

arch
door on wall_hall_bath width 800   # connect the hall to the bathroom

E_INTENT_NO_DOOR ​

error — The plan has no modeled entrance, so reachable cannot hold.

Cause. An intent asserts reachable: true, but the plan has no door connecting a room to the exterior — nothing is enterable, so no room is reachable.

Fix. Add an exterior entrance door on a perimeter wall. Advisory tier: reported and scored by validateIntent but does NOT fail ok (gate: false).

arch
door on exterior at 50% width 900   # a front door

E_INTENT_NO_SITE ​

error — An intent asserts a SYMBOLIC window facing against a plan with no site.

Cause. An intent roomsInclude[].windows.facing names one of the derived directions (street, back, equator_side, sunrise_side, sunset_side) but the plan declares no site block, so there is nothing to resolve the name against. The question is unanswerable, not answered no.

Fix. Declare site { street … } in the plan (that is what gives the derived names their letters), or assert a plain compass letter instead. Gating tier: this failure fails validateIntent's ok — it is a refusal, never a silent pass and never a silent miss.

arch
plan "H" {
  units mm
  site { street south }   # now `facing: "equator_side"` resolves to "S"
}

E_INTENT_NO_WINDOW ​

error — A room the brief wants a window in has too few.

Cause. An intent roomsInclude[].windows requires at least one window in a concept's room(s) (e.g. "give the bedroom a window"), but the plan places fewer than the required count.

Fix. Add a window on one of that room's walls. Gating tier: this failure DOES fail validateIntent's ok.

arch
window on north at 40% width 1200   # light the bedroom

E_INTENT_ROOM_AREA ​

error — A named room's floor area is outside the brief's band.

Cause. An intent roomsInclude[].areaM2 gives a per-room area band (from a number in the brief, ±10% for "about N"), but the matched room's area falls outside it.

Fix. Resize the room so its floor area lands in the band. Gating tier: this failure fails validateIntent's ok. Assert a band only where the brief states a number — qualitative size words license none.

arch
room at (0,0) size 4000x3000 label "Bedroom"   # 12 m²

E_INTENT_ROOM_COUNT ​

error — The plan's room count does not match the brief.

Cause. An intent rooms count (asserted only when the brief ENUMERATES its rooms) does not match the plan's room total. A single surplus room passes only when it is pure circulation (a hall/corridor) — policy B.

Fix. Add or remove rooms to reach the enumerated count. Gating tier: this failure fails validateIntent's ok.

arch
# brief lists 4 rooms; the plan draws 5 (and the extra is a bedroom, not a hall)

E_INTENT_ROOM_DIMENSION ​

error — A room's width, depth or exact size is not what the brief states.

Cause. An intent roomDimensions[] entry binds one room (by id or label) to a size the brief states: a widthMm/depthMm band on its extent along x/y, or an exact sizeMm (w × h in either orientation, within tolerance). Measured on wall centrelines from the room's own rectangle; the residual is reported in mm.

Fix. Resize that room's size to the stated dimension; every number the brief does not state is free to flex. Gating tier: this failure fails validateIntent's ok.

arch
room id=bed1 at (0,0) size 2900x3600 label "Bedroom 1"   # brief: "bedroom at least 3 m wide" → width 2900, residual −100 mm

E_INTENT_ROOM_MISSING ​

error — A room the brief names is absent from the plan.

Cause. An intent roomsInclude[] concept (e.g. "bathroom") matched no room by label, room_type, or uses — the plan is missing a room the brief asked for.

Fix. Add a room whose label, uses, or type matches the concept. Gating tier: this failure fails validateIntent's ok.

arch
room at (0,0) size 2000x2000 label "Bathroom" uses bath   # supply the missing room

E_INTENT_TOTAL_AREA ​

error — The plan's total floor area is outside the brief's band.

Cause. An intent totalAreaM2 band (from a number in the brief, ±10% for "about N") does not contain the plan's total floor area.

Fix. Grow or shrink rooms so the total lands in the band. Gating tier: this failure fails validateIntent's ok. Assert a band only where the brief states a number.

arch
# brief says "about 42 m²" (band 37.8–46.2); the plan totals 52 m²

E_INTENT_UNMEASURED ​

error — A brief-bound measure has no value on this plan.

Cause. An intent grossInternalAreaM2 or roomDimensions[] assertion cannot be measured: the room selector names no room or more than one, the room is a polygon or a circle (no single width), the plan did not resolve, or the plan has no gross internal area (no closed exterior wall ring, an exterior wall dividing the shell, a ring nested in a courtyard, or a counted cap; describe().totals.gross_internal_area_omitted names which). The question is unanswerable, not answered no.

Fix. Bind the room by its id or a unique label, give it a rectangular size, or close the shell with one exterior wall ring (walls from rooms derives one). Gating tier: this failure fails validateIntent's ok — a refusal, never a silent pass.

arch
wall id=n exterior thickness 200 { (0,0) (9000,0) (9000,7000) }   # an open run encloses nothing: gross internal area unmeasured

E_INTENT_UNREACHABLE ​

error — A room cannot be reached from the entrance through modeled doors.

Cause. An intent asserts reachable: true and the plan HAS an entrance, but one or more rooms are cut off — no chain of modeled doors reaches them from the exterior — or, on a multi-storey plan, a whole storey has no way in: no exterior door of its own and no stair, lift or escalator from a room you can reach.

Fix. Add interior doors so every room connects back to the entrance. Advisory tier: reported and scored by validateIntent but does NOT fail ok (gate: false).

arch
door on wall_hall_store width 800   # connect the isolated room

E_JSON_DERIVED_IN_INSTANCE ​

error — Plan JSON cannot carry a placed component that derives its walls in this plan.

Cause. Plan JSON carries walls from rooms as the statement, never the walls it derives (ADR 0028 §3). A placed component's statement goes in the payload's components record, one resolved body per component with one level of instances. Three plans do not fit that record, and planToJson (compile -f json) refuses them, naming the instance, rather than drop the walls: (a) the plan nests a place; (b) two instances of one component resolve to different bodies (different arguments); (c) the component comes in through an import.

Fix. Keep the plan in .arch source; or flatten the nesting, give each differing instance its own component, or copy the imported component into the file; or write that component's walls by hand.

arch
component inner() { room id=a at (0,0) size 4000x3000
  walls from rooms exterior 200 partition 100 }
component outer() { place inner() as i at (0,0) }
place outer() as o at (0,0)   # compile -f json: error, instance "o.i" (nested)

E_JSON_KIND ​

error — Unknown element kind in plan JSON.

Cause. An element in the JSON names a kind (or lives in an array) the builder does not recognize — e.g. an opening whose kind is not door, window, or opening.

Fix. Use one of the supported kinds: opening kind must be door | window | opening.

arch
{ "openings": [ { "kind": "portal", "width": 900 } ] }   # error at /openings/0/kind: unknown kind "portal"

E_JSON_MIRROR ​

error — Plan JSON door, dimension or flattened instance's piece is mirror: true, which .arch source cannot state.

Cause. planToJson reports mirror: true on EVERY door and dimension inside a reflecting place (mirror x|y, or a nested composition that reflects): the flag records the FRAME's reflection. A piece of furniture has a mirror clause, so its flag is printed back as that clause, unless its dotted id says the document flattened an instance: source cannot declare that id, and only the place states the reflection. A door or a dimension has no clause, so a place frame is the only thing that can reflect one, and converting that payload back to source would lose the reflection (a sliding door would take the other track, a zero-offset dimension's number would read on the other side). It is refused instead.

Fix. Keep the instance in .arch source (the place … mirror x|y that produced it), or drop mirror from the element if the unreflected drawing is what you want.

arch
{ "openings": [ { "kind": "door", "x": 0, "y": 0, "width": 900, "mirror": true } ] }   # error at /openings/0/mirror

E_JSON_SCHEMA ​

error — Plan JSON does not match the schema.

Cause. A value passed to planFromJson has the wrong shape or type for its JSON path (e.g. a room missing a numeric width, a non-array rooms), or it uses a construct the JSON form cannot represent — scripting (let/for/if/component) and import are intentionally not supported.

Fix. Fix the value at the reported JSON path (the message names it, e.g. /rooms/0/width); express geometry as concrete numbers, and author scripting/imports in .arch source instead.

arch
{ "rooms": [ { "x": 0, "y": 0, "width": "big", "height": 3000 } ] }   # error at /rooms/0/width: expected a number

E_KEEP_LIMIT ​

error — Too many keeps, or too many targets in one keep.

Cause. A plan declares more than 1,000 keep statements (counted as they expand, every storey and loop iteration included), or one keep names more than 64 targets or levels. The cap bounds the size of what a keep reports; the work is bounded by the evaluation-step budget. It is raised once, at the first keep past the cap, and that keep and every later one past it are not checked (their expansion is still counted, so the cap cannot skip work).

Fix. Keep fewer: a keep states an invariant an edit must not break, not every coordinate of the plan. Split a long keep align into two.

arch
plan "K" {
  units mm
  room id=a at (0,0) size 3000x3000
  for i in 0..1001 { keep fixed a.left at 0 }   # error: more than 1000 keeps
}

E_KEEP_MEASURE ​

error — The keep's measure is not defined for what it names.

Cause. A keep names something its measure cannot read: an edge, centre, width, depth, clear span or footprint of a polygon or circle room; datums of two orientations in one align, offset or on axis (a vertical line and a horizontal one); a column anywhere but on axis, which reads it at its centre; a wall that is not one straight segment (an arc, an oblique run, or a wall of several segments without segment <n>); the depth of an opening; an offset measured from something that is not a datum; a bare room where a line is needed. The keep is refused rather than approximated (ADR 0033).

Fix. Name what the measure reads: a rectangular room's left/right/top/bottom/cx/cy, axis <label>, a straight wall or <wall> segment <n>; compare widths of openings with keep equal width.

arch
plan "K" {
  units mm
  room id=a polygon (0,0) (3000,0) (0,3000)
  keep fixed a.left at 0   # error: a polygon room has no left edge
}

E_KEEP_PLACEMENT ​

error — A keep where it cannot be checked.

Cause. A keep sits inside a component (a placed instance, a bare call or an imported file), where it would be checked once per instance in the instance's own frame; or a keep stacked sits inside a level block or in a plan with fewer than two storeys (it compares storeys, so it belongs at the plan's root); or another form sits at the root of a multi-storey plan, where it measures no storey (refused once, with no level).

Fix. Move the keep into the plan (or the level block) whose geometry it reads; put a keep stacked at the root of a multi-storey plan.

arch
plan "K" {
  units mm
  component bay() { room id=r at (0,0) size 3000x3000
    keep min clear r 2800 }
  place bay() as w at (0,0)   # error: a keep inside a component
}

E_KEEP_SELF ​

error — A keep compares something with itself.

Cause. One target is named twice in one keep (align a.left a.left, offset a.left from a.left 0, equal width a a, or the same level twice in a stacked keep; a compass word counts as the frame word it aliases). Such a keep can never be broken, so it checks nothing.

Fix. Name each target once; compare the target with the other thing it must stay with.

arch
plan "K" {
  units mm
  room id=a at (0,0) size 3000x3000
  keep align a.left a.left   # error: the same edge twice
}

E_KEEP_TARGET ​

error — A keep names something that is not there.

Cause. A keep target is not an authored id on its storey (or, for stacked, on every listed level): an unknown name, an auto id (room_3, which renumbers when an earlier element is named), an element that could not be placed, an undeclared axis <label>, a wall segment <n> past the wall's last segment, or a level the plan does not have. A keep is the statement that must survive edits, so it names only what the author named.

Fix. Give the element its own id= and name that, declare the axis in axes, or list only the levels the plan has.

arch
plan "K" {
  units mm
  room id=a at (0,0) size 3000x3000
  keep fixed b.left at 0   # error: no element b
}

E_KEEP_VALUE ​

error — A keep's value is out of its domain.

Cause. A keep's length (offset … <mm>, min clear … <mm>, fixed … at <mm>) is outside the modelling range of ±33,554,432 mm, a min clear length is zero or negative, or a level in keep stacked … on levels is not a whole number.

Fix. Give the keep a length within the range (a positive one for min clear) and whole storey numbers.

arch
plan "K" {
  units mm
  room id=a at (0,0) size 3000x3000
  keep min clear a 0   # error: a clear span must be positive
}

E_LAYOUT_CYCLE ​

error — Relational room placement forms a cycle.

Cause. Rooms placed with right-of/below/… reference each other in a loop, so no order resolves them.

Fix. Break the cycle by giving one of the rooms absolute at (x,y) coordinates.

arch
room id=a right-of b size 100x100
room id=b left-of a size 100x100   # error: a ↔ b cycle

E_LAYOUT_REF ​

error — Relational placement references an unknown room.

Cause. A right-of/below/… clause names a room id that does not exist in the plan.

Fix. Reference an existing room id, or fix the typo.

arch
room id=k right-of ghost size 100x100   # error: no room "ghost"

E_LAYOUT_UNPLACED ​

error — A relational room depends on a room that could not be placed.

Cause. The room's reference chain ends at a room that failed (unknown or polygon reference) or runs into a placement cycle, so there is no resolved position to place it against. Only the root cause carries the original error.

Fix. Fix the room it names (give it a valid reference or absolute at (x,y)), or place this room with at (x,y).

arch
room id=e right-of ghost size 100x100
room id=f below e size 100x100   # error: e could not be placed

E_LEVEL_DUP ​

error — Two level blocks declare the same storey number.

Cause. Level numbers identify the storeys of one building, so each may be declared once; two level 1 blocks would produce two pages both claiming to be level 1.

Fix. Renumber one of them, or merge the two bodies into a single level block.

arch
level 1 { room at (0,0) size 3000x3000 }
level 1 { room at (0,0) size 3000x3000 }   # error: level 1 twice

E_LEVEL_MIX ​

error — A drawable statement sits beside level blocks.

Cause. A plan is either single-storey (no level block) or entirely made of them: anything that draws belongs to exactly one storey, so a room/wall/door/for/strip/component call at plan level next to a level block has no storey to belong to.

Fix. Move the statement inside the level block it belongs to. Only settings (units/grid/paper/scale/north/site/dims/title/axes/schedule/legend), component/import declarations, and the plan-global let/set stay outside — they apply to every level.

arch
plan "H" {
  room at (0,0) size 3000x3000   # error: move it into a level
  level 1 { wall exterior thickness 200 { (0,0) (3000,0) close } }
}

E_LEVEL_NEST ​

error — level used inside a block or component.

Cause. A level block is a plan-level statement: it partitions the whole plan into storeys, so it cannot be nested inside another level, a for/if/while body, a strip, or a component definition.

Fix. Move the level block out to the plan body. To draw the same content on several storeys, put it in a component and call it from each level.

arch
component c() { level 1 { } }   # error: only allowed at plan level

E_LOCKED_ELEMENT_CHANGED ​

error — An element archlang impact --lock names changed between the two versions.

Cause. --lock <id,…> names elements that must stay as they were. An element is changed when, on the lowest storey, it moved (an opening also when it slid along an unchanged wall), resized, was re-hosted (another wall, relation or joined spaces), was re-thickened, changed its door swing or any other resolved field, vanished or appeared. A relabel is not a change. Each violation carries the element's span on both sides. Raised by impact(), never by compile().

Fix. Put the locked element back as it was in the older file, or drop it from --lock if the change is intended.

arch
window id=w1 on s at 1200 width 1200   # was `at 1100`: archlang impact new.arch --against old.arch --lock w1: error, moved 100 mm

E_LOCK_UNNAMED ​

error — archlang impact --lock names an element whose id was not written, or no element at all.

Cause. A lock names an element by the id= its author wrote. An assigned id (room_3, window_2, or the internal name of a wall walls from rooms derived) shifts when a statement is inserted ahead of it, so a lock on it could follow another element; it is refused. So is a name no element of either version carries, or one that stands only above the lowest storey, which impact does not compare yet. Raised by impact(), never by compile().

Fix. Write id=<name> on the element in both versions and lock that name.

arch
window on s at 1200 width 1200   # assigned window_1: archlang impact new.arch --against old.arch --lock window_1: error, write id= first

E_NON_FINITE ​

error — A number is too large to be finite.

Cause. A numeric literal, the result of an arithmetic operation (+ - * / %), or a quantity the resolver derives from finite dimensions (an element's extent, a room's area, the plan's total area) is beyond what a floating-point number can hold, so it would be infinite. The check is per operation: an overflowing intermediate is refused even if a later min() would have clamped it. A literal or arithmetic result is replaced by 0 so the rest of the plan still resolves and reports; an element whose derived quantity overflows is diagnosed at its element and dropped from the plan, so nothing downstream measures it.

Fix. Use a realistic dimension. A plan is measured in millimetres, and a value above about 1e300 is never a building.

arch
let k = 1000000000000000000000000000000000000000000000000000000000000
let x = k * k * k * k * k * k   # error: 1e360 overflows

E_OPENING_ABOVE_WALL ​

error — An opening's head is above the wall it is cut in.

Cause. A door/window/opening whose head exceeds its host wall's own height would run out through the top of the wall. The wall's height is the authored wall … height, else this storey's, else the 3000 mm default — so this fires on a low parapet or a short storey as readily as on a mistyped head.

Fix. Lower the head to the wall's height (the fix does exactly that), or raise the wall with wall … height.

arch
wall id=w1 exterior thickness 200 height 2200 { (0,0) (4000,0) close }
  door id=d on w1 at 50% width 900 head 2400   # error: head above a 2200 wall

E_OPENING_DATUM ​

error — An opening's position names no datum that applies to its run.

Cause. A relational opening (door|opening … between A and B, door|window|opening … on <room>.<edge>) is placed along the shared edge run or the edge by center, <mm> from start|end, <mm> from <room>.<edge> or axis <label> (ADR 0028 §5). A door or a cased opening must write one (a door is held to an end or an edge, never centred by default); a plain at <mm> or at <pct>% names no datum there. from <room>.<edge> needs an edge perpendicular to the run through one of its ends (not a parallel edge, a centre line cx|cy, or an edge meeting the run elsewhere), and axis <label> an axis that crosses the run. On a pair that shares several edges only from <room>.<edge> picks one, so the code here means an edge that meets none of them at an end, and any other position is E_OPENING_HOST_AMBIGUOUS. On the existing on <wall> at … form the same datums are read where the datum line crosses the wall's straight run at exactly one point. Arithmetic on a positioning axis in any of these positions (at axis.2 + 500, under from or % too) is refused here as well: an axis is a plan coordinate and a position along a wall a distance along it, so the result would land on the axis only on a wall that starts at 0. The compiler refuses rather than pick a position (ADR 0005). The span points at the position or the datum.

Fix. Write a position the run can read: at 600 from start, at 600 from end, at center, or an edge through one end of the run (from a.top on a vertical run). On a pair that shares several edges only the edge will do: write the position the hint quotes. For arithmetic on an axis, write at axis <label> to stand on it, or the distance along the wall the hint quotes.

arch
room id=a at (0,0) size 4000x3000
room id=b at (4000,0) size 3000x3000
walls from rooms exterior 200 partition 100
door between a and b width 800   # error: a door needs a position

E_OPENING_HOST_AMBIGUOUS ​

error — A relational opening's run carries more than one wall and its position does not land it on one, its position does not pick one of the edges two rooms share, or an open between clause names a pair that shares more than one edge.

Cause. door|opening … between A and B stands in the one wall body on the pair's shared edge run (ADR 0028 §5). Two authored halves, or an authored span beside a derived remainder (the ~2 pieces coexistence leaves), give more than one, and the compiler does not choose between them (ADR 0005). … on <room>.<edge> stands in one exterior wall body on that edge. An edge can carry several, part exterior and part partition, or exterior either side of a narrower neighbouring room: the position, measured along the whole room edge, says where the opening lands, and it stands in an exterior body when its whole span lies on that body and on no other wall. With an exterior body on the edge, a span that crosses from one body to the next, stands on a partition, stands on no body, or lies on two walls at once is refused here; with none it is E_OPENING_NO_SHARED_WALL. A status demolish wall still takes up the span it lies on, but it is no exterior body. A polygon room wrapped round its neighbour shares several edges with it, and only at <mm> from <room>.<edge>, with an edge that meets one of them at an end, picks one: at center, from start|end, at axis <label> or no position would be a choice the author did not write. open between A and B derives one opening on one edge, so such a pair has no single answer there either (ADR 0028 §3). The span points at the clause.

Fix. On a room's edge with several walls: write the position the hint quotes for the exterior wall you mean, where it quotes one. On a run with more than one wall: make it one wall (drop the authored wall lying on the derived line, or join the halves), or place the opening on <wall> at … on the wall you mean. On a pair that shares several edges: write the position the hint quotes, at <mm> from <room>.<edge>, or at (x,y) where no room edge picks the one you mean. On an open between clause: write the two rooms as one room if no boundary should stand between them, or remove the clause and write the statement the hint quotes, opening id=o between A and B at <mm> from B.<edge> width <mm>, or opening at (x,y) width <mm> where no room edge picks it (a derived wall has no id to name).

arch
room id=a at (0,0) size 4000x3000
room id=b at (4000,0) size 3000x3000
wall id=half partition thickness 100 { (4000,0) (4000,1500) }
walls from rooms exterior 200 partition 100
door between a and b at 600 from end width 800   # error: the authored half beside the derived remainder

E_OPENING_NIB ​

error — A relational opening leaves too short a nib of wall at a junction; it is refused, never moved.

Cause. A relational opening's jamb must stand at least max(100 mm, host thickness / 2) from the face of every wall meeting its host, no meeting wall may stand inside its span, and it must lie on its run and on its host wall (ADR 0028 §5). These are the default values and the measure W_OPENING_AT_JUNCTION warns with for a hand-placed opening, including its exemption for a cased opening flush (0 mm) with a meeting wall's face; compile() reads no lint profile. An open between boundary voided over its whole clear span is no meeting wall, unless the host stops at it with nothing carrying on: a jamb there has no wall beside it, and the message names the boundary and, where no wall stands either, the host's free end, because nothing is drawn along it. The author asked for a derived position, so the compiler refuses rather than slide it (ADR 0004, ADR 0005), and names the nearest legal position in the hint. An opening placed on <wall> at … is not refused: it warns, as it always did. The span points at the clause.

Fix. Use the position the hint names, narrow the opening, or move the wall that meets the run.

arch
room id=a at (0,0) size 4000x3000
room id=b at (4000,0) size 3000x3000
walls from rooms exterior 200 partition 100
door between a and b at 500 from start width 800   # error: the jamb is on the ring's face, with no nib

E_OPENING_NO_SHARED_WALL ​

error — A relational opening's run carries no wall (or, on a room edge, no exterior wall).

Cause. door|opening … between A and B stands in the wall on the pair's shared edge run, derived or authored, and … on <room>.<edge> in the exterior wall on that edge (ADR 0028 §5). With no wall on the run, or with no exterior wall standing on an edge (one partition or several, an open between boundary, a status demolish wall), there is nothing to stand in; the compiler does not invent one. The span points at the clause.

Fix. Add the wall (walls from rooms derives every shared edge; or write it by hand on that line), or place the opening between the two rooms that share the edge.

arch
room id=a at (0,0) size 4000x3000
room id=b at (4000,0) size 3000x3000
wall id=shell exterior thickness 200 { (0,0) (7000,0) (7000,3000) (0,3000) close }
door between a and b at 600 from start width 800   # error: no wall on x 4000

E_OPENING_ON_DEMOLISHED_WALL ​

error — A door, window or opening stands in a wall marked status demolish.

Cause. A wall … status demolish (or a walls from rooms … status demolish statement) is a wall the remodel takes out: it is drawn, but it encloses nothing, hosts nothing and counts in no area. A door/window/opening hosted on it would stand in a wall that is no longer there, so the plan contradicts itself.

Fix. Remove the opening (it goes with the wall), host it on a wall that stays, or keep the wall: status existing (or no status at all).

arch
wall id=p partition thickness 100 status demolish { (4000,0) (4000,5000) }
  door id=d on p at 50% width 800   # error: the wall is being demolished

E_OPENING_WIDTH ​

error — Opening must have a positive width.

Cause. A cased opening's width evaluated to zero or a negative number.

Fix. Give the opening a positive width.

arch
opening at (0,0) width 0   # error

E_OUTDOOR_POLY_DEGENERATE ​

error — An outdoor ring is degenerate, or a balcony was given one.

Cause. Either an outdoor … polygon … ring has fewer than 3 effective vertices once duplicate and collinear points are removed (so it encloses no area), or the ring was written on a balcony, which is rectangle-only: a balcony's railing is derived per EDGE — top, bottom, left, right — and a ring has no such edges.

Fix. Give the ring at least 3 corners that are not all on one line. For a balcony, use at (x,y) size WxH; a polygonal balcony is deferred by name, not supported.

arch
outdoor paving polygon (0,0) (1000,0) (2000,0)   # error: all three are collinear

E_OUTDOOR_POLY_SELF_INTERSECT ​

error — An outdoor ring crosses itself.

Cause. The vertices of an outdoor … polygon … describe a ring whose edges intersect (a bow-tie), so it encloses no single area — there is no unambiguous surface to hatch or to measure. Usually two vertices in the wrong order.

Fix. Reorder the vertices so the ring is a simple polygon, walking the outline once without crossing back over itself.

arch
outdoor deck polygon (0,0) (4000,4000) (4000,0) (0,4000)   # error: a bow-tie

E_OUTDOOR_RAIL ​

error — A rail clause on something that is not a balcony, or an unknown edge word.

Cause. rail names which edges carry a railing, and only a balcony has one. Written on any other ground surface it has no meaning — and a clause with no meaning is refused rather than silently dropped, so a plan never draws differently from what it says. The same code covers an edge word outside top|bottom|left|right|all|none.

Fix. Delete the clause, or make the surface an outdoor balcony. For an unknown word, use one of the six edge words.

arch
outdoor deck at (0,0) size 3000x2000 rail all   # error: a deck has no railing

E_OUTDOOR_SIZE ​

error — An outdoor surface must have a positive size.

Cause. An outdoor … at (x,y) size WxH statement's width or height evaluated to zero or a negative number, so there is no ground to draw, hatch or measure.

Fix. Give it a positive size W x H — the surface's extent in plan. For a shape that is not a rectangle, use the polygon spelling instead.

arch
outdoor lawn at (0,0) size 0x4000   # error: zero width

E_OUT_OF_RANGE ​

error — A coordinate, length or drawing setting is outside the modelling range.

Cause. Each element's bounds (the points it reports for the page: a rectangle's corners, a ring's vertices, a wall's faces) and the coordinates and lengths those do not carry (an opening's centre and width, a wall's thickness and arc radii, a dimension's offset, a room's label anchor), every axes position, every site boundary vertex and the grid must lie within ±33,554,432 mm (2^25 mm, about 33.5 km), the range inside which the geometry's integer predicates are exact. A finite value past it is not a building. The settings that scale a drawn length are held too: a wall's hatch scale and a theme lineWeight by what they DRAW on this drawing (the pattern tile and the heaviest pen, which grow with the drawing's size, must stay inside the range, so a coarse scale 10 on a house is fine), a north bearing or hatch angle within ±33,554,432 degrees, and on a paper plan a scale denominator small enough that the sheet stays inside the range. An element is checked once its place frames and relational placement are applied; it is reported once (its other diagnostics are withdrawn, and an opening in a dropped wall goes with it) and dropped from the plan, so nothing downstream draws or measures it.

Fix. Use a realistic dimension. A plan is measured in millimetres (a 30 m wall is 30000, or 30m), so a value in the millions is usually a unit slip; a site larger than about 33 km is several plans, not one.

arch
stair id=s at (0,0) size 1000000000000x3000 dir up   # error: a 1e12 mm flight

E_PARSE ​

error — The source could not be read: its SHAPE is wrong.

Cause. The lexer or the parser could not make a statement out of the bytes at this span — a missing or misspelled keyword, a value where a keyword belongs, an unterminated string, an unbalanced brace, clauses written in the wrong order, or blocks and expressions nested past the parser's limit (256 levels — far beyond any real plan; the deeper block is skipped, not read). It is the one code that says nothing about what the plan MEANS: resolution never ran here, so no measurement, no geometry and no soundness rule had a chance to speak.

Fix. Read the message: it names what was expected and what was found, at a byte span. Compare the statement against archlang spec's one line for that keyword — clause ORDER is part of the grammar, not a suggestion. Unlike every other code in this catalog, there is no machine-applicable fix to apply, because the compiler has no reading of the text to correct.

arch
door on w1 at 40% width 900 wall w1   # error: `wall` pairs with the `at (x,y)` form only

E_PARTITION_TOO_SHORT ​

error — walls from rooms, or a wall … between, meets a shared edge shorter than the wall's thickness.

Cause. Two rooms share a run of edge shorter than the derived partition (or the wall … between written on it) is thick, so the wall would be wider than it is long: almost always two edges that were meant to line up and miss by a few millimetres. The compiler refuses and names the pair and the run rather than draw a sliver of wall (ADR 0028 §3, §4).

Fix. Line the two rooms' edges up so they meet at a corner, or make the shared edge at least as long as the wall is thick.

arch
room id=a at (0,0) size 4000x3000
room id=b at (4000,2950) size 3000x3000
walls from rooms exterior 200 partition 100   # error: a and b share 50 mm
wall partition thickness 100 between a and b   # error: the same run

E_PLACE_POLY ​

error — A placement clause aimed at a polygon room that has no one edge or corner to stand on.

Cause. Relational room placement (right-of/left-of/below/above) and room-relative furniture placement (in <room> centered|anchor …) are closed-form arithmetic on a room's edges. A polygon whose every edge is horizontal or vertical has them: a side is the ring's run on its outermost line, a corner anchor is a vertex of the ring on two such lines, and a side anchor centres on the run. The rest is refused, because a bounding box is not a floor and the compiler does not guess (ADR 0005): a circle or a slanted polygon, a side that is several runs (the prongs of a U), a corner in a notch, centered or anchor center (the middle of the outline may not be floor), and a footprint that would leave the ring.

Fix. Name a side with one run or a corner that is a vertex of the ring, or give the room or the fixture explicit at (x,y) coordinates (a fixture may add rotate).

arch
room id=L polygon (0,0) (6000,0) (6000,4000) (3000,4000) (3000,6000) (0,6000)
furniture wc in L anchor bottom-right size 400x700   # error: that corner is in the L's notch

E_PLACE_REF ​

error — Furniture placed in an unknown or unplaced room.

Cause. A furniture … in <room> centered|anchor … names a room that does not exist, or a relationally placed room (right-of/…) that could not be placed (its own E_LAYOUT_* error says why). A relational room that IS placed works: rooms are placed before any furniture.

Fix. Reference an existing room, and fix the placement error of the room it names.

arch
furniture bed in bedrm centered size 1500x2000   # error: no room id=bedrm

E_PNG_DEPENDENCY ​

error — PNG/PDF export needs an optional dependency that is not installed.

Cause. Rendering to PNG needs @resvg/resvg-js (PDF needs pdfkit); the optional binary is absent in this environment (it is not bundled, to keep the core zero-dependency).

Fix. Install the optional dependency (npm install @resvg/resvg-js), or re-run with --install to fetch it automatically, or render to SVG/DXF (zero-dependency).

arch
archlang preview plan.arch --install   # fetches @resvg/resvg-js, then renders the PNG

E_RANGE_LIMIT ​

error — Range too large.

Cause. A lo..hi range would expand to more elements than the safety cap allows.

Fix. Use a smaller range, or restructure to avoid materializing it.

arch
for i in 0..1000000 { … }   # error: range too large

E_RATE_LIMITED ​

error — This address sent more requests than the host answers per minute.

Cause. The hosted MCP server pays for every request it computes, so it answers each address at most a fixed number of times a minute and refuses the rest before compiling anything. It is a property of the host, not of the plan: the same source compiles locally with no limit.

Fix. Wait a minute and retry, or compile locally, where there is no limit: npx -y @chanmeng666/archlang compile plan.arch, or the stdio MCP server npx -y @chanmeng666/archlang-mcp.

arch
tools/call compile { … }   # one call past the per-minute limit from one address: error on the hosted MCP server

E_RECURSION ​

error — Component recursion too deep.

Cause. Component instantiation nested beyond the depth limit (usually unbounded self-instantiation).

Fix. Add a base case so the recursion terminates.

arch
component r(n) { r(n) }   # error: never terminates

E_REDEF ​

error — Name already defined in this scope.

Cause. A let re-declares a name already bound in the same scope.

Fix. Rename one binding, or use NAME = … to reassign instead of redeclaring.

arch
let x = 1
let x = 2   # error: redefinition

E_ROOF_AMBIGUOUS ​

error — roof overhang cannot tell which wall ring to follow.

Cause. The overhang sugar offsets ONE closed wall ring, and with no wall <id> clause it infers that ring as the plan's single closed exterior wall. The plan has none (a ring marked status demolish is coming out, so it does not count), or has more than one, so there is nothing to infer — and picking the first would silently draw a roof over part of the building.

Fix. Name the ring (roof overhang 600 wall <id>), or state the outline yourself with roof polygon (x,y) (x,y) (x,y) ….

arch
plan "H" {
  units mm
  room id=r1 at (0,0) size 4000x3000
  roof overhang 600   # error: no closed exterior wall to follow
}

E_ROOF_CURVED ​

error — roof overhang on a wall with a curved edge.

Cause. The named ring has an arc edge. Offsetting a curve is a different construction from mitring two straight faces (concentric radii, plus the cases where the offset radius passes through zero), and faceting it would put a tessellation in the one place a reader is entitled to read a true parallel.

Fix. State the outline explicitly with roof polygon …, or follow a straight-edged wall ring instead.

arch
wall id=drum exterior thickness 200 { (0,0) arc (6000,0) radius 4000 (6000,4000) (0,4000) close }
roof overhang 600 wall drum   # error: arc edge

E_ROOF_OVERHANG ​

error — roof overhang is zero or negative.

Cause. An overhang is a distance the roof projects PAST the wall's outer face, so it must be positive. Zero would draw the outline on the wall face (say nothing instead), and a negative value would draw it inside the building.

Fix. Give a positive projection in mm, e.g. roof overhang 600.

arch
roof overhang 0   # error: must be positive

E_ROOF_PLACEMENT ​

error — roof used inside a component body.

Cause. A roof belongs to a building, not to a reusable part of one: roof overhang is offset from the plan's closed exterior wall ring, and a component is authored in its own local frame with no such ring. Two placed copies would each derive an outline and the plan would draw two roofs.

Fix. Move the roof line out to the plan body (or into the level block it belongs to).

arch
component wing() { roof overhang 600 }   # error: only allowed at plan level

E_ROOF_POLY_DEGENERATE ​

error — roof polygon outline has fewer than 3 effective vertices.

Cause. After removing duplicate and straight-through (collinear) points the ring encloses no area, so it is a line or a point rather than a roof outline.

Fix. Give at least three vertices that actually turn a corner.

arch
roof polygon (0,0) (4000,0) (8000,0)   # error: all three are collinear

E_ROOF_SELF_INTERSECT ​

error — The roof outline crosses itself.

Cause. Either the roof polygon ring was written as a bow-tie, or the derived overhang offset is wide enough to swallow a notch in the wall it follows (a 900 mm eave across a 600 mm light well) and the pushed-out faces cross. Neither encloses a single area.

Fix. Reorder the vertices, or reduce the overhang — or state the outline explicitly with roof polygon ….

arch
roof polygon (0,0) (4000,4000) (4000,0) (0,4000)   # error: bow-tie

E_ROOF_WALL ​

error — roof overhang … wall <id> names a wall that cannot carry a roof.

Cause. The named wall is not declared in this plan, it is not a closed ring, or it is marked status demolish. An overhang is offset from a loop; an open polyline has no inside to be outside of, and a demolished wall holds no roof.

Fix. Check the id, give the wall a close so its points form a ring, or name a wall that stays.

arch
wall id=w1 exterior thickness 200 { (0,0) (8000,0) }
roof overhang 600 wall w1   # error: not a closed ring

E_ROOMS_NOT_TILING ​

error — walls from rooms, or a wall … around, meets rooms that do not tile one connected floor.

Cause. walls from rooms draws the exterior ring on the outline of the rooms' union and a partition on every shared edge, so the rooms must form one edge-connected floor: two rooms touching only at a corner, a union pinched at a single point, or a gap between rooms (a hole, or a corridor left as 'the leftover') has no single outline to wall. A hole is legal only when outdoor surfaces (a courtyard, which gets an inner ring) or a void (no wall) of the same plan or component cover it exactly. wall … around [<rooms>] draws the same outline as one wall, so the same rule holds, except that it refuses every hole: one wall is one ring, and a courtyard needs walls from rooms. The compiler refuses and names the rooms rather than guess where the missing floor is (ADR 0028 §3, §4, ADR 0005).

Fix. Write the leftover floor as a room of its own (a corridor, a lobby), move the rooms so they meet edge to edge, or cover a courtyard exactly with an outdoor surface (under walls from rooms; round a hole, type the rings' points).

arch
room id=a at (0,0) size 4000x3000
room id=b at (5000,0) size 3000x3000
walls from rooms exterior 200 partition 100   # error: a and b do not touch
wall exterior thickness 200 around [a b]   # error: the same, as one ring

E_ROOMS_OVERLAP ​

error — walls from rooms, a wall … between/wall … around, or a door or opening between a polygon and a room, meets two rooms that overlap.

Cause. Two rooms of the set share floor with positive area, so the edge between them is not one line and no partition (nor a wall … between the pair, nor one outline around them, nor a door on a polygon's edge) can be derived on it. A room listed twice in around [ … ] would overlap itself and is refused the same way, on the repeated name. The compiler refuses and names every overlapping pair rather than choose which room owns the shared floor (ADR 0028 §3, §4).

Fix. Move or resize the rooms so they meet edge to edge; the shared edge becomes the partition. Name each room once.

arch
room id=a at (0,0) size 4000x3000
room id=b at (3000,0) size 3000x3000
walls from rooms exterior 200 partition 100   # error: a and b overlap by 1000 mm
wall partition thickness 100 between a and b   # error: the same pair

E_ROOM_ALIGN ​

error — Unknown relational alignment edge.

Cause. A relationally-placed room's align <word> names something that is not an alignment edge. The set is closed (top, middle, bottom for right-of/left-of; left, center, right for below/above), and an unrecognised word used to fall through to the leading edge silently — drawing the plan as if align had never been written.

Fix. Use one of the six edges; the diagnostic suggests the nearest one and carries a fix that rewrites just that word.

arch
room id=b right-of a align sideways size 3000x3000   # error: not an edge (did you mean `bottom`?)

E_ROOM_ALIGN_AXIS ​

error — Relational alignment edge belongs to the other axis.

Cause. A relationally-placed room's align <edge> names a real edge, but not one of the axis that direction aligns on. A horizontal relation (right-of/left-of) offsets its room vertically, so it takes top|middle|bottom; a vertical relation (below/above) offsets horizontally, so it takes left|center|right. (middle and center are honoured on both — they are the same instruction spelled twice.) A cross-axis edge used to be ignored in silence, drawing the room against the leading edge exactly as if align had never been written — distinct from E_ROOM_ALIGN, where the word is not an edge at all.

Fix. Use the edge of the correct axis; the diagnostic names its exact counterpart (leading stays leading, trailing stays trailing) and carries a fix that rewrites just that word.

arch
room id=b right-of a align right size 3000x3000   # error: `right` is horizontal (did you mean `bottom`?)

E_ROOM_NOT_RECTANGLE ​

error — A room-edge datum meets a circle, a slanted polygon, a polygon side of several runs or a polygon's centre; a wall … between/wall … around meets a polygon or circle room; or walls from rooms or a door or opening placed between two rooms meets a circle or a polygon with a slanted edge.

Cause. Datums (top, bottom, left, right, cx, cy) are the four edges and the centre of a RECTANGULAR room. A rectilinear polygon (every edge horizontal or vertical) has edges too: top, bottom, left and right are the ring's run on its outermost line, one run or a refusal (the prongs of a U do not say which), and cx, cy are refused, since the middle of the outline may not be floor. The pairwise wall … between/wall … around derive their walls from a rectangle's edges. A circle or a slanted polygon has no such edges, and its bounding box is not its floor, so the compiler refuses instead of guessing (ADR 0028 §2, §4). walls from rooms and door|opening … between read the ring as well, so a rectilinear polygon is legal there; a circle, or a polygon with any other edge, shares no edge run, and is refused the same way (§3, §5). For a pairwise wall or a between the span points at the room's name.

Fix. Write the coordinate as a number, or read a side the room has. For walls from rooms, leave the room out with { except <room> } and draw its walls by hand, or make its edges horizontal and vertical; for a pairwise wall, type its points; for a door or opening, place it on <wall> at … or at (x,y).

arch
room id=T polygon (0,0) (6000,0) (3000,4000)
wall interior thickness 100 { (T.left, 0) (T.left, 4000) }   # error: T has a slanted edge

E_ROOM_POLY_DEGENERATE ​

error — Polygon room has fewer than three effective vertices.

Cause. After removing duplicate and straight-through (collinear) points, the ring encloses no area — so it has no floor, no centroid and no containment test.

Fix. Give the room at least three vertices that actually turn a corner.

arch
room polygon (0,0) (4000,0) (8000,0)   # error: all three are collinear

E_ROOM_POLY_SELF_INTERSECT ​

error — Polygon room intersects itself.

Cause. Two of the ring's edges cross (or run along each other), so the polygon is not simple and which side is 'inside' is undefined — area, containment and adjacency would all be meaningless.

Fix. Reorder the vertices so the ring is traced once around the room without crossing itself (a bow-tie usually means two vertices are swapped).

arch
room polygon (0,0) (4000,4000) (4000,0) (0,4000)   # error: bow-tie

E_ROOM_RADIUS ​

error — Circular room needs a positive radius.

Cause. A room circle at (cx,cy) radius R has R of zero or less, so it encloses no floor — there is no area, no centroid and no containment test to compute.

Fix. Give the room a positive radius in millimetres.

arch
room circle at (5000,5000) radius 0   # error: no floor

E_ROOM_SIZE ​

error — Room must have a positive size.

Cause. A room's width or height evaluated to zero or a negative number.

Fix. Give the room a positive size W x H.

arch
room at (0,0) size 0x4000   # error: width is 0

E_RULESET_VALUE ​

error — A lint ruleset value is not a finite number within the modelling range.

Cause. lint(source, { ruleset }) (and lintWithCoverage) lays the caller's overrides over the defaults and the named profile, then checks every numeric field of the result before the plan is resolved: each must hold a finite number within ±33,554,432 (2^25, the modelling range E_OUT_OF_RANGE holds coordinates to), whatever its unit (mm, m² or a ratio). NaN, Infinity, a value like 1e300, or something that is not a number at all (undefined, which { doorwayLandingMm: undefined } lays over the default, a string such as "500", an object, a boolean) would otherwise reach the rules and their spatial grids. The per-use tables (minRoomAreaByUseM2, minRoomShortSideByUseMm, minPathClearWidthByUseMm) are checked entry by entry, each named by a dotted key (minRoomAreaByUseM2.bedroom); an entry left undefined is no entry. null, where a field allows it (a rule turned off, a use exempted), passes. One error per bad value, naming the key and what the value is (not a number, not finite, beyond the range, undefined, a string…) but never the value itself, in the code-unit order of the keys, at byte 0, since the fault is the option and not the source; no rule runs, so the coverage report is null. The CLI and the MCP servers pass only named profiles, so only a library caller can raise it.

Fix. Pass a finite number within the range, or leave the key out to keep its default; null turns off a rule whose field allows it.

arch
lint(source, { ruleset: { doorwayLandingMm: Number.NaN } })   # error: `doorwayLandingMm` is not a number, and no rule runs

E_RUN_TOO_LONG ​

error — A stair or escalator run is longer than any run the plan draws.

Cause. A stair or escalator is drawn with one tread line (or chevron) per 280 mm going along its footprint's long side, and at most 1,100 of them: a run longer than about 308 m — past the longest built escalator and moving walkway — would be drawn as tens of thousands of lines, so it is refused instead of drawn thinned. It holds at any size, inside the modelling range or not. Usually a size in the wrong unit (size 2000x1200 meant, size 2000000x1200 written).

Fix. Check the footprint's long side; a real run is a few metres. Model a long concourse as a room with several runs in it.

arch
escalator id=e at (0,0) size 400000x1200 dir up   # error: a 400 m run

E_SECTION_AXIS ​

error — A section mark's cut line is slanted or has no length.

Cause. section <name> (x,y)->(x,y) look <compass> marks where a section cuts the plan. The cut line runs horizontally or vertically: its two ends share a y or an x. A slanted line, or one whose two ends are the same point, is refused rather than straightened, because which end the author meant to move is not something the compiler can know.

Fix. Give the two ends the same x (a vertical cut) or the same y (a horizontal one), at the length the cut should run.

arch
section A (0,0)->(6000,4000) look east   # error: a slanted cut line

E_SECTION_DUP ​

error — Two section marks share a name.

Cause. A section mark's name (section A …, section 1 …) names the section a drawing set refers to, so a plan marks each section once. The names are the sections' own, like axis labels: a room or a wall may share one.

Fix. Rename one of the two marks, or delete the repeated line.

arch
section A (3000,-1000)->(3000,7000) look east
  section A (0,2000)->(8000,2000) look north   # error: A is marked twice

E_SECTION_LOOK ​

error — A section mark looks along its own cut line.

Cause. look <compass> says which way the section is seen from the cut, so it points across the cut line. The plan's north turns the compass word into a page direction, and that direction runs along the line: a vertical cut can look only the two compass ways that point left and right on the page, a horizontal one only the two that point up and down. The message names the two words this plan's north allows.

Fix. Write one of the two compass words the message names, or turn the cut line.

arch
section A (3000,-1000)->(3000,7000) look north   # error under north up: a vertical cut looks east or west

E_SECTION_SCOPE ​

error — A section mark sits inside a level, zone, component or block.

Cause. A section cuts the whole building, so its mark is a plan-level statement, written once, outside every block. It is drawn on the lowest storey's page. Inside a component it would be drawn once per placed copy, and inside a level block it would belong to one storey only.

Fix. Move the line out to the plan level, beside the level blocks.

arch
level 1 "Ground" {
    section A (3000,-1000)->(3000,7000) look east   # error: inside a level
  }

E_SEGMENT_SELECT ​

error — A segment selector (segment north, segment containing <room>.<edge>) does not name exactly one segment.

Cause. A selector stands for the segment <n> it resolves to, so it must pick exactly one segment. segment north|south|east|west picks the straight segment of a CLOSED wall whose outward face (the side away from the floor the ring encloses) looks that way; an open wall has no floor side, so it is refused. segment containing <room>.<edge> picks the straight segment lying on that room edge's line with a positive overlap; a centre line (cx, cy) or a name that is not a room edge is refused. No match, or several, is refused rather than guessed. dim radius measures an arc, which no selector picks, so a selector there is refused too.

Fix. Type one of the segment <n> numbers the message lists, or name a different edge or direction.

arch
wall id=w exterior thickness 200 { (0,0) (3000,0) (3000,1000) (6000,1000) (6000,4000) (0,4000) close }
furniture wardrobe against wall w segment north side right   # error: segments 0 and 2 both face north

E_SET_OVERRIDE ​

error — archlang impact --set NAME=value cannot override that name with that value.

Cause. --set NAME=value replaces the expression of the root plan's one top-level let NAME = … with a numeric literal and compares the plan before and after. It is refused, and nothing is compared, when NAME is not exactly one top-level let (absent, bound only inside a block, a component or a level, a value-function let f(x) = …, declared twice, or reassigned with NAME = …), or when the value is not one number as the language writes it (4500, 4.5m, 45cm, -200). Raised by applyLetOverride(), never by compile().

Fix. Name a top-level let the message lists, give a plain number, or compare two whole files with archlang impact plan.arch --against old.arch.

arch
let W = 4000
room id=a at (0,0) size W x 3000   # archlang impact plan.arch --set D=4500: error, D is not a top-level let

E_SILL_ABOVE_HEAD ​

error — A window's sill sits at or above its head.

Cause. A window's sill is the bottom of the glazing and its head is the top, both measured from this storey's floor. When the sill is not below the head there is no opening between them — the statement describes a window with no glass in it. Refused rather than silently swapped: which of the two numbers is wrong is not something the compiler can know.

Fix. Lower the sill below the head, or raise the head. Dropping the sill clause (the fix) restores the 900 mm default.

arch
window id=w on wall1 at 50% width 1200 sill 2400 head 2100   # error: sill above head

E_SITE_BOUNDARY_DEGENERATE ​

error — The site boundary encloses no lot.

Cause. A site { boundary … } ring has fewer than 3 effective vertices once duplicate and collinear points are removed, so there is no lot to draw a property line round or to report an area for.

Fix. Give the boundary at least 3 corners that are not all on one line.

arch
site { street north
  boundary (0,0) (10000,0) }   # error: two points is not a lot

E_SITE_BOUNDARY_SELF_INTERSECT ​

error — The site boundary crosses itself.

Cause. The vertices of a site { boundary … } describe a ring whose edges intersect, so it encloses no single lot and describe --json's site.lot_area_m2 would have no honest value. Usually two vertices in the wrong order.

Fix. Reorder the vertices so the boundary walks the lot line once without crossing back over itself.

arch
site { street north
  boundary (0,0) (10000,10000) (10000,0) (0,10000) }   # error: a bow-tie

E_SITE_DUP ​

error — Two site blocks in one plan.

Cause. A plan declares site more than once. axes merges when repeated because two axis lists append; two street values contradict, and silently keeping the last one would hide an authoring mistake in the very statement whose job is to be the single source of orientation.

Fix. Delete one of the blocks, or merge their fields into a single site { … }. The first block is the one that takes effect.

arch
plan "H" {
  units mm
  site { street south }
  site { street north }   # error: site already declared
}

E_SITE_NO_STREET ​

error — A site block declares no street.

Cause. street is the only required field of site: every derived name (back, and the three _side names) is a function of it, so a site without one derives nothing at all. Refusing beats defaulting — there is no direction a building's frontage faces by default.

Fix. Add street north, south, east or west inside the block. hemisphere is the optional field (it defaults to north).

arch
plan "H" {
  units mm
  site { hemisphere south }   # error: no street
}

E_STAIR_PIECES ​

error — A stair's flights and landings do not make one stair.

Cause. The block form of stair is one stair of authored rectangles in climbing order. It alternates flight and landing, starts and ends on a flight, has at least two flights and needs width, the flight width. Each piece touches the next along an edge that holds the whole flight, no two pieces overlap, and a flight between two landings leaves by the edge opposite the one it is entered by, because a flight is straight. A flight's direction comes from what it touches, never from its long side. A landing with winders is refused unless the count is a whole number from 2 to 8, the landing is exactly width × width, and it turns a quarter (entered and left across two adjacent sides); winders on a flight is a parse error.

Fix. Check the order of the pieces and that each one ends exactly where the next begins. A landing may be wider or longer than the flights it joins.

arch
stair id=s dir up width 1000 { flight at (0,1000) size 1000x1000 flight at (0,0) size 1000x1000 }   # error: two flights with no landing between

E_STAIR_WIDTH ​

error — Stair flight width is outside the footprint.

Cause. A stair's optional width is the FLIGHT width measured across the run, so it has to be positive and no wider than the footprint's cross-axis extent (the short side — the flight always runs along the long one). This value is not.

Fix. Drop width to fill the footprint, or give a value between 0 and the footprint's short side.

arch
stair id=s at (0,0) size 900x2600 dir up width 1200   # error: cross extent is 900

E_STALE_SOURCE ​

error — The file is not the revision --expected-hash names.

Cause. A command that rewrites a .arch file (fix, finish, repair, fmt --write, reroll --write) was given --expected-hash <sha256>, and the SHA-256 of the input file's bytes (a BOM and CRLF line ends are part of them) is another value: someone changed the file after you read it. The command checks the hash before it computes anything and refuses then; it reads the file again just before it writes and refuses if the bytes changed while it ran. Nothing is written either way. The second check narrows the race with another writer; it is not a lock. Raised by the CLI (exit 4), never by compile().

Fix. Re-read the file, re-apply your edit to what is there now, and pass the new hash: the source_hash a --json run of the command reports (or the written_hash of your own last write).

arch
archlang fix plan.arch --expected-hash 9f86d081884c…   # error: plan.arch changed since that hash was taken, exit 4

E_STEP_LIMIT ​

error — Evaluation did more work than any plan needs.

Cause. One counter measures the work the whole resolution does (every storey, component instance and import): an expression evaluated, a statement run, a loop iteration, a value or character produced (charged before it is built), a binding copied, a diagnostic raised, a pair of a polygon ring's edges tested for a crossing, a few edges read when two polygon or round rooms have overlapping boxes. Past 5,000,000 steps evaluation stops at the statement that crossed the budget and the plan draws nothing. Each loop's own caps hold (E_RANGE_LIMIT, E_WHILE_LIMIT, E_ELEMENT_LIMIT), but loops nested in loops, recursion that calls itself twice and a string that doubles multiply inside them. A ring's edge pairs grow with the square of its vertices, so one ring of about 3,000 vertices spends the budget with no loop in the plan, and so do many polygon or round rooms whose boxes overlap and whose outlines run to hundreds of vertices.

Fix. Remove the inner loop or the doubling, compute the value directly, draw long outlines with fewer vertices, keep the boxes of polygon rooms apart, or split the plan.

arch
for i in 0..100000 { for j in 0..1000 { let x = i } }   # error: 100 million iterations

E_STRIP_NEST ​

error — Illegal strip nesting.

Cause. A strip block appears inside a component, a control-flow block, or another strip. Strips place rooms and are only legal as direct plan-level statements.

Fix. Move the strip to the plan body, alongside the other elements.

arch
component c() { strip right at (0,0) gap 0 { … } }   # error: nested strip

E_STRIP_SIZE ​

error — Room in a strip is missing a size.

Cause. A room inside a strip { … } gives no main-axis extent, or gives none while the strip supplies no cross-axis height/width for it to inherit — so its rectangle is undetermined.

Fix. Give the room a size <main> (main-axis extent) plus either a strip height/width or its own size <main>x<cross>.

arch
strip right at (0,0) gap 100 { room size }   # error: no extent

E_SWING_SIDE ​

error — swing inward or swing outward on a wall with no single inside.

Cause. swing inward|outward is relative to the building: inward opens the leaf towards the one face of the host wall that has floor (probed one wall thickness off each face, against every room's own shape), outward away from it. A wall between two rooms (or one free-standing inside a room) has floor on both faces, a garden wall has it on neither, and a door with no host wall has no faces at all, so neither word picks a side, and guessing one would put the leaf where the author did not mean it. The door falls back to its default swing. A door whose placement was refused is not told this as well: the refusal is the report.

Fix. Name the room the leaf opens into with swing into <room>, or write the wall-relative swing in|out (in is the right-hand side of the wall's drawn direction on the page, out the left).

arch
wall id=w1 partition thickness 100 { (3000,0) (3000,3000) }
room id=a at (0,0) size 3000x3000
room id=b at (3000,0) size 3000x3000
door on w1 at 50% width 800 swing inward   # error: floor on both faces

E_TYPE ​

error — Type mismatch.

Cause. A value was used where another type was required (e.g. a string where a number is expected, or a non-array in for).

Fix. Convert or supply the expected type.

arch
room at (0,0) size "big" x 10   # error: size needs numbers

E_UNKNOWN_COMPONENT ​

error — Unknown component.

Cause. An instance calls a component name that is not defined or imported.

Fix. Define the component, import it, or fix the name (see the suggestion hint).

arch
sofa(0, 0)   # error if no `component sofa` is in scope

E_UNKNOWN_FN ​

error — Unknown function.

Cause. A call uses a name that is neither a built-in nor a value-function in scope.

Fix. Define it with let f(…) = …, or fix the name.

arch
let x = frobnicate(2)   # error

E_UNKNOWN_REF ​

error — Unknown reference.

Cause. An expression references a name that is not bound in scope, or a room-edge datum (hall.top) or an opening's between names a room the plan (or, inside a placed component, the component) does not have, or axis.3 names a positioning axis the plan does not declare. A placed component reads no axis: its coordinates are its own frame's.

Fix. Declare it with let, pass it as a parameter, or fix the typo (for a datum, the room id before the last dot; for an axis, the label the plan's axes give it).

arch
let x = y + 1   # error if `y` is undefined

E_VERT_SIZE ​

error — Vertical circulation must have a positive size.

Cause. A stair, elevator or escalator footprint's width or height evaluated to zero or a negative number, so there is no run to draw.

Fix. Give it a positive size W x H — the footprint the run occupies on this storey.

arch
stair id=s at (0,0) size 900x0 dir up   # error: zero depth

E_VOID_POLY ​

error — A void … polygon ring must run only horizontally and vertically, without crossing itself.

Cause. A void's ring is cut into the rectangles it is made of, because the walking grid, the stair and furniture checks and finish read a hole as rectangles. A ring with a slanted edge, one that crosses itself, or one with fewer than four effective vertices (after duplicate and straight-through points are removed) has no such cut, so it is refused rather than read as its bounding box.

Fix. Write the ring with horizontal and vertical edges only (an L, a U, a notch), each corner once, or split a slanted hole into rectangle voids.

arch
void id=well polygon (0,0) (3000,0) (2000,2000) (0,2000)   # error: a slanted edge

E_VOID_RAIL ​

error — A void's rail clause names an edge the void does not have.

Cause. A rectangle void names its railed edges by side (top|bottom|left|right, or all/none); a polygon void numbers them, edge n running from point n to point n+1, counted from 0 like a wall's segment <n>. A side word on a ring (an L has two edges facing the same way), a number on a rectangle, or a number that is not one of the ring's edges is refused rather than guessed.

Fix. On a rectangle write side words; on a ring write all, none or edge numbers from 0 to one less than its point count.

arch
void id=well polygon (0,0) (3000,0) (3000,1000) (1000,1000) (1000,3000) (0,3000) rail 6   # error: edges are 0 to 5

E_VOID_SIZE ​

error — A floor void must have a positive size.

Cause. A void's width or height evaluated to zero or a negative number, so there is no opening in the floor plate to draw or to route circulation around.

Fix. Give it a positive size W x H — the hole's extent in plan.

arch
void id=well at (2000,1000) size 0x3000   # error: zero width

E_WALLS_FROM_NO_ROOMS ​

error — A walls from rooms statement has no room to derive walls from.

Cause. The statement derives walls from the rooms written beside it, in the same plan or component; there is none, or its except clause leaves out every one. Deriving nothing silently would leave a plan with no walls where the author asked for them (ADR 0028 §3).

Fix. Write the rooms beside the statement, or drop the statement (or the except that empties it).

arch
room id=a at (0,0) size 4000x3000
walls from rooms exterior 200 partition 100 { except a }   # error: every room is excepted

E_WALLS_FROM_ROOMS_DUP ​

error — More than one walls from rooms statement in one plan or component.

Cause. One walls from rooms statement already derives every wall of its group's rooms, so a second one would derive the same walls again, possibly with other thicknesses; the compiler refuses the second rather than choose between them (ADR 0028 §3).

Fix. Keep one statement per plan, storey or component; put every exclusion in its except clause.

arch
room id=a at (0,0) size 4000x3000
walls from rooms exterior 200 partition 100
walls from rooms exterior 250 partition 100   # error: a second statement

E_WALL_BETWEEN_DUP ​

error — A walls from rooms statement names one pair of rooms in two clauses.

Cause. Each pair of rooms takes at most one clause: open between (the run is voided by an opening) or between … thickness (the partition gets its own thickness). A second clause on the same pair, in either order of the rooms, would either contradict the first or repeat it, and the compiler refuses rather than choose (ADR 0028 §3). The span points at the later clause.

Fix. Keep one clause per pair.

arch
room id=a at (0,0) size 4000x3000
room id=b at (4000,0) size 3000x3000
walls from rooms exterior 200 partition 100 { open between a and b  between b and a thickness 200 }   # error: the pair twice

E_WALL_BETWEEN_NOT_ADJACENT ​

error — A walls from rooms clause, a wall … between, or a door or opening placed between two rooms, names two rooms that share no edge.

Cause. open between A and B and between A and B thickness t act on the partition the statement derives on the edge run two rooms share, wall … between A and B stands on that run, and door|opening … between A and B stands in the wall on that run (ADR 0028 §3, §4, §5). Two rooms that do not meet along an edge (apart, or touching only at a corner), or a room named twice, have no such run, so the clause would act on nothing. The span points at the clause.

Fix. Name two rooms that meet along an edge, or remove the clause (place the door on <wall> at … or at (x,y) instead).

arch
room id=a at (0,0) size 4000x3000
room id=b at (4000,0) size 3000x3000
room id=c at (0,3000) size 7000x2000
room id=d at (7000,0) size 2000x5000
walls from rooms exterior 200 partition 100 { open between a and d }   # error: a and d do not meet
wall partition thickness 100 between a and d   # error: the same pair

E_WALL_BETWEEN_OPEN ​

error — A wall, door, window or opening is written on an edge a walls from rooms clause declares open.

Cause. open between A and B voids the pair's edge run with a derived opening: the two rooms are one open-plan space there. An authored wall lying on that run (exactly on its line, overlapping it), or an authored door, window or opening hosted by position across the span the derived opening voids, would close or narrow what the clause opened, so the compiler refuses rather than choose between them (ADR 0028 §3); the span points at the clause. A relational door|opening … between A and B on that pair is refused the same way, spanned on its own between clause with the open clause as a related span (§5).

Fix. Remove the authored wall or opening on that edge, or remove the open between clause and keep the wall (with a door in it).

arch
room id=a at (0,0) size 4000x3000
room id=b at (4000,0) size 3000x3000
walls from rooms exterior 200 partition 100 { open between a and b }
door at (4000,1500) width 800 wall partition   # error: the edge is open

E_WALL_BETWEEN_ROOM ​

error — A walls from rooms clause names a room it cannot act on.

Cause. walls from rooms derives from the rooms of the plan or component it is written in (ADR 0016: a component sees only its own rooms). Its except clause can leave out only one of those rooms; an open between or between … thickness clause can name only one of those rooms that the statement derives walls round: a rectangle or a rectilinear polygon, not left out by except (a circle room, or a polygon with a slanted edge, has no edge run to share). A name that is not one of them (a typo, a room of another component, a placed instance's room) would act on nothing (ADR 0028 §3). The span points at the name.

Fix. Name a room written beside the statement (a rectangle or a rectilinear polygon, not excepted, in an open/between clause), or drop the name.

arch
room id=a at (0,0) size 4000x3000
walls from rooms exterior 200 partition 100 { except terrace }   # error: no room `terrace`

E_WALL_BETWEEN_WIDTH ​

error — An open between opening does not fit the clear span of its edge.

Cause. open between A and B derives an opening across the clear span of the pair's edge run: the run less half the thickness of the thickest wall meeting it at each end. With width, the opening is centred on that span and must fit in it; without one it spans it whole, which needs a span longer than zero. Narrowing or sliding it to fit would be a choice the author did not make (ADR 0005), so the compiler refuses. The span points at the clause.

Fix. Give a width no larger than the clear span (the message states it), or leave width out.

arch
room id=a at (0,0) size 4000x3000
room id=b at (4000,0) size 3000x3000
walls from rooms exterior 200 partition 100 { open between a and b width 3000 }   # error: the clear span is 2800

E_WALL_ID_RESERVED ​

error — An authored wall takes the id the derived exterior ring has in this plan or component.

Cause. Beside a walls from rooms statement, the exterior ring it derives is named exterior internally (the courtyard rings and partitions have names no identifier can spell). An authored wall with that id would make one id name two walls, so a host, a hint and describe().access could not tell them apart (ADR 0028 §3). The span points at the id.

Fix. Rename the authored wall (wall id=shell …), or drop it and let the statement derive it.

arch
room id=a at (0,0) size 4000x3000
wall id=exterior partition thickness 100 { (2000,0) (2000,3000) }   # error: the derived ring's name
walls from rooms exterior 200 partition 100

E_WALL_THICKNESS ​

error — Wall must have a positive thickness.

Cause. A wall's thickness evaluated to zero or a negative number.

Fix. Give the wall a positive thickness.

arch
wall exterior thickness 0 { (0,0) (1,0) }   # error

E_WHILE_LIMIT ​

error — while exceeded its iteration cap.

Cause. A while ran more times than the safety cap allows (usually a condition that never becomes false).

Fix. Ensure the loop body updates a binding so the condition eventually fails.

arch
let i = 0
while i < 1 { let y = i }   # error: i never changes

E_WINDOW_CORNER ​

error — A window placed at corner does not stand at a true corner of two walls.

Cause. window on <room>.<edge> at corner <room>.<edge> runs a window to the corner the two edges make, with a window on each of the two walls, and no wall left at the corner between them. So it is refused where that is not what the plan says: on a door or a cased opening; on on <wall>, since a corner is read from a room's edges; on two edges that do not meet at an end, or belong to different rooms; where either edge has no exterior wall that stays and ends exactly on the corner (a wall running on past it, a partition, a demolished wall); where a third wall or a column stands at the corner; on a window no wider than the other wall is thick; with no window at the corner on the other wall, or more than one; on two windows with different sill or head; and on a hinge naming the corner end, since a hinge needs a jamb and no wall is left there. A polygon's side words name its outermost runs, which meet only at convex corners, so a re-entrant corner cannot be named. Refused, never approximated: taking away the wall at a corner is a statement about the corner.

Fix. Write the other window (the hint quotes it), name two edges of one room that meet at an end, or stand the window clear of the corner with at <mm> from <room>.<edge>.

arch
room id=r at (0,0) size 4000x3000
  walls from rooms exterior 200 partition 100
  window id=n on r.top at corner r.right width 1500   # error: no window on r.right

E_WINDOW_KIND_CLAUSE ​

error — That clause is not available on this kind of window.

Cause. A window statement carries hinge on a window that hangs on no jamb: a window with no kind, or a fixed, tilt or sliding one. Only casement and tilt_turn take it. ArchLang refuses rather than draws the statement as if the clause were absent, as it does for a door (E_DOOR_KIND_CLAUSE).

Fix. Delete the clause (the machine-applicable fix does exactly that), or change the window's kind to casement or tilt_turn.

arch
window fixed on w1 at 50% width 1500 hinge left   # error: a fixed window has no hinge

E_WINDOW_WIDTH ​

error — Window must have a positive width.

Cause. A window's width evaluated to zero or a negative number.

Fix. Give the window a positive width.

arch
window at (0,0) width 0   # error

W_ACCESSIBLE_WC_SIDE_WALL ​

warning — An accessible WC's pan stands too far from every side wall.

Cause. A wc (or toilet) in a room whose label says "accessible", "wheelchair" or "disabled" (as a whole word, not negated: "Non-accessible" and "Inaccessible" are not) has its centreline farther than the ruleset's wcAccessibleSideWallMaxMm (500 mm) from the face of the straight wall on either side of it, so no grab rail can be fixed within reach of the pan and there is no wall to transfer against. Its sides are the two edges beside its back (its rotate), measured as W_WC_SIDE_CLEARANCE measures, square to the centreline over the pan's depth, from the drawn footprint to the drawn wall body; a fixture beside the pan does not count, and a doorway is a gap measured to its jamb. A WC beside a curved wall is not judged (a curved-wc-wall coverage skip), nor is one more than twice the figure wide (wide-wc-pan). The figure is the high end of the 400–500 mm WC centreline to the adjacent wall of Approved Document M Vol 1 (2015) M4(2) Diagram 2.5 and of the 450–500 mm of its M4(3) Diagrams 3.11 and 3.16; the ADA 2010 Standards 604.2's 16–18 in (406–457 mm) lies inside it. Advice, never compliance (ADR 0005). Set wcAccessibleSideWallMaxMm: null to turn it off.

Fix. Slide the pan along its back wall toward the nearer side wall until its centreline stands 400–500 mm from that wall's face (the hint gives the slide), or move it into a corner. There is no machine fix: the edit depends on how the pan was placed.

arch
wall id=w exterior thickness 200 { (0,0) (3000,0) (3000,2500) (0,2500) close }
room id=r at (0,0) size 3000x2500 label "Accessible WC" uses wc
furniture wc against wall w segment 0 offset 1500 in r   # lint: centreline 1400 mm from either side wall

W_ALIAS_MATCH ​

warning — A room's use was inferred from an indirect alias, not stated.

Cause. A room has no authored uses, and its function was guessed from its label (or, when it has no label, from its id) via a non-canonical alias (an indirect term like powder → WC, foyer → entry) rather than a direct word (wc, entrance). A room with no label is named in the message by where it stands, never by its id; the id and the term taken from it are in the hint. The guess is reasonable but the intent is implicit, so a reader (or agent) cannot tell the classification was assumed.

Fix. Add an explicit uses … to the room stating the inferred function — the machine-applicable fix inserts it for you. This pins the classification without changing the room's describe() type.

arch
room at (0,0) size 2000x1500 label "Powder"   # warning: WC inferred from the alias "powder"; add `uses wc`

W_ANNOTATION_OVERLAP ​

warning — A label or a dims auto number is printed over a symbol, a wall, a door swing or another label, or a label runs off its room.

Cause. Read off the drawing itself, after the label placer has moved every room label it could and shrunk what still did not fit: a room's name or area figure lies over a furniture, fixture or stair symbol, over a wall or over the area a door's leaf sweeps, or runs off its own floor; or a number dims auto writes (a wall-thickness figure, an R or φ call-out, a chain figure) lies over such a symbol or over a room's name or area figure. "Over" means the text's box (its estimated width at its drawn size, turned with it) shares more than 2 % of its area with one of the symbol's drawn shapes, the same threshold at which the label placer moves a label; against a wall, a swing or the floor's edge the box is taken at the width the text can draw, character by character, the wider of Roboto and Helvetica Bold (an estimate covering those two faces, not a promise for every font), not the generous 0.62 of its size per character, since a label stands right up to them in any small room. The placer never moves a label further off its floor than it started, so a name too wide for its room may slide along the room but not out of it. A room's label that does not fit is drawn smaller, down to the furniture-label size (2 mm on a sheet), and wrapped at a space where that helps; one that still does not fit is reported here (an outdoor surface's label is not: this reads rooms only, and it neither shrinks nor wraps). A label pinned off its room is W_ROOM_LABEL_OUTSIDE's report, and a wall or swing under it is not repeated here; a rug is floor finish and does not count. Drafting only: describe(), Plan JSON and the drawing are unchanged by it. A dims auto number lettered on a room floor is not itself a fault: the thickness figure is written beside its wall on the side with floor, and the R and φ call-outs inside the curve they measure, by convention.

Fix. For a room label: give it a clear point with label "…" at (x,y), move the pinned point if it already has one, or move the piece or the door; a name reported at the smallest height needs a shorter name or a wider room, since the drawing does not draw a leader to it. A pinned label keeps its size. For a dims auto number: move the piece or the pinned label clear of it; a wall-thickness figure is lettered on the longest straight wall of its thickness at a run no crossing wall, opening, piece of furniture or stair stands on, so moving the piece off that wall frees one, or use dims auto rooms and state the thickness with a hand dim. There is no machine-applicable fix: where the label or the piece should go is a drafting decision with no unique answer.

arch
paper A4 landscape
scale 1:100
room id=bed at (0,0) size 3250x3000 label "Bedroom 4" at (2400,1900) uses bedroom
furniture bed at (1650,900) size 1500x2000   # lint: the pinned name is printed over the bed

W_AXES_DIFFER ​

warning — The plan's one axes block comes out as different grids on two storeys.

Cause. A multi-storey plan declares axes once, outside the levels, and each storey evaluates the block against its own bindings. A let written inside a level is one of them, so the same label stands at another position on that storey, and keep on axis holds there against that storey's own axis. The drawing shows both grids; the storeys just do not share one.

Fix. Move the let the block reads to the plan, so every storey reads one value. There is no per-storey grid: a storey that really is set out differently is a different plan.

arch
plan "G" {
  axes { x at 0, BAY }
  level 1 { let BAY = 6000 }
  level 2 { let BAY = 7000 }   # warning: axis 2 stands at two positions
}

W_BALCONY_NO_DOOR ​

warning — A balcony with no way onto it.

Cause. An outdoor balcony has no door and no way through a window within one wall thickness of any of its edges, so the drawing shows a slab that cannot be reached. A window counts as well as a door, because a full-height window is a normal way onto a balcony: sill 0 counts, and so does a window with no sill clause, whose 900 mm is only the default. A window whose authored sill is above 0 stops above the floor and does not count; the message then gives the sill. A fixed or tilt window does not count whatever its sill: nobody walks through it.

Fix. Add a door (or a full-height window) on the wall the balcony hangs off — the usual fix — or move the balcony to the facade that already has one.

arch
outdoor balcony at (2000,7200) size 4000x1600   # warning: no opening within reach

W_BATH_VIA_BEDROOM ​

warning — Bathroom is reachable only through a bedroom.

Cause. Every door path from the entrance to this bathroom/WC passes through a bedroom, and no other bathroom/WC on the same storey is reachable from the entrance without passing through one. A private en-suite is fine — and is not flagged — once another bathroom or WC on the same storey is reached without passing through a bedroom.

Fix. Connect it to a hall or living space — or, if it is an en-suite, add a second bathroom or WC on the same storey that is reached without passing through a bedroom.

arch
door id=d_bath at (5200,4000) width 800 wall partition   # lint: bath only off the bedroom

W_BEDROOM_NO_WINDOW ​

warning — Bedroom has no window.

Cause. A room labelled as a bedroom has no window on its perimeter (natural light / egress).

Fix. Add a window on an exterior wall of the room.

arch
room at (0,0) size 3000x4000 label "Bedroom"   # lint: no window

W_BED_UNDERSIZED ​

warning — A bed is drawn smaller than the smallest standard bed.

Cause. A bed, double_bed or bunk_bed is drawn shorter than bedMinLengthMm along its longer side (1900 mm by default) or narrower than bedMinWidthMm across its shorter side (750 mm by default). The defaults are the smallest standard UK bed, the small single of 75 × 190 cm, whose length every standard UK size below a king shares (Which?, UK mattress sizes: bed and mattress size guide, 2026: a consumer magazine, not a standard). They are mattress sizes, so a real bed's frame is at least that. The usual case is a bed cut short to clear another piece, or a piece that is not a bed (an examination couch) drawn as one. The longer side is read as the length whichever way size is written; a bed lying across its own length is W_FOOTPRINT_TRANSPOSED. A crib or cot is short by design and is never judged. Set either figure to null to turn its finding off, or to another value for another market.

Fix. Draw the bed at least the length and width the warning quotes, and move whatever it was cut short to clear. There is no machine-applicable fix: lengthening a bed moves it into its neighbours. A piece that is not a bed has no catalogue family yet; the warning stands until it does.

arch
room id=b at (0,0) size 3000x3000 label "Bedroom"
furniture bed at (200,200) size 900x1500   # lint: 1500 mm long, 400 mm under the 1900 mm of a UK single

W_BOUNDARY_NO_WALL ​

warning — Two rooms meet with no wall between them.

Cause. Two rooms share an edge run, and a stretch of it longer than a doorway (maxBoundaryGapMm, 900 mm by default) has no wall, door or cased opening on it. The run is read off the two rooms' own shapes: a pair of parallel edges within tolMm of each other, with one room's floor on each side just past them; pieces of one line that meet are one run, so a vertex on a ring cannot split a gap. A straight wall stands on the run when its BODY (its centreline ± half its thickness, plus 50 mm) meets the gap between the two room edges, so a partition a room's depth inside one room is not the boundary, and a thick wall with a face on the line is; a wall body crossing the run splits it; a curved wall's chord backs no straight run. A fixed counter (counter, bar_counter, island) counts only where it straddles the line, and closes an open stretch only when what it leaves open there totals no more than a doorway. Counters and wall stubs are judged differently on purpose: a counter is a declared servery, so a partial one (two counters leaving more than a doorway open in all) still warns, while wall stubs are a real boundary and only the longest stretch they leave is compared with the doorway. Two rooms whose uses (their uses, else their labels) are each kitchen, dining or living are an open-plan pair and are never reported. Why: without a wall the two rooms are one space that anyone walks through, but the plan does not say how they join, so the access graph, the privacy rules and every enclosure check read them as walled apart. A run with no wall at all reads "have no wall between them"; a partial one "the boundary … is open for N mm", and the message says no door or opening joins them only when none stands on the run. Rooms are named by label; the ids are in the hints.

Fix. Draw the missing partition along the run (the hint quotes a wall partition statement over the open stretch) and put a door in it if the rooms connect. If they are one space by design, draw that wall with a cased opening across the gap so the plan says how they join. Accept it only if something the plan does not draw closes the boundary (a fixed screen, a balustrade, a level change). There is no machine fix.

arch
wall exterior thickness 200 { (0,0) (6000,0) (6000,7000) (0,7000) close }
room at (0,0) size 6000x4000 label "Living" uses living
room at (0,4000) size 6000x3000 label "Bedroom" uses bedroom   # lint: no wall on y 4000

W_CIRCUITOUS_PATH ​

warning — A room is reached by a very roundabout path.

Cause. The walking distance to a room from its entrance — the one nearest it by walk, which the message names by the rooms it joins (the id is in the hint) — is many times the straight-line distance from that same entrance: the room is reachable but only by a circuitous route (e.g. all the way around the plan). The ratio describes the walk walkDistanceMm reports, not the least ratio over every entrance, so a room walked from a door behind its back can trip it even when another door faces it. A coarse circulation fact (ADR 0008); the default ratio is generous so a normal tucked-away room does not trip it.

Fix. Add a more direct connection — a door or a hall — so the room is not reached the long way round.

arch
room id=bed at (0,0) size 3000x3000 label "Bed"   # only door is on the far side, forcing a long detour

W_CJK_FONT_MISSING ​

warning — PDF/PNG text has CJK characters, but the optional CJK font package is not installed.

Cause. PDF and PNG draw text with an embedded font so the output does not depend on the host. The bundled Roboto has no Chinese, Japanese or Korean glyphs; those come from the optional @chanmeng666/archlang-font-cjk package, which npm installs by default but which is absent here (e.g. --omit=optional). The file still renders; the CJK characters come out as empty boxes.

Fix. Install the font package (npm install @chanmeng666/archlang-font-cjk), or render to SVG, which uses the viewer's fonts.

arch
room at (0,0) size 4000x3000 label "厨房"   # -f pdf / -f png warns when the CJK font package is absent

W_CLEAR_HEIGHT_MISMATCH ​

warning — A storey's written clear height disagrees with the one its heights give.

Cause. A level … clear <mm> is reported as written. The same storey's height less the slab the storey above writes gives a second value, and the two differ by 0.001 mm or more (the precision the language prints a number in), so one of the three numbers is likely wrong.

Fix. Correct the clear, the storey's height or the upper storey's slab, or drop the clear and let describe() derive it.

arch
level 1 height 3000 clear 2400 { }
  level 2 slab 300 { }   # warning: 3000 - 300 = 2700

W_CONNECTOR_AMBIGUOUS ​

warning — A door or cased opening does not join two rooms cleanly.

Cause. The access graph reads which two spaces a connector joins off the faces of its host wall. This one either cannot be read at all (three or more rooms meet at its point and a face probe lands on a room boundary, or in no room behind an interior wall, so the edge is ambiguous and joins nothing), or one face of its clear span covers more than one room (straddles, typically a partition meeting the host inside the doorway), so the rooms it opens into are a guess. A straddle counts only when at least two rooms each cover max(minStraddleCoverMm, host thickness × junctionNibThicknessRatio) of that face (100 mm by default), net of the body of the wall meeting the host there: a smaller sliver is a jamb set against the meeting wall, which W_OPENING_AT_JUNCTION reports alone. The message names the rooms on each side by label, with how much of the span each covers; the ids are in the hints. Why: a doorway joins exactly two spaces; when one side spans two rooms, describe()'s between, reachability and the circulation walk all rest on a reading the plan does not support. A connector at a wall junction usually also raises W_OPENING_AT_JUNCTION: that warning is about the wall in the opening, this one about which rooms it serves.

Fix. Move the connector so each side lies in one room. The hints quote each direction with a checked position (each side in one of the rooms it touches now, no straddle, no room left unreachable, the junction nib and mullions kept), the two spaces it then opens between, and its source clause. Accept it only if the rooms it spans are one open space with no wall between them, so the doorway serves both. There is no machine-applicable fix.

arch
wall id=shell exterior thickness 200 { (0,0) (8000,0) (8000,5000) (0,5000) close }
wall partition thickness 100 { (4000,0) (4000,5000) }
room at (0,0) size 4000x5000
room at (4000,0) size 4000x5000
door on shell at 4000 width 900   # lint: its inner side spans both rooms

W_DIAGNOSTIC_LIMIT ​

warning — More than 500 diagnostics, all warnings; further diagnostics were not collected.

Cause. One compile reports at most 500 diagnostics (E_DIAGNOSTIC_LIMIT explains the cap). When none of them is an error, neither those kept nor those dropped, the limit is this warning instead: the plan still draws, lints and describes, and only the report is cut short.

Fix. Fix the first warnings reported (a flood of them usually has one cause, such as a line repeated hundreds of times) and compile again.

arch
room at (0,0) size 3000x3000
accTitle "a"
accTitle "a"   # … 600 such lines: 500 W_DUP_ACC_METADATA, then W_DIAGNOSTIC_LIMIT; the room still draws

W_DIM_INSIDE ​

warning — A hand-written dimension line lands inside the building.

Cause. A dim's line is drawn at offset along the LEFT normal of from→to, so the ENDPOINT ORDER chooses which side it lands on. This dimension's line (not its witness lines) falls inside the room-extents bounding box, where it crosses room labels, furniture and poché instead of reading in the page margin. Almost always the endpoints are simply the wrong way round. Advisory: an interior dimension you actually want (a clear width inside a room) is legitimate — reverse it or leave the warning.

Fix. Swap the two endpoints — the machine-applicable fix does it for you, but only when the swap actually moves the line out. Swapping mirrors the line across the segment being measured (negating the offset does the same thing), so it reaches the outside only when that segment is at the building's edge. A dimension whose measured run cuts THROUGH the plan reads inside either way and carries no automatic fix: measure along a facade instead, or raise the offset until the line clears the building.

arch
dim (0,6000)->(7000,6000) offset -500 text "7000"   # warning: the -500 offset pulls the line back inside

W_DIM_NO_WALL ​

warning — A dim faces/dim clear endpoint has no wall to measure to.

Cause. The endpoint-projection forms push each endpoint onto the FACE of the wall the measurement runs into, found as the nearest wall segment perpendicular to the dimension's own direction. One (or both) endpoints has no such wall within tolerance — the point is off the wall centerline, the wall is angled, or the plan has no wall there — so there is no face to project onto and the written point is measured as-is.

Fix. Put the endpoint on the centerline of the wall the dimension runs into (the room-rectangle corner coordinate), or drop the faces/clear keyword and write the face coordinate yourself.

arch
wall exterior thickness 200 { (0,0) (5000,0) (5000,4000) (0,4000) close }
dim faces (0,9000)->(5000,9000) offset 600   # warning: nothing to project onto at y9000

W_DIM_OVERLAP ​

warning — Two hand-written dimensions are drawn on top of each other.

Cause. Two dim statements measuring PARALLEL runs land in the same chain tier: their drawn bands — the dimension line, its station ticks, and the length text riding above the line — intersect, so on paper one reads through the other. ArchLang never re-staggers a hand-written dimension (the author's offset IS the tier control — ADR 0005, no invisible architect), so the collision is reported rather than silently laid out. Adjacent members of one chain that merely SHARE a station tick are not a collision and never warn, and two dims generated by one for are skipped — they share an offset expression, so no bump could separate them.

Fix. Move one of them out a tier: raise the magnitude of its offset (keeping its sign, which is the side it reads on). The machine-applicable fix computes the smallest whole number of chain tiers that clears the other dimension's line and text.

arch
dim (0,-100)->(7000,-100) offset -300 text "7000"
dim (0,-100)->(4000,-100) offset -300 text "4000"   # warning: both in the same tier

W_DIM_TEXT_MISMATCH ​

warning — A hand-written dimension's number is not the span it measures.

Cause. A dim … text "…" whose text reads as a length states a number that its own line contradicts. Read as a length: the whole text is digits with an optional decimal part and an optional unit mm, cm or m (a bare number is millimetres; thousands may be comma-grouped in threes when no unit is written; one to three digits with exactly three decimals and no unit, such as 4.000 or 12.500, is not read, since it may be a European thousands dot or metres without the m, while 4.000 m is read), so 4000, 4,000, 4000mm, 3.5 m and 350cm are read and VARIES, EQ, R9000, 2300 clear or ~4000 are not checked at all. The rounding rule: the text is read at its own written precision, and it agrees with the line when the span, rounded to the last digit written, is that number: 2 × |span − written| ≤ one unit of the last digit, decided exactly on the 0.001 mm lattice. So 4000 covers 3999.5–4000.5 mm, 3.5 m covers 3450–3550 mm and 4 m covers 3500–4500 mm. A text copied from what the drawing prints when no text is given (the span to two decimals) therefore never warns, nor does any coarser rounding of it. The span is the one the line draws: after faces/clear moved its endpoints onto the walls, and the radius or diameter for a curve call-out. A number written finer than the lattice (more than three decimals in mm) is not checked. dims auto chains letter their own spans and are never judged.

Fix. Decide which side is wrong. If the number is right, the endpoints are not on what it dimensions (a common cause is endpoints rounded to the grid off a jamb on an angled or curved wall): move them so they span the number. If the line is right, letter it with the measured span, or drop the text clause and the drawing prints the measured length. A fix rewrites a literal text to the span in the text's own unit and precision; it is maybe-incorrect (archlang fix --unsafe), because rewriting the text of a line drawn between the wrong points would bake the error in. No fix is offered for an interpolated text or a statement that draws more than one dimension.

arch
dim (0,-100)->(4000,-100) offset -300 text "4500"   # lint: the line spans 4000 mm

W_DOORWAY_BLOCKED ​

warning — A doorway's landing is blocked.

Cause. A piece of furniture/fixture sits in the clear landing space immediately on either side of a door or a leaf-less (cased) opening, so you cannot pass through the doorway even when the leaf is open. The landing runs jamb to jamb and doorwayLandingMm deep (300 mm; 450 under accessibility-advisory) past each FACE of the wall, where a person standing in the doorway stands (the datum W_LEAF_ACROSS_DOORWAY reads too). This is the approach path, distinct from the leaf's swing arc (W_SWING_OBSTRUCTED). The warning states the landing depth required, the depth actually left, and the shortfall; a cased opening is named by the rooms it joins. A cased opening up to 1200 mm wide (a doorway's width) is judged as a door is: any piece in its landing blocks it. A wider one, an open-plan join or the full shared edge an open between derives, is blocked only when the pieces in its landing leave no 1200 mm stretch of it clear (along the wall, jamb to jamb); its warning states the approach depth and the stretch left. A counter across a cased opening is a servery hatch and is not read, and a garage door is a vehicle door, not a pedestrian doorway: the car in front of it is not read.

Fix. Move the obstruction clear of the opening by the shortfall the warning quotes (archlang repair computes the smallest clearing shift), shrink it by that much on the axis facing the doorway, or move the door or opening along its wall so its landing misses it (an opening open between derives has the rooms' shared edge as its span, so there the piece moves).

arch
door at (6000,3000) width 800
furniture wc at (5800,3050) size 700x400   # lint: WC blocks the doorway

W_DOOR_CLEARANCE ​

warning — Door is narrower than the minimum clear width.

Cause. A door's width is below the configured minimum passable width (default 700 mm). A double door is judged by one leaf, half its width: a person passes through one active leaf (ADA 2010 Standards 404.2.3), so double width 1000 is judged as a 500 mm door. A glazed_sliding door is judged the same way: one panel of two moves.

Fix. Widen the door to at least the minimum clear width.

arch
door at (0,0) width 500 wall exterior   # lint: under 700 mm

W_DOOR_NEAR_CORNER ​

warning — A door leaves less wall between its jamb and a corner than the wall is thick.

Cause. The nib of wall between a door's jamb and the corner its host wall turns at is shorter, along the run, than the wall is thick across it. The drawing is correct — the nib IS drawn, and mitred into the neighbouring run — so this is a fact about the plan, not a rendering fault; it was first mis-diagnosed as one during the v1.30 joinery review before it was measured. At page scale such a sliver stops reading as wall continuing to the corner and reads as a chamfer on the corner, and its returned face has nowhere to carry the frame and architrave a jamb is fixed to. The warning states the nib required, the nib measured, and the shortfall. The threshold is the wall's own thickness (× minCornerNibRatio in the lint ruleset, default 1.0): it is the only length in the drawing intrinsic to the wall being measured, so the rule needs no new absolute constant and scales by itself — a 100 mm partition asks for 100 mm, a 400 mm shell for 400 — and it is the dimension the defect is about. Unlike W_POCKET_RUN the threshold is one-limbed, because both sides of the comparison belong to the same wall and there is no narrow-door pathology to guard against. What counts as a corner: the host segment's run must END at that point and the wall must go somewhere else from it, so a wall's free end, a redundant collinear vertex, a partition teeing into a wall that carries straight past it, and a TANGENT arc/straight hand-over are all excluded — nothing is mitred at any of them. On a curve the nib is an arc length, not a chord, measured at the wall's centreline radius from the radial jambs, in closed form (nothing tessellates, so the number cannot move with a facet count). Kind-independent: a jamb is a jamb whether the leaf swings, slides, folds or parks overhead. Scoped to doors deliberately — a window nib is a different detail with no frame to hang.

Fix. Move the door further from the corner by the shortfall the warning quotes (on <wall> at <pos> measures along the run, so the position is the one number to change), or lengthen the wall past the door so the corner moves away from the jamb instead. There is no machine-applicable fix: every remedy rewrites a number the author chose. Narrowing the leaf would also close the gap and is deliberately NOT offered — rewriting the width you asked for to satisfy a checker is the constraint-laundering pattern this project rules out, and it heads toward W_DOOR_CLEARANCE.

arch
wall w1 thickness 250 { (0,0) (5000,0) (5000,4000) }
door on w1 at 4400 width 900   # lint: a 150 mm nib on a 250 mm wall

W_DOOR_OFF_WALL ​

warning — Door does not lie on any wall.

Cause. A door's position is not within tolerance of any wall segment, so it has no host.

Fix. Move the door onto a wall, or name its host with wall <id|category>. The diagnostic points at the nearest wall.

arch
door at (9999,9999) width 900   # warning: not on a wall

W_DRAWING_OVERFLOW ​

warning — The whole drawing does not fit the declared paper, even though the building does.

Cause. Same ruler as W_SCALE_OVERFLOW, different subject. That rule measures the BUILDING's outer-face extent against the sheet minus its margins, dimension bands, title block and margin tables. This one measures everything the plan draws against that same area — and a plan draws more than its building: outdoor ground, a fence, a site … boundary, a roof eaves line, a fixture set down outside the shell. None of that is in the building's extent, so none of it can make the fit test say no, and sheet.fits stays true while the sheet cannot hold the drawing. The two are mutually exclusive by design: the drawn extent CONTAINS the building, so when the building itself overflows you get W_SCALE_OVERFLOW instead and this would only repeat it. The warning quotes the whole drawing's extent, the drawing area it is measured against, and the overflow on each axis — a millimetre of eaves and a 40 m yard want different answers. It does not claim the page grows: nothing is clipped, the reserved sheet margin gives way first, and only a large overrun pushes the page past the paper. describe().sheet.drawing_fits is this fact; scene.sheet.page is the page that actually came out. Advisory: a site plan you intend to issue oversize, trim or tile is legitimate.

Fix. Move up a paper size or pick a coarser scale — both also shrink the building, so check the drawing still reads — or draw less ground. There is deliberately NO machine fix: every remedy rewrites a decision the author made, and unlike a building overflow there is no defensible default, since re-scaling shrinks a building that was already sized correctly for the sheet (ADR 0005).

arch
paper A4 portrait
scale 1:100
outdoor lawn at (0,3500) size 4000x40000 label "Yard"   # warning on a 4 m cottage: the yard is 40 m long

W_DUP_ACC_METADATA ​

warning — Duplicate accTitle/accDescr.

Cause. A plan declares accTitle (or accDescr) more than once. Only one of each applies, so the last value silently wins.

Fix. Keep a single accTitle and a single accDescr; delete the extra line(s).

arch
accTitle "A"
accTitle "B"   # warning: "A" is discarded

W_EMPTY_PLAN ​

warning — Empty plan.

Cause. The plan resolved to no drawable elements.

Fix. Add at least one element (wall, room, …).

arch
plan "Empty" { units mm }   # warning

W_ENTRANCE_INTO_PRIVATE ​

warning — The way in from outside opens into a bedroom, bathroom or WC.

Cause. Every door from outside on this storey opens into a bedroom, bathroom or WC (ResPlan: 0 of 16,317 front doors do). Only real ways in count: a door onto an outdoor balcony does not, and a storey reached only by a stair or lift is not checked. When any door from outside opens into another room (a hall, living space, kitchen, or a room with no classified use), that is the front door, and a bedroom's own garden door is not reported. A front door into a kitchen is not reported: whether it is acceptable depends on the culture, so a profile may add it. A room that is also a living space (a bedsit with uses bedroom living) is not private, and a storey whose classified rooms are all private (a bedroom drawn by itself, a fragment of a dwelling) is not checked. The rooms behind such a front door are not also reported by W_ROOM_VIA_PRIVATE: one fault, one warning. A plan that reads as non-residential (a café, restaurant or clinic label; or, with no bedroom or living room, a room whose use is office or a shop, lobby, reception, waiting or meeting label) is not checked, and the lint coverage report says so (non-dwelling); the residential-basic profile checks every plan.

Fix. Move the front door onto a hall, living space or kitchen with enough exterior wall for a 1000 mm door and its nibs (the hints name each such room, measured on centrelines, with the depth the private room is then at), or put an entrance hall or lobby at least 1200 mm clear (GB 50096-2011 5.7.1, as advice) between the door and the room. There is no machine fix: a door is a geometric decision (ADR 0005).

arch
plan "Front door into a bedroom" {
  units mm
  wall exterior thickness 200 { (0,0) (8000,0) (8000,4000) (0,4000) close }
  wall partition thickness 100 { (4000,0) (4000,4000) }
  room at (0,0) size 4000x4000 label "Bedroom"
  room at (4000,0) size 4000x4000 label "Living"
  door at (2000,4000) width 1000 wall exterior   # lint: the only way in opens into the bedroom
  door at (4000,2000) width 900 wall partition
}

W_EXIT_APPROACH_BLOCKED ​

warning — Furniture stands in the clear floor inside an exterior exit.

Cause. A door from outside (a way in from the ground: not a garage door, not a door onto an outdoor balcony) needs clear floor inside it, in front of the doorway and over its full width, so the way out is not narrowed where people leave: exitApproachMm deep from the wall's inside face, 914 mm by default (the International Residential Code R311.3's 36 in landing on each side of an exterior door, as wide as the door; recorded from a state's copy of the code text). Under accessibility-advisory the depth is the 2010 ADA Standards' front approach (Table 404.2.4.1): 1220 mm where the door swings out (the inside is its push side) and 1525 mm where it swings in (exitApproachPullMm); a sliding, folding or pocket door takes the larger. A piece counts when its footprint enters that floor; the warning fires when the longest stretch of the doorway's span left clear is less than the door's width, and names the first piece beyond the door's own landing. A piece inside the landing (doorwayLandingMm, 300 mm; 450 under the profile) is W_DOORWAY_BLOCKED's report and is not named here. A door on an angled or curved wall is not measured. Set exitApproachMm: null to turn it off.

Fix. Move the piece further from the wall than the depth the warning quotes, or slide it along the wall clear of the doorway's span, or move the door. There is no machine-applicable fix: which one moves is the author's choice, and repair does not move a piece for it.

arch
wall id=w exterior thickness 200 { (0,0) (6000,0) (6000,4000) (0,4000) close }
room id=hall at (0,0) size 6000x4000 label "Hall" uses entry
door at (3000,4000) width 1200 wall w swing outward
furniture sofa at (1200,2600) size 1800x900   # lint: 400 mm inside the exit, 600 mm of its 1200 mm clear

W_EXTERIOR_RING_OPEN ​

warning — Exterior walls that stand on a room close nothing: the shell has a gap.

Cause. The storey's exterior walls are read end by end, whatever else closes on the storey. An end is a shell's when nothing meets it, its wall is no lower than a door's head (2100 mm), and the wall's last stretch, up to the first exterior wall that meets it, runs along the edge of a room with floor outside every exterior ring; a closed ring standing inside the room encloses the ring's own floor, not the room. So a closed annex built off the shell (a porch, a garage) or a closed building beside it hides nothing: describe gives that ring's gross internal area and lists the rooms the figure leaves out in gross_internal_area_leaves_out. Where no ring closes at all it omits the figure (no-closed-exterior-ring). The message gives each gap's two ends, in mm between their centrelines; the drawing shows it narrower by the walls' caps and bodies. A wall of any other category that meets an end closes it. A last stretch on no such room is a garden or boundary wall, or a fin; a wall lower than a door's head is a parapet; a room with no uses whose label or id ends in a word for a place outdoors (a terrace, a yard, a carport) has no shell; runs that all lie on one straight line are no ring; and a demolish wall closes nothing. An open-sided structure with an authored uses, such as a carport with uses garage, is read as a room and fires: drop the uses or give its walls another category. A gap W_WALL_END_SHORT reports (up to wallGapMm) is left to that rule. A storey with no room or no exterior wall is not judged.

Fix. Draw the missing run of exterior wall, or carry one wall on to meet the other. If the gap is a way in, draw the wall across it and put a door or an opening in that wall. If the run is not the building's shell, give it another category. There is no machine-applicable fix: which wall moves is a design decision.

arch
wall id=w exterior thickness 200 { (0,0) (6000,0) (6000,4000) (0,4000) (0,1000) }   # lint: 1000 mm open on the line x 0
room id=a at (0,0) size 6000x4000 label "A" uses living
door on w at 3000 width 900 swing inward

W_FIXTURE_BACK_TO_ROOM ​

warning — A fixture stands against a wall but faces the wrong way.

Cause. A fixture whose symbol has a distinct back — a plumbed one (a WC's cistern, a basin's tap, a counter's nosing) or a piece of furniture that simply has a front (a bed's headboard, a wardrobe's door line, a bookshelf's open face) — is touching a wall, but its back is turned to the room instead of to that wall: the drawing shows the WC's tank, or the headboard, sticking into the floor space. Position right, quarter-turn wrong: fixture symbols are drawn with their back on the TOP edge, so rotate is what aims them (0 = back to the north, 90 = east, 180 = south, 270 = west). A rotation-symmetric symbol (a shower tray, a round stool) never trips this, nor does arranged seating whose back to the room is a legitimate layout. A fixture that touches no wall at all is W_FIXTURE_FLOATING instead — and only where the piece genuinely needs one for services, which furniture does not. A piece that touches a wall only with a side or an end its catalogued footprint rules out as a back, its drawn front off the wall too (a bed lengthwise along a wall, a wardrobe end-on to one), is a layout, not a back to the room, and is not judged; a piece whose front is on a wall is, and so is a plumbed or vented fixture or a wall-mounted one (the catalogue's wallMounted families: ev_charger, fireplace, radiator, tv, towel_rail and whiteboard), because its back must reach any wall it touches.

Fix. Get the plan size right first, then the rotate. size is W×H in plan axes, and a fixture's catalogued depth runs AWAY from the wall it backs onto, so the size decides which walls it can back onto: a WC (400 along × 700 deep) is size 400x700 against a north or south wall and size 700x400 against an east or west one. With the size right, add the rotate that puts the back on the walled edge (0 = back to the north, 90 = east, 180 = south, 270 = west); the machine-applicable fix inserts it when exactly one walled edge fits the size. Or let it be derived: in <room> anchor <edge> derives the rotation once the size fits that edge, and against wall <id> takes size as along×depth and derives both. A rotate on a size the wrong way round silences this warning but draws the symbol squashed. A square size, or a family whose catalogued footprint is square (counter, stove), can back onto any edge.

arch
furniture wc at (5200,5200) size 400x700   # warning: south wall behind it, cistern facing north

W_FIXTURE_FLOATING ​

warning — A plumbing/kitchen fixture is not against a wall.

Cause. A fixture that conventionally needs a wall behind it (WC, basin, shower, sink, counter, stove, fridge…) sits with no wall backing any edge — it appears to float in the middle of the room.

Fix. Move the fixture so one edge is against a wall (supply/waste/venting runs in the wall), or remove it.

arch
furniture wc at (3000,3000) size 400x700   # lint: no wall behind it

W_FIXTURE_WRONG_ROOM ​

warning — Fixture is not inside its declared room.

Cause. A furniture item declared in <roomId> has part of its FOOTPRINT off that room's floor, so it is drawn partly (or mostly) in the wrong space. A 100 mm overhang is allowed on every side, because a room's outline runs down wall centrelines and a piece pushed against a room edge legitimately shares that band. Measured against the room's true floor, so a polygon or circle room is judged by its own shape and not by a bounding box.

Fix. Move the fixture inside the named room, or correct the in <roomId>.

arch
furniture wc at (100,100) size 400x700 in bath   # lint: not inside "bath"

W_FLOOR_UNASSIGNED ​

warning — Walled floor is in no room.

Cause. A closed region of floor the walls enclose (a walled face: a hole of the union of every wall's body, doors and windows not cut, so a room with a door is still closed) is covered by rooms less than minFaceCoverRatio (95 % by default), leaving at least minUnassignedM2 (0.5 m²) in no room. Floor under an outdoor surface, a void or a stair, lift or escalator counts as assigned. Every area is measured in closed form from the shapes, curved walls and circle rooms included (a partition that stops at the chord of a bowed facade leaves the bow in no room; a round room in a square walled box leaves the corners). A sealed face, with no door, cased opening or window into it and no room on its empty floor, is not reported: it is a duct or a pocket behind a curved wall, not floor anyone forgot (a forgotten room has a window or a door). A storey past any of the face budgets (counts charged before the work: wall contacts, MAX_ENCLOSURE_FACES (400) faces, loops per grid cell, and the curves, rooms and point tests its measurements would read) is not measured and gets no warning. Why: floor inside the walls that no room claims has no use, no area in the schedule and no route the plan can check. The message gives the area in no room, the face's area and the share covered, and names the rooms that border the empty floor (or those behind its walls).

Fix. Extend the bordering rooms over the empty floor, draw a room on it, or move the walls in to the rooms' edges. If the floor is open ground (a courtyard, a light well) draw it as an outdoor surface; if it is a shaft, draw its stair or lift. Accept it if the floor is a sealed void, and then draw it as a void so the plan says so. There is no machine fix.

arch
wall exterior thickness 200 { (0,0) (3800,0) (3800,2400) (0,2400) close }
room circle at (2500,1200) radius 1200 label "Snug" uses living   # lint: the corners are in no room

W_FOOTPRINT_TRANSPOSED ​

warning — A piece is drawn turned a quarter: its long side is on the wrong axis.

Cause. A piece's symbol is drawn back-on-top in a frame size gives (its two sides swapped under rotate 90 or 270; along × depth for against), and this frame has its long side where the catalogue footprint has its short one, by at least 5:4 (4 × long ≥ 5 × short, exact). A sofa_l (2600 × 1600, wider than deep) written size 900x2400 with no rotate draws a thin L one seat deep, its long side become its depth; a bed (1500 × 2000, deeper than wide) written size 1900x700 draws a bed lying across its own length, its long side along its back. Judged only for the families that come in one shape, which the catalogue marks fixedAspect: wc, bathtub, bed, sofa_l, bidet, mirror, bar_counter, bunk_bed, crib, loveseat, tv, treadmill, console_table, towel_rail, slide, whiteboard and hospital_bed. A chaise longue is not: its back is at a short end or along a long side, by model. A family sold in both shapes (a wardrobe, a filing cabinet, a locker, a shed, a sink, a desk) is never judged, nor is a piece with no catalogued footprint (a plain sofa).

Fix. Swap the two sides of size, or keep it and turn the symbol a quarter (add 90 to rotate or take 90 from it, whichever puts its back where it belongs; an against piece takes its turn from the wall, so only the swap applies there, and a piece meant side-on to a wall, a crib or a treadmill with its long side along it, is placed at (x,y) or in <room> anchor <edge> flush with a rotate instead; the hint gives the numbers). When size is one literal (900x2400) and the swapped size, as drawn on the plan's grid, is exactly the catalogue footprint, a fix swaps it; it is maybe-incorrect (archlang fix --unsafe), because the swap changes which floor the piece covers.

arch
room id=lounge at (0,0) size 5000x4000 label "Lounge"
furniture sofa_l at (500,500) size 900x2400   # lint: a sofa_l is 2600 wide and 1600 deep; this one is drawn 900 wide and 2400 deep

W_FURNITURE_ON_STAIR ​

warning — Furniture stands on a stair or on the landing it owes.

Cause. A piece's footprint overlaps the part of a stair a person cannot stand under, or the landing beyond the end the flight is entered from on this storey: as wide as the flight, as deep as the flight is wide (at least 1200 mm in a building other than a dwelling), and only as deep as the floor stands clear, as W_STAIR_NO_LANDING measures it. Approved Document K (2013) 1.21b keeps a landing clear of permanent obstructions. On a storey the flight rises from, that part is the run with less than 2 m of headroom, read against the storey height (3000 mm when the plan authors none), so a wardrobe under the high end of a flight is not reported. A block stair rises over its flights alone, so a landing with less than 2 m beneath it is read whole. A stairwell, where a flight comes down or arrives from below, is a hole: all of its footprint is read. finish keeps off the whole footprint either way. On the landing a rug, which is walked on, and a wall cabinet, which hangs above it, are not. A landing a curved wall stands near is not judged, and an elevator or escalator is not read here (W_FURNITURE_ON_VOID reads them).

Fix. Move or resize the piece so it clears the span the hint quotes, or move the stair. There is no machine-applicable fix: where the piece goes instead is a design decision.

arch
room id=liv at (0,0) size 5000x4000 label "Living"
stair id=s1 at (3000,500) size 1000x3000 dir up
furniture sofa at (2500,1000) size 900x2000 rotate 90   # lint: stands on the flight

W_FURNITURE_ON_VOID ​

warning — Furniture stands on a void, a lift shaft or an escalator.

Cause. A piece's footprint covers more than 1 mm both ways of a void of its own storey (a hole in that floor: a stairwell, an atrium, a double-height room), an elevator's shaft or an escalator's footprint. There is no floor there to stand on, so whatever stands there is read, a rug as much as a wardrobe. A void on the storey above is headroom, not a hole in this floor, and is not read. A stair itself is not read here (its flights and landings are W_FURNITURE_ON_STAIR's), but a void is read whatever else stands on it, so a stairwell drawn as a stair and a void on one rectangle can raise both codes for one piece. finish keeps every piece off the same rectangles. One warning per piece and void or shaft.

Fix. Move or resize the piece so it clears the span the hint quotes, or move the void, lift or escalator. There is no machine-applicable fix: where the piece goes instead is a design decision.

arch
room id=liv at (0,0) size 6000x5000 label "Living"
void id=v at (0,0) size 3000x2500
furniture sofa at (1000,500) size 2000x900   # lint: stands on the void

W_FURNITURE_OVERLAP ​

warning — Two pieces of furniture overlap.

Cause. Two furniture/fixture rectangles occupy the same floor area, so they would physically collide — usually a coordinate or size mistake.

Fix. Move or resize one so they no longer intersect; leave a walkway between them.

arch
furniture sofa at (300,300) size 2000x900
furniture bed  at (1000,500) size 1500x2000   # lint: overlaps the sofa

W_FURNITURE_OVER_WINDOW ​

warning — A tall unit stands in front of a window, or a low piece against a floor-length one.

Cause. A tall unit (the catalogue's tall families: fridge, wardrobe, bookshelf, locker, pantry and server_rack) has a footprint that overlaps a window's span on its straight host wall, within the ruleset's fixtureWallTolMm (300 mm) of the wall's centreline on either side: it stands against the wall, across the glass, blocking the window's light and view. Measured from the drawn footprint and the window's span, never from bounding boxes. A window whose sill is at or above 2100 mm (a door head) is a high window over full-height storage and is not judged; a window on a curved wall is not measured (a curved-window-host coverage skip). A window with sill 0 has no sill to stand a low unit under, so any other piece at the cut plane warns too when it overlaps that span and stands on the wall's face (not a rug or an overhead piece, and not a cooking surface, which is W_HOB_UNDER_WINDOW's). A window with no sill clause takes the 900 mm default and is not read this way.

Fix. Slide the unit along the wall clear of the window's span (the hint gives the shorter slide), move the window, or stand a unit no higher than the sill there instead: a worktop, a chest of drawers or a washer goes under a window, a fridge or a wardrobe beside it.

arch
wall id=w exterior thickness 200 { (0,0) (4000,0) }
window at (2000,0) width 1200 wall w
furniture fridge at (1700,100) size 600x650   # lint: in front of 600 mm of the window

W_FURNITURE_WALL_COLLISION ​

warning — Furniture penetrates a wall.

Cause. A furniture/fixture rectangle intrudes into a wall's solid (it crosses the wall's thickness band rather than sitting flush against its face), so it would physically pass through the wall — a coordinate or size mistake. A piece merely touching the wall face is fine. Measured in the wall's own frame, so a wall at any angle is checked; a CURVED wall edge (arc) is not checked at all.

Fix. The message names the wall the piece crosses by its kind and the line it runs on, and how far into its thickness; the hint names it by id. For a piece placed against wall <id>, offset is the distance along that wall to the piece's CENTRE, not its edge (omitted, it is the segment's midpoint): a 600 mm fridge at offset 4100 spans 3800–4400 along the wall, so it crosses a 100 mm partition standing at 4000; the hint gives the offset that clears it. Otherwise move or resize the piece so it sits fully inside the room, against the wall face rather than through it, or place it with against wall <id> or in <room> anchor <edge> flush.

arch
furniture sofa at (350,2300) size 2000x900   # lint: crosses the partition at y3000

W_FURN_CLEARANCE ​

warning — A fixture's use-space is blocked.

Cause. The activity clearance directly in front of a fixture (WC, basin, sink, counter, stove…) is intruded by a free-standing piece of furniture, so the fixture can't be used comfortably. Other plumbing/kitchen fixtures are ignored, so a compact bathroom/kitchen run does not trip this. The warning states the catalogued clearance, the depth actually left, and the shortfall.

Fix. Move or shrink the obstructing furniture by the shortfall the warning quotes, turn the fixture so its front faces clear floor (its back must stay on a wall), or move the fixture to a wall run with the clearance free in front of it.

arch
furniture stove at (0,0) size 600x600
furniture sofa at (0,650) size 2000x900   # lint: sofa blocks the stove front

W_FURN_CLEAR_FRONT ​

warning — A declared clear front is not free.

Cause. The piece declares clear front <mm> (ADR 0029 §4) and something stands inside that depth in front of it: a solid piece of furniture, a wall body, or a hinged door's swing. The warning states the declared depth, the depth measured free and what stands there. Only a piece that declares the zone is judged, never by a catalogue default. An obstacle that only touches the zone at a point or along a line leaves it clear. A catalogued clearance is a floor: a shallower declared clear front does not silence W_FURN_CLEARANCE, and both are measured.

Fix. Move the obstruction or the piece apart by the shortfall the warning quotes, or lower the declared depth if less will do.

arch
furniture wardrobe at (0,0) size 1800x600 clear front 600
furniture bed at (0,900) size 1500x2000   # lint: the bed leaves 300 mm

W_FURN_CLEAR_SIDES ​

warning — A declared clear sides is not free.

Cause. The piece declares clear sides <mm> (ADR 0029 §4): that depth must be free along both edges beside its back (a bed's long sides). A solid piece, a wall body or a door swing stands inside it on at least one side. The warning names the narrower side's free depth.

Fix. Move the obstruction or the piece apart by the shortfall, or declare only the zones the piece needs.

arch
furniture bed at (0,0) size 1500x2000 clear sides 500
furniture wardrobe at (1700,0) size 600x1800   # lint: 200 mm on the right side

W_GARAGE_OPENING_UNDERSIZED ​

warning — A garage's vehicle door is too narrow to drive a car through.

Cause. A rectangular room classified as a garage has a door garage on its perimeter too narrow for the cars drawn in it. One car, or none drawn (measured as one), wants a vehicle door at least 2400 mm wide; two or more cars want one door at least 4200 mm wide, or two doors each at least 2400 mm (a door per bay). The cars are counted as W_GARAGE_TOO_NARROW counts its bays (car fixtures only). The figures are common practice for a sectional or roller door, not a published standard: no citable code source for them was found, and the rule does not pretend to one. It judges the OPENING only; the room's width, which already budgets the room to open a car door on each side of every bay, stays W_GARAGE_TOO_NARROW's, and this adds no second clearance. A garage with no door garage on its perimeter, and a polygon or circle garage, is not judged. It is advisory and has no machine fix: widening a door moves what stands beside it in the wall, a geometric decision the compiler does not make (ADR 0005).

Fix. Widen the vehicle door to the figure the warning quotes, add a second vehicle door for a double garage, park fewer cars in the room, or drop the uses garage tag if the room is not one.

arch
wall id=shell exterior thickness 200 { (0,0) (6400,0) (6400,3800) (0,3800) close }
room id=g at (0,0) size 6400x3800 label "Garage" uses garage
door id=d garage at (0,1900) width 2000 wall shell   # lint: 2000 mm wide, one car wants 2400

W_GARAGE_TOO_NARROW ​

warning — A garage is too narrow, or too shallow, to park in.

Cause. A room classified as a garage (an authored uses garage, or a label the use vocabulary reads as one — "Garage", or the aliases "carport" / "parking") measures less across its short side than the cars in it need: 2700 mm of clear width per bay, which is a body plus the room to open a door on each side. A garage with no car fixture drawn is measured against ONE bay — a room you could not park in does not become sound by having no car in it — and bicycle/motorcycle do not count toward the bay total. The warning states the width required, the width the room actually has, and the shortfall. The rule declines a POLYGON room rather than measuring its bounding box: a box's short side is not a concave floor's clear width, and a measurement taken from a shape's box instead of the shape is a defect class this compiler has shipped before. A second finding judges its DEPTH (plan-soundness PS2.70): a rectangular garage measures less, between the inner faces of the walls on the edge holding its vehicle door and the edge opposite, than garageDepthMm along the line of its door garage: 5000 mm by default, the length of a parking bay or a car port (Buckinghamshire parking guidance 2022, Table 9; Monmouthshire SPG Domestic Garages 2013 ¶21), and 6000 mm under uk-residential-advisory, the clear internal length of a garage (Monmouthshire ¶12 and ¶25, citing Manual for Streets; Buckinghamshire Table 11). The depth asked is the same whatever the bay count. A garage with several vehicle doors is measured along the deepest axis; one with no door garage is not measured and files a no-vehicle-door coverage skip. Set garageDepthMm: null to turn the depth finding off. It is advisory and has no machine fix: widening or lengthening a room moves every wall and opening around it, which is a geometric decision the compiler does not make (ADR 0005).

Fix. Widen the room, or lengthen it along the line of its vehicle door, to the figure the warning quotes, park fewer cars in it, or drop the uses garage tag if the room is not one (a store that happens to be called a garage classifies as one from its label alone — an explicit uses storage overrides that).

arch
room id=g at (0,0) size 2500x6000 label "Garage" uses garage
furniture car at (300,300) size 1800x4600 in g   # lint: 2500 mm across, one bay wants 2700

W_GLYPH_UNSUPPORTED ​

warning — PDF/PNG text has characters no embedded font can draw.

Cause. PDF and PNG draw text with embedded fonts only: Roboto (Latin, Greek, Cyrillic) and the optional CJK face (Chinese, Japanese, Korean). A character outside both — Thai, Arabic, Hebrew, Devanagari, emoji, a rare ideograph — has no glyph. The file still renders; those characters come out as empty boxes.

Fix. Render to SVG, which uses the viewer's fonts, or rewrite the label in a covered script.

arch
room at (0,0) size 4000x3000 label "ห้องครัว"   # -f pdf / -f png warns: Thai has no embedded glyphs

W_GRID_SNAPPED ​

warning — grid moved a written size or door position.

Cause. grid <g> rounds a written value to a multiple of g (under grid 100, size 2750x7000 is drawn 2800 deep). Reported for a rectangle room or furniture size, a wall thickness (walls from rooms too) and a door's at (x,y), with the value as written and as drawn. The snapping is unchanged. Informational: validate ranks it last for next (tier info).

Fix. Write a multiple of the grid, or set a finer grid.

arch
grid 100
room at (0,0) size 2750x3000   # warning: size 2750 x 3000 was snapped to 2800 x 3000

W_HABITABLE_NO_WINDOW ​

warning — A living room, dining room or kitchen has no window.

Cause. A room whose use is living, dining or kitchen (its uses, or its label when it has none: "Living", "Living Room" and "Kitchen / Living" all classify) has no window on any of its walls. A room people live in needs daylight. The window test is the one W_BEDROOM_NO_WINDOW uses, a window centred on the room's own perimeter, which is also how describe().windows[].room attributes a window, so lint and describe agree. A window on a curved wall edge is on no room's straight edge, so it is attributed from the shape instead: to the room whose floor lies one wall thickness behind it, or, for a bay drawn outside a room that stops at the curve's chord, to the room the chord bounds when no wall closes the bay off. Where neither finds a room, describe reports its room as null, and a room bounded by a curved wall edge that carries such a window is skipped rather than reported, because whether that window lights it is not known. A bedroom is never reported by this code (that is W_BEDROOM_NO_WINDOW), and a bath, WC, hall or room with no classified use is never asked. A room whose only such use is kitchen is asked only on a plan that reads as a dwelling: on one that reads as non-residential (a café, restaurant or clinic label; or, with no bedroom or living room, a room whose use is office or a shop, lobby, reception, waiting or meeting label) an office kitchenette has no daylight duty, so it is declared to the lint coverage report (non-dwelling) instead; the residential-basic profile asks it on every plan. The hint names the exterior walls that run along an outside edge of the room (one with no room beyond it), or says that none does.

Fix. Add a window on an exterior wall of the room; the hint names those walls. Accept the warning if the room is lit in a way the plan cannot draw, such as a roof light or a light well. There is no machine fix: where a window goes on a facade is a design decision.

arch
room id=liv at (0,0) size 4000x4000 label "Living"   # lint: no window on its walls

W_HATCH_SCALE ​

warning — Hatch scale must be positive; using 1.

Cause. A wall material scale evaluated to zero or a negative number.

Fix. Use a positive scale.

arch
wall exterior thickness 200 material brick scale 0 { (0,0) (1,0) }

W_HOB_FRIDGE_GAP ​

warning — A fridge or other tall unit stands too close beside a hob.

Cause. A cooking surface (stove, hob, cooktop) has a fridge or other tall unit (a wardrobe, bookcase or locker) beside it nearer than hobLandingMm (305 mm by default): measured from the hob's side face, over its depth, to the unit's drawn footprint. The hob's sides are the two edges beside its back (its rotate). The NKBA Kitchen Planning Guidelines (guideline 17) ask for 12 in (305 mm) of landing area on one side of a cooking surface and 15 in on the other, so a tall unit inside 12 in leaves either side short. A wall between them ends the measure (a fridge behind a partition is not beside the hob); rooms do not, so a dining room's fridge across an open-plan join counts. A wall beside the hob is not judged by this rule. Every plan is read. Set hobLandingMm: null to turn it off.

Fix. Move the hob or the tall unit apart by the shortfall the warning quotes and stand a worktop between them, or stand the tall unit at the far end of the run. There is no machine-applicable fix.

arch
room id=k at (0,0) size 4000x2400 label "Kitchen"
furniture stove at (1600,100) size 600x600
furniture fridge at (2300,100) size 600x650   # lint: 100 mm from the hob, 200 mm short

W_HOB_UNDER_WINDOW ​

warning — A hob stands under a window.

Cause. A cooking surface (stove, hob, cooktop) stands against a window's wall across part of its span, on either side of the wall: its footprint overlaps, with positive area, the window's span within fixtureWallTolMm (300 mm) of the wall's centreline, the band W_FURNITURE_OVER_WINDOW reads for a tall unit. A curtain or blind then hangs over the flames, and opening the window means reaching across the burners: the NKBA Kitchen Planning Guidelines (guideline 20, cooking surface safety) say not to locate the cooking surface under an operable window. Every window is judged, whatever its kind, because a curtain hangs in front of a pane that does not open too; one whose sill is at or above 2100 mm is out of reach and is not, and one on a curved wall is not measured. Every plan is read, a café's kitchen as a dwelling's.

Fix. Slide the hob along its wall past the window's nearer end (the hint gives the distance) and stand the sink or a worktop under the window, or move the window. There is no machine-applicable fix: which one moves is the author's choice.

arch
wall id=w exterior thickness 200 { (0,0) (4000,0) }
window at (2000,0) width 1200 wall w
furniture stove at (1700,100) size 600x600   # lint: under 600 mm of the window

W_IMPORT_DROPPED ​

warning — Part of an imported plan has no ArchLang form and was left out.

Cause. archlang import --from openplan3d writes what ArchLang can say (walls, rooms, doors, windows, openings, straight stairs, square columns, furniture with a matching fixture family, storeys) and leaves out the rest: finishes and textures, notes and prices, text and dimension annotations, round columns, turning or spiral stairs, furniture turned off a quarter turn or with no family, a wall's slope. Each left-out entity is listed in the report's dropped, each left-out field in its fields, with the reason, and each kind and reason gives one warning. Fields whose loss changes nothing on a plan (project and capture metadata, editor settings, format markers, a room's stored area) are listed in the report only, with no warning. Nothing is left out without a report entry.

Fix. Read the report (--json). Add what matters by hand in the .arch file (a furniture piece, a dim, a stair), or accept the loss: none of these changes the walls, rooms and openings the checks read.

arch
archlang import --from openplan3d plan.json   # warning: 3 textAnnotations not imported: free text on the plan is not modelled

W_IMPORT_EMPTY_FILE ​

warning — Whole-file import binds an empty component.

Cause. import "<file>" as <name> turns a module's TOP-LEVEL drawable statements into one component, but that module's plan body has none (it may only declare components, or only level blocks — a storey is a page, so levels are dropped).

Fix. Draw in the module's plan body, or import one of its named components with import "<file>": <name>.

arch
import "lib.arch" as lib   # warning when lib.arch only declares components

W_KEEP_VIOLATED ​

warning — A hard keep does not hold.

Cause. A keep (grade hard, the default) states an invariant the resolved plan breaks: datums that should lie on one line do not, two extents differ, an offset or a fixed position is off, a room's clear span is short, a wall is off its axis, or an element's footprint moves between storeys. The message names what the keep holds and the signed residual in mm (+ is right of, below, wider or a margin), and the first hint the ids and the measured values. Compile channel: it fails validate --strict and every source-rewriting transform's never-worse law counts it, but it never fails plain validate, never caps taste and never reaches lint(). A soft keep that breaks is named by validate --json's next (tier intent) instead, and an advisory one is only reported (describe, validate --json). Why: a keep is checked, never solved: nothing moves to satisfy it (ADR 0033).

Fix. Edit the source so the keep holds (move what it names, or derive it from the rooms so it follows them), or remove the keep if the relation no longer applies. There is no machine fix: which side follows is a design decision.

arch
plan "K" {
  units mm
  room id=a at (0,0) size 3000x3000
  keep fixed a.left at 100   # warning: the left edge is at 0, 100 mm left of where the keep holds it
}

W_LEAF_ACROSS_DOORWAY ​

warning — A door's open leaf parks across another doorway's approach.

Cause. A hinged door's leaf, open where it is drawn (from the hinge to the open tip), stands in the approach of another door in the room both open onto: the zone doorwayLandingMm deep (300 mm; 450 under accessibility-advisory) in front of that door's wall face, jamb to jamb: the landing W_DOORWAY_BLOCKED keeps clear of furniture, read from the same face, where a person in the doorway stands. What is left is the longest stretch of that doorway the leaf does not cover; it warns when that is under the narrowest door the ruleset passes (minDoorWidthMm, 700 mm), or under the doorway's own width if it is narrower. One door must then be shut to use the other. Two doors whose swings collide are W_SWING_OBSTRUCTED's report, not this one's. Leaf-less openings are not judged as the approached doorway, nor is a door on an angled or curved wall, whether its own leaf or its approach; a double door's two leaves are each judged.

Fix. Hang the leaf on its other jamb (flip its hinge; the hint says when that clears the doorway), open it to the other side of its wall (flip its swing), move either door along its wall until the open leaf stands at least the approach depth clear of the doorway's face or beside it, or make it a sliding or pocket door. There is no machine-applicable fix: which door moves or turns is a design decision.

arch
wall id=shell exterior thickness 200 { (0,0) (6000,0) (6000,5000) (0,5000) close }
wall id=mid partition thickness 100 { (3000,0) (3000,5000) }
room id=bed at (0,0) size 3000x5000 label "Bedroom"
room id=hall at (3000,0) size 3000x5000 label "Hall"
door id=front at (3700,0) width 900 wall shell hinge near start swing into hall   # lint: its open leaf stands 200 mm in front of the bedroom door
door id=bed_door at (3000,650) width 800 wall mid swing into bed

W_LEAF_TOO_WIDE ​

warning — A swinging door leaf is wider than a door is made.

Cause. A hinged door (no kind, or hinged) is one leaf its full width wide, and a double door two, each half the width. A leaf wider than maxHingedLeafMm (1219 mm by default: the International Building Code's 48 in nominal maximum for a swinging leaf, in its 2018 and earlier editions) is heavier and wider than a door is hung and swung. A 2400 mm opening written as one hinged leaf is the usual case: it draws a 2.4 m quarter-circle across the room. A sliding, glazed_sliding, barn, bifold, pocket or garage door has no swinging leaf and is never judged. Set maxHingedLeafMm: null to turn it off.

Fix. Make it a pair of leaves, door double … width <mm> (each leaf half the width; narrow a double door wider than twice the figure too), or narrow it, or make it a sliding or bifold door, or a cased opening if it needs no door. There is no machine-applicable fix: which the doorway becomes is a design decision.

arch
wall id=w exterior thickness 200 { (0,0) (8000,0) }
door at (4000,0) width 2400 wall w   # lint: one 2400 mm leaf; `door double … width 2400` is two of 1200

W_LENGTH_IN_METRES ​

warning — A length reads as metres where millimetres are the unit.

Cause. Lengths are millimetres. A rectangle room whose size has both sides under 100 mm (size 4x3), or a wall thickness under 10 mm (thickness 0.2), was almost certainly written in metres. The plan draws the value as written.

Fix. Write the length in millimetres; the hint gives the clause times 1000.

arch
room at (0,0) size 4x3   # warning: read as 4 mm x 3 mm; write `size 4000x3000`

W_NO_ENTRANCE ​

warning — The plan has no exterior door.

Cause. The plan has rooms and an exterior wall but no door hosted on an exterior wall, so the building cannot be entered. On a multi-storey plan it is judged per storey: a storey with no exterior door of its own is entered by a stair/elevator/escalator shared with a reachable storey, but only when the room the run stands in there is itself reachable — a stair in a door-less store leads nowhere, and the storey it serves gets this warning — and it lands on a room's floor on the storey. When another storey has a way in, the message says which storey this is and what is missing there, and the hint gives the shaft's id: no shaft joins it to another storey, its run stops on no other storey, the shaft lands on no room there, or the shaft starts in a room nobody can walk to. A storey the shaft does land on, in a room, does not warn.

Fix. Add a door on an exterior wall.

arch
wall exterior thickness 200 { (0,0) (4000,0) (4000,3000) (0,3000) close }   # lint: no way in

W_OPENING_AT_JUNCTION ​

warning — An opening runs into a wall junction, or leaves too short a nib of wall beside a jamb.

Cause. A door, window or cased opening sits on its host run where another wall meets it — a tee, a crossing, a host that itself ends on another wall, or a corner — and either that wall's body stands inside the opening's span, or the nib of wall between a jamb and that wall's FACE is shorter than max(minJunctionNibMm, host thickness × junctionNibThicknessRatio) (100 mm and half the thickness by default). The meeting wall's footprint is where its two face lines cross the host's face line, so an angled wall is measured at the face; on a curved host only the two ends are measured. Why: a jamb needs a return of wall to carry its frame and architrave or its lining (100-150 mm in trade practice), and a wall inside an opening is a pier standing in it, which also leaves the rooms it serves a guess. The thickness limb is W_DOOR_NEAR_CORNER's threshold read at the face instead of the centreline: for two walls of one thickness, a nib of one thickness to the corner point is a nib of half the thickness to the meeting face. A door W_DOOR_NEAR_CORNER reports is not measured here at its host's corners (one defect, one warning), only against tees and crossings, and every plan's W_DOOR_NEAR_CORNER output is unchanged. A door that rule passes is measured at corners too: on a thin wall its one thickness to the corner's centreline point is less than this rule's nib at the face (a 100 mm partition: 50 mm at the face, against 100). A cased opening whose jamb lands flush (0 mm) on a meeting wall's face is not reported for that jamb: the face is its jamb, and there is no sliver of wall left to carry anything (a hall that opens its full width into a room). A door or a window there still is. An open between boundary voided over its whole clear span meets nothing, unless the host stops at it with nothing carrying on: a jamb there has no wall beside it, and the message names the boundary and, where no wall stands either, the host's free end, because nothing is drawn along it.

Fix. Move the opening along its run. The hints quote each direction that has a clear position: the span it lands on, the nib it leaves and the on <wall> at <pos> or at (x,y) clause. Every quoted position was checked: on the run, the nib kept to every meeting wall, a mullion kept to every other opening, W_DOOR_NEAR_CORNER's nib kept at a corner, and the same rooms served, which the hint names. The two leaves of a double door move together, with a clause for each. When no direction has one, the hint gives the longest clear stretch of wall and says to use another wall the same rooms share, or to move the meeting wall. Accept it where the plan means it: glazing running past a junction onto a mullion, a screen stopping short of a cased opening's head, a frame fixed into the meeting wall. There is no machine-applicable fix: every remedy moves something the author placed, and there are always at least two.

arch
wall id=shell exterior thickness 200 { (0,0) (8000,0) (8000,5000) (0,5000) close }
wall partition thickness 100 { (4000,0) (4000,5000) }
window on shell at 4500 width 2000   # lint: the partition stands inside the window's span

W_OPENING_NOT_DIMENSIONED ​

warning — An opening on the outside of the building is on no dims auto all chain.

Cause. dims auto all draws an openings chain on each facade, and this door, window or cased opening is on none of them, so the drawing states its width nowhere and its position nowhere. The auto-dimensioner cannot place three kinds of opening: one on a CURVED wall (a chain measures along x or y, so a curve has no coordinate to tick; the curve gets an R call-out instead), one on an ANGLED wall (the facade chains run along x and y only), and one on a face that is not the building's outer outline, such as a courtyard or a recess another wall stands in front of. The warning reads the same facade model the chains are drawn from, so it fires exactly when the drawing leaves the opening out. Only openings on exterior walls that open to the outside are considered: a door joining two rooms is not a facade opening, even on a wall categorised exterior. A hand-written dim with an endpoint on the opening (a jamb, its centre, anywhere across its void) counts as dimensioning it, and the warning stands down. Until issue #109 a STEPPED facade dropped every opening on that side the same way, silently. Those openings are now chained, and this warning exists so the remaining gaps cannot be silent either.

Fix. Dimension the opening by hand: a dim from the nearest corner to a jamb states the position the auto chains cannot, and one drawn on the opening itself (offset 0, jamb to jamb) states its width. Either clears the warning. There is no machine-applicable fix, because where that dimension reads is a drafting decision.

arch
dims auto all
wall id=w1 exterior thickness 200 { (0,0) (6000,0) (6000,4000) (2000,6000) (0,4000) close }
window on w1 at 12000 width 1200   # lint: on the angled wall, no chain can measure it

W_OPENING_OFF_WALL ​

warning — Opening does not lie on any wall.

Cause. A cased opening's position is not within tolerance of any wall segment, so it has no host.

Fix. Move the opening onto a wall, or name its host with wall <id|category>. The diagnostic points at the nearest wall.

arch
opening at (9999,9999) width 1000   # warning: not on a wall

W_OPENING_OVERLAP ​

warning — Two openings on one wall run overlap, or leave a pier thinner than a mullion.

Cause. Two openings (doors, windows or cased openings) sit on one host run (the same segment, or collinear straight segments of one wall), and their along-run spans intersect or the pier of wall between them is thinner than minMullionMm (100 mm by default). Two openings cannot share a length of wall: one cuts through the other's frame, and a pier thinner than a mullion has no room for the two frames that meet on it. One warning per pair, on the LATER-declared opening, naming both by the rooms they serve. The two leaves of one double door (two hinged doors closing onto one shared latch jamb) are one opening and are not reported.

Fix. Move one of the two along the run. The hints quote, for each opening and each direction, the nearest position that keeps a mullion to every other opening and the junction nib to every meeting wall and still serves the same rooms, with its source clause, or say that none exists. Where the two are deliberately one framed unit (a door with a sidelight, windows meeting on a slim mullion), accept the pier warning. There is no machine-applicable fix.

arch
wall id=shell exterior thickness 200 { (0,0) (8000,0) (8000,5000) (0,5000) close }
door on shell at 4600 width 900
window on shell at 3800 width 1200   # lint: 250 mm of the window's span is the door's

W_OUTDOOR_OVERLAPS_ROOM ​

warning — A ground surface is laid over a room's floor.

Cause. An outdoor surface's extent overlaps the floor of a room by more than a shared edge. Almost always a coordinate slip — a terrace written from the wrong corner, or a lawn given the building's own extent. It matters because ground and floor are reported in SEPARATE totals (totals.outdoor_area_m2 and totals.floor_area_m2), so the overlapping piece is counted twice by anything that adds them for a plot figure. A surface that merely touches a room along its edge — a patio flush against the house — does NOT trip this.

Fix. Move or resize the surface so it sits outside the building's rooms. If the overlap is deliberate (a covered terrace drawn under a room), the two are genuinely different things and one of them is the wrong element.

arch
room id=liv at (0,0) size 5000x4000 label "Living"
outdoor paving at (1000,1000) size 3000x2000   # warning: on the living-room floor

W_PATH_TOO_NARROW ​

warning — The walk to a room squeezes below a passable width.

Cause. The widest route from the entrance into a room (or between a key pair of rooms, e.g. bedroom→bath) has an unavoidable pinch narrower than the minimum passable clear width — a too-narrow door/opening, or furniture crowding the way. The limit case is reported too: when no route reaches the room at all, the message gives the MEASURED width of the best way in that does exist (found by asking which smaller body does get there) rather than a fabricated zero, and calls the walk blocked only when there is no gap at all. When the storey names a main entrance (describe().access.mainEntrance), the walk starts there: another door from outside is a way in only for a room the main entrance cannot reach from inside, or when it is a garage door, so a patio or balcony door does not hide a route blocked from the front door, and a hint names the doors left out. A room with its own door from outside is judged by that door; when the walk from the main entrance does not reach it at all, the warning says so in its own words ("From the main entrance the walk to … is blocked …; the room is reached only through its own door from outside"), naming that door in the hints only. When no main entrance can be named, the walk starts from every exterior door, and the lint coverage report says so (no-main-entrance). A coarse fact from the circulation nav grid (ADR 0008); the number is grid-quantised, and it is the width a body passes through, not the room left over after its own clearance.

Fix. When doors set the limit, the message names the door or opening the walk squeezes through at that width by the rooms it joins (doors in series, or two tied ways in, are all named) and the hints name each by id with a width for it; widening every named one was re-measured to clear the minimum before it is quoted (a door loses a leaf-and-stop allowance from its nominal width, from one leaf of a double door, half its width; a leafless opening keeps all of it). When no door is named, widening doors alone was not enough or the pinch is furniture or a shaft: move the furniture pinching the route, or add a second way in so the pinch is avoidable. One bottleneck is reported once: a room or route whose pinch is a door already named is not reported again. There is no machine-applicable fix: widening a door rewrites a number you chose.

arch
door at (4000,1500) width 600
furniture cabinet at (3600,300) size 700x1200   # lint: the way through squeezes below 700 mm

W_POCKET_RUN ​

warning — A pocket door has no wall to slide into.

Cause. A pocket door's panel disappears into a cavity inside the host wall, so the wall must continue past the slide-side jamb by at least the door's own width plus end clearance. This measures the run from that jamb to the end of the host segment, TRUNCATED at the near edge of any other opening (a window or a second door) that falls inside it — a panel cannot slide through a window either. The warning states what the run has to be, what is actually there, and the shortfall. The threshold, and a deliberate divergence from the source it is borrowed from: the required run is width + max(50 mm, width × 5%) (pocketRunClearanceMm in the lint ruleset). The rule is modelled on planscript-rust's pocket_door_wall_run, which requires a flat width × 1.05 — but a pure ratio is wrong on narrow doors: a 700 mm pocket would ask for 35 mm of end clearance, which does not fit a real jamb and pull. We are not publishing a comparison against that project, so matching its constant buys nothing, and architectural correctness outranks reference-comparability. The two extra things this rule does that the reference does not: it subtracts intervening openings, and it carries its remedies as structured fixes rather than printed prose.

Fix. Reverse the slide (slide left ↔ slide right) — a machine-applicable fix, emitted only after the reverse run is recomputed and proved to satisfy; move the door along its wall so the pocket lands on solid wall; or lengthen the wall. Narrowing the door is deliberately NOT offered as a fix: rewriting the author's stated width to satisfy a checker is the constraint-laundering pattern this project rules out, and it would also walk into W_DOOR_CLEARANCE.

arch
wall w1 thickness 200 { (0,0) (3000,0) }
door pocket on w1 at 80% width 900 slide right   # lint: only ~600 mm of run

W_REASSIGN_DEPRECATED ​

warning — Reassignment (NAME = expr) is deprecated and will be removed in a future major version.

Cause. Reassigning an existing let binding exists only to make a while loop progress. Outside that role it is the same referential-transparency break while is deprecated for: a name bound with let can no longer be trusted to keep its first value, which breaks the equational tools (rename, archlang fix, the planned re-roll refactor) that treat a let as a substitutable value. A reassignment LEXICALLY INSIDE a while body (at any depth, including inside a nested if/for/zone) does not also raise this — every reassignment there is already covered by that loop's own W_WHILE_DEPRECATED.

Fix. Bind a new name with let instead of reassigning it, or express the surrounding loop as for NAME in A..B { … } — archlang fix offers this on W_WHILE_DEPRECATED for the canonical shape, once proved against this file's own expansion (component sites need --unsafe).

arch
let total = 0
total = total + 100   # warning: deprecated reassignment; bind a new name instead

W_ROOM_DISCONNECTED ​

warning — Room has no door — it can't be entered.

Cause. No door lies on any of the room's walls, so there is no way into the room.

Fix. Add a door on one of the room's walls.

arch
room id=r at (0,0) size 3000x3000   # lint: no door on its perimeter

W_ROOM_LABEL_OUTSIDE ​

warning — A room's explicit label anchor falls outside the room.

Cause. label "…" at (x,y) pins the label and area text at a point that is not inside the room's floor, so the text will be drawn over whatever is there instead.

Fix. Move the anchor inside the room, or drop the at (…) — automatic placement uses the rectangle's centre, the circle's centre, or a polygon's area centroid (falling back to the interior point furthest from any edge where a concave ring puts that centroid off its own floor), so it lands inside either way.

arch
room polygon (0,0) (6000,0) (6000,6000) (0,6000) label "Hall" at (9000,9000)   # warning

W_ROOM_MISSING_DEFINING ​

warning — A furnished room is missing the piece that defines it.

Cause. The room holds at least one piece of furniture, so it has been furnished, but not the piece its use is defined by: a bedroom with no bed, a bathroom with no bathtub or shower, a WC with no WC, a kitchen with no sink, no hob or no worktop (a counter), a dining room with no dining table. A bathroom that holds a wc also needs a basin to wash hands at, in the room or in a room a door or opening joins it to directly that is not a kitchen (England's Approved Document G, G4); a WC room is defined by its WC alone. The defining pieces are read from the furnish table finish furnishes from (FURNISH_TABLE), so finish never writes a room this rule reports. A piece counts when its footprint centre is on the room's floor (its polygon when it has one), and a piece does the job of its own family and of the one the catalogue says it serves (a double_bed is a bed, a table is a dining table, a hob is a stove). An EMPTY room is never reported (an empty bathroom or kitchen is W_ROOM_NO_FIXTURE's report), living rooms and studies are not checked (no single piece defines them), and a room with no classified use is skipped.

Fix. Add the missing piece; the hint quotes statements checked together, clear of the room's walls, doors and furniture, when they fit. If the room is not what its use says, change its uses. There is no machine fix: where the piece goes is a design decision.

arch
room id=r_bed at (0,0) size 4000x4000 label "Bedroom 2" uses bedroom
furniture wardrobe in r_bed anchor top flush size 1800x600   # lint: furnished, but no bed

W_ROOM_NOT_ENCLOSED ​

warning — Bathroom is not fully enclosed.

Cause. A run of this bathroom/WC's perimeter is not backed by a wall, so it is open to the adjacent space — a privacy problem for a wet room (a partition that stops short is the usual cause).

Fix. Extend the partition so the room's perimeter is walled on all sides (a door/window in the wall is fine — only a missing wall counts).

arch
wall partition thickness 100 { (4000,0) (4000,4000) }   # lint: stops short, bath left open

W_ROOM_NOT_EQUATOR_FACING ​

warning — A habitable room has windows, but none faces the equator side.

Cause. The plan declares site, so the equator-facing side is known (S in the northern hemisphere, N in the southern), and a habitable room — a bedroom, living or dining space — has at least one window with none of them on that aspect. This is a drafting heuristic, not a measured daylight outcome: it says the room's windows do not face the equator, and nothing more. A south window in Reykjavík and one in Singapore are not the same daylight, and this rule does not distinguish them (there is no sun model, latitude or date anywhere in ArchLang). The rule cannot fire at all in a plan with no site, and a room with NO window is W_BEDROOM_NO_WINDOW's report, not this one.

Fix. Move a window onto the room's equator-facing facade, or accept the aspect — an urban plot often has no equator-facing wall to spare. There is deliberately NO machine fix: the remedy is a geometric decision (which facade, which wall, what else it displaces) and the compiler does not make those (ADR 0005).

arch
site { street north }   # equator side is S
room id=liv at (0,0) size 4000x3000 label "Living"
window on north_wall at 50% width 1200   # warning: the only window faces N

W_ROOM_NO_CLEAR_PATH ​

warning — A room cannot be entered or crossed.

Cause. Furniture, fixtures, door swings and their clearances fill the room so densely that a person stepping through a door/opening has no clear floor path into the usable space — the room is technically reachable but physically blocked.

Fix. Open up the layout: move or shrink the furniture nearest the door so there is a continuous walkable strip from each entrance into the room.

arch
furniture shower at (5000,3000) size 2000x2000   # lint: fills the bathroom against its only door

W_ROOM_NO_FIXTURE ​

warning — Bathroom or kitchen has no fixtures.

Cause. A room labelled as a bathroom or kitchen contains no plumbing/kitchen fixture (WC, basin, shower, sink, counter…), so it is drawn as an empty box.

Fix. Place a fixture inside the room; the categories are built in, so nothing needs importing. A bathroom or WC takes a wc, basin, shower or bathtub (e.g. furniture wc in bath anchor top flush size 400x700); a kitchen takes a kitchen_sink, counter, stove or fridge (e.g. furniture kitchen_sink in kitchen anchor top flush size 800x600). A bare sink counts for either. A circle or slanted polygon room cannot take anchor: place the piece at (x,y) with in <roomId> instead. The hint quotes the pieces that make the room what it is, checked together: a bathtub or shower for a bathroom, a wc for a WC, a sink and a hob for a kitchen, and the defining piece of any other use the room has. One fixture alone would leave a furnished room still missing its defining piece, which W_ROOM_MISSING_DEFINING reports.

arch
room at (4000,4000) size 3000x2000 label "Bath"   # lint: no fixtures inside

W_ROOM_OUTSIDE_SHELL ​

warning — A room lies partly outside the building's walls.

Cause. At least minOutsideShellM2 (0.1 m² by default) of the room's floor is off every walled face and every wall body: outside the building. A room drawn on the wall centrelines, or to the outer face, has none outside. The rule judges only a room most of whose floor (half or more, an exact area) lies inside walled faces: a room beside a column ring or a closed WC box, or behind a shell left open at its door, has no closed shell to be outside of, and the rule says nothing rather than invent one. The area is measured in closed form from the room's shape and the joined wall bands; the message also gives how far the farthest corner stands past the walls' outer face. Why: a room past the outside wall has floor no wall encloses, usually because the room was resized or moved while its walls stayed put.

Fix. Bring the room back inside the walls (resize or move it so its edge meets the outside wall), or move the outside wall out to the room's edge. If that part is meant to be outside (a terrace, a balcony, a porch), it is not a room: draw it as an outdoor surface instead and keep the room inside the walls. There is no machine fix.

arch
wall exterior thickness 200 { (0,0) (8000,0) (8000,5000) (0,5000) close }
room at (4000,0) size 4600x5000 label "Bedroom" uses bedroom   # lint: 600 mm past the east wall

W_ROOM_OVERLAP ​

warning — Rooms overlap.

Cause. Two room rectangles intersect. At most the first 200 overlapping pairs are listed; one final warning counts the rest (…and N more room pairs overlap).

Fix. Adjust positions/sizes if the overlap is unintended (it is allowed).

arch
room at (0,0) size 2000x2000
room at (1000,0) size 2000x2000   # warning

W_ROOM_TOO_NARROW ​

warning — A room is narrower than its profile asks of its use.

Cause. Raised only under a residential-advisory lint profile (cn-, uk-, us-residential-advisory); the default ruleset asks no room a width. A rectangular room's short side, measured CLEAR between the inner faces of the walls along it (the drawn edge where no wall backs it), is under the least width the profile gives: for a use (a bedroom 2150 mm under uk, a habitable room 2134 mm and a hall 914 mm under us), for a double bedroom (2550 mm under uk; one double bedroom of a home 2750 mm, held on the widest when none is that wide), or for a passage by the rooms it opens onto (under cn: 1200 mm for the entry passage, 1000 mm to a bedroom or living room, 900 mm to a kitchen, bathroom, WC or store). A bedroom is a double from its bed, never its label: a double_bed, a bed wider than 1200 mm, or two beds; a bedroom with no bed files a no-bed coverage skip. A polygon or circle room is not measured (non-rectangular-room). The figures are read from the sources each profile cites, as advice, never as compliance (ADR 0005).

Fix. Widen the room until the quoted width stands clear between the walls' inner faces; the drawn size runs to the wall centrelines, so add half of each wall's thickness.

arch
room id=b at (0,0) size 2100x4000 label "Bedroom" uses bedroom   # lint --profile uk-residential-advisory: 2100 mm, under the 2150 mm a bedroom is asked

W_ROOM_TOO_SMALL ​

warning — Room is implausibly small.

Cause. A room's floor area is below the minimum for its use. A room is held to the generic minimum (default 4 m²) unless every use it has (its uses, or its label when it has none) has a floor of its own: a WC 1.1 m² and a bathroom 2.0 m² (GB 50096-2011 5.4.2, read as advice), while a store, utility room, hall, circulation space or entry has no area floor at all (a passage is judged by its width, W_PATH_TOO_NARROW). A room with several uses takes the highest floor among them, and a room with no classified use keeps the generic minimum. The per-use floors are the minRoomAreaByUseM2 ruleset setting, merged per use, so a profile or a caller can change one and keep the rest. A profile or caller that sets the generic minimum itself holds every room to at least it (accessibility-advisory: 5 m²), since no researched accessible per-use floors exist yet. Under a residential-advisory profile (cn-, uk-, us-residential-advisory) the per-use floors are read on the room's net floor inside the walls, as their sources measure a room, and a bedroom whose bed makes it a double is held to the profile's double-bedroom floor.

Fix. Increase its size, or merge it into an adjacent space.

arch
room at (0,0) size 1000x1000 label "Nook"     # lint: 1 m²

W_ROOM_UNREACHABLE ​

warning — Room cannot be reached from the entrance.

Cause. The building has an entrance, but this room has no door/opening path back to the exterior — it is sealed off from the circulation.

Fix. Add a door or cased opening linking it (directly or through a hall) to a space that reaches the entrance.

arch
room at (5000,0) size 3000x3000 label "Store"   # lint: no path from the entrance

W_ROOM_VIA_PRIVATE ​

warning — Every route to a room passes through one particular bedroom, bathroom or WC.

Cause. Take one bedroom, bathroom or WC out of the door graph (describe().access) and this room has no route left from the entrance: every way to it passes through that private room. The warning names each private room on the route, in order, and the room's access depth. Not reported, because they belong behind a private room: a bath or WC (an en-suite, or a WC behind a bathroom) and a storage room (a wardrobe or dressing room); a wet room W_BATH_VIA_BEDROOM already names is not named again. A room that is also a living space, dining room, kitchen, hall, circulation or entry is not private. The ways in are the doors to the ground and the stair or lift landings; a door onto an outdoor balcony is not one. When the front door itself opens into the private room, W_ENTRANCE_INTO_PRIVATE reports it and the rooms behind it are not reported again. The test removes one room at a time, so a room whose every route crosses SOME private room but no single one (a living room reached through bedroom 1 or bedroom 2) is not reported: a known limit. A room with no classified use (no uses, and a label the use vocabulary does not read) is skipped. ResPlan: about 0.03 % of 16,317 real dwellings reach a non-bath room only through a bedroom.

Fix. Give the room a route that passes no private room. The hints list each room reached without one that shares a door-wide edge with it, measured as the longest single straight run on centrelines against a door-width floor (900 mm into a bedroom or living space, 800 into a kitchen, 700 into a bath or WC, plus a 100 mm nib each side), with the depth a door there gives, and, for a room that is not private, its run of exterior wall. When no room qualifies, move partitions so a hall or corridor at least 900 mm clear reaches it. Never shrink, delete or relabel a room to silence this. There is no machine fix: a door is a geometric decision (ADR 0005). Accept it when the route is deliberate: a dressing room, nursery or study in a main bedroom's suite, or a railroad flat.

arch
plan "Through a bedroom" {
  units mm
  wall exterior thickness 200 { (0,0) (9000,0) (9000,4000) (0,4000) close }
  wall id=p1 partition thickness 100 { (3000,0) (3000,4000) }
  wall id=p2 partition thickness 100 { (6000,0) (6000,4000) }
  room at (0,0) size 3000x4000 label "Hall"
  room at (3000,0) size 3000x4000 label "Bedroom"
  room at (6000,0) size 3000x4000 label "Living"
  door at (1500,4000) width 1000 wall exterior
  door at (3000,2000) width 900 wall p1
  door at (6000,2000) width 900 wall p2   # lint: Living is reached only through Bedroom
}

W_SANITIZED_CONFIG ​

warning — A disallowed config value was stripped.

Cause. A theme/style value contained markup or a data: URL and was blanked for safety.

Fix. Use a plain colour/string value (no <, >, or url(data:…)).

arch
theme { wall: "<script>" }   # warning: stripped

W_SCALE_OVERFLOW ​

warning — The drawing does not fit the declared paper at the declared scale.

Cause. The plan declares a paper size, so scale is operative: the building's outer-face extent has to fit the sheet minus its margins, the dims auto dimension bands, the bottom chrome band (scale bar + title block) and the margin-table row that schedule rooms / legend occupy below it. At the scale in force it does not. Your scale is NEVER silently overridden — a drawing is issued at the scale printed in its own title block — so nothing is clipped: the drawing keeps its sheet margin where it can, and the page grows past the sheet when it cannot. Note that the SHEET FURNITURE counts, not just the building: adding a schedule to a tight sheet can raise this with no change to the plan's geometry. Advisory: an oversize sheet you intend to trim or tile is legitimate.

Fix. Pick a coarser scale (a larger denominator draws the building smaller), move up a paper size, drop a margin table you can do without, or drop the scale line and let the sheet auto-fit choose the finest scale from 1:50 / 1:100 / 1:200 / 1:500.

arch
paper A4 landscape
scale 1:50   # warning on a 20 m building: 1:100 or `paper A2` fits, or omit `scale` to auto-fit

W_SEAT_FACING_AWAY ​

warning — A chair at a table faces away from it.

Cause. A chair, office chair or outdoor chair stands within reach of a table or desk in the same room (600 mm on both axes, seatTableReachMm), but its front ray, from the middle of its front edge, enters no such table within that reach: it is drawn with its back to the table it is sat at. At rotate 0 a symbol's back is to the north. A chair that declares facing is not judged.

Fix. Add facing <table id> to the chair (the hint names the nearest table and the turn it derives), or give it the rotate that turns its front to the table.

arch
furniture table at (0,0) size 800x800
furniture chair at (175,850) size 450x450   # lint: south of the table, facing south

W_SET_VALUE_WORD ​

warning — A bare word in set <kind>(…) was taken as text and does nothing.

Cause. A bare word in a set rule is read as text, never as the value of a name, so set door(width: W) sets the text "W" and does nothing; so does a word the key does not read (set door(swing: inward)). set door(…) reads a word only for hinge and swing. An error at 2.0.

Fix. Write the value on the element, or a word the key reads.

arch
let W = 900
set door(width: W)   # warning: takes `W` as the text "W"; the rule does nothing

W_SHAFT_FOOTPRINT_MISMATCH ​

warning — A shaft's runs on two neighbouring storeys do not stand over each other.

Cause. The same id on two level blocks is one shaft. On two neighbouring stops of it, the runs do not line up: a lift car is not in exactly the same footprint (a shaft is plumb), or a stair or escalator runs along the other axis, or its two footprints overlap by less than half of the smaller one, or one stop draws a different kind of run. The flight climbed on one page then arrives somewhere else on the next. Reported on the upper stop. Half is the programme's threshold, not a code's: a footprint redrawn a little longer or shifted by a wall's thickness passes. A block stair is the same block on both stops, with no share of overlap: the same flights and landings in the same climbing order, each at the same at and size, at the same width, and with the same winders on each landing: copy the block and change only dir. A straight flight over or under a block always mismatches, because those are two stairs, and two stairs take two ids. Only the id joins two stops: nothing is inferred from where they stand.

Fix. Draw the run with the same at and size on both storeys (the hint quotes both), or give two unrelated runs different ids. There is no machine-applicable fix: which storey is right is the author's call.

arch
level 1 "G" { stair id=s at (0,0) size 900x2600 dir up }
level 2 "1" { stair id=s at (3000,0) size 900x2600 dir down }   # lint: the footprints do not overlap

W_STAIR_HEAD_VOID ​

warning — A void opens on the landing at the head of a flight.

Cause. On the storey a flight arrives at (the dir down stop of its id, or the head of a flight from below that continues upward), a void overlaps the landing a person steps off the flight onto: the square beyond the head as wide as the flight and as deep (Approved Document K (2013) 1.20; 1200 mm deep outside a dwelling, 1.23a). The top step meets a hole. The stairwell itself may be a void; only the floor beyond the head is judged.

Fix. Move the void beside the flight or past its foot end, or shrink it, so the landing beyond the head is floor. There is no machine-applicable fix.

arch
level 2 "First" {
  stair id=s at (100,1500) size 900x2600 dir down
  void id=g at (100,200) size 900x1100   # lint: the floor ends 200 mm past the top step
}

W_STAIR_NO_LANDING ​

warning — A flight has no landing at its foot or head, or a landing between two flights is too short.

Cause. Beyond the end a flight is entered from on this storey (its foot where it goes up, its head where it comes down, and the head of a flight from below that continues upward), a wall stands, a void opens (at a foot), or the floor ends, nearer than the landing the flight needs: as long as the flight is wide (Approved Document K (2013) 1.20, "At the top and bottom of every flight, provide landings the width and length at least as great as the smallest width of the flight"; at least 1200 mm in a building other than a dwelling, 1.23a). The depth is measured across the middle half of the flight's width, from the wall's drawn body (a cased opening is passable and cut out; a door's closed leaf is not), so a wall drawn along the flight's flank is not read as standing across its end. A person stepping off walks into the wall, or must turn on the last step. A curved wall is not measured. On a block stair the foot is the first flight's and the head the last's, and another part of the same stair standing past that end cuts the landing short, as it does for the walking grid. A landing between its flights must run that length along each flight that meets it, from that flight's step, because a flight is stepped off straight ahead: the walking line is read leg by leg, never as its whole length, which a half-turn landing 500 mm deep would pass. Each flight meets its landing along its whole width (E_STAIR_PIECES), so a landing at a corner is never shorter than that: there only a wall across it, or the 1200 mm of a building other than a dwelling, reports. A wall counts only on a stop the flights rise from, as far up as it stands, because the landing stands above that floor, and one drawn on the landing's edge is half in it. A dir down stop with no matching block below reads the landing's own length and no wall, because its walls stand above its floor and the landing below it. A void or the lack of a room under a landing does not count. Such a landing is read on the stop its flights climb from, so a shaft reports it once; lengthen it, with the flights moved so they still touch it.

Fix. Move the stair, shorten it, or move the wall until the quoted depth stands clear beyond the end. There is no machine-applicable fix: moving a stair moves the rooms around it.

arch
wall id=p partition thickness 100 { (0,3000) (4000,3000) }
stair id=s at (500,200) size 900x2350 dir up   # lint: the partition stands 400 mm past the bottom step, where 900 mm is needed

W_STAIR_SIDE_ENTRY ​

warning — A doorway opens onto the side of a flight.

Cause. A door or cased opening in a wall along a stair's flight, beside it with less than a doorway's width (minDoorWidthMm, or its own width if narrower) past either end, stands nearer to the flight than the ruleset's least clear path width (minPathClearWidthMm, 700 mm): stepping through, a person meets the flight's side partway up its rise, with no landing to turn on. A flight is entered at its foot or head, from a landing (Approved Document K (2013) 1.20). Measured from the wall's face to the footprint's side. Only the part of a rising flight under 2 m of rise is beside a person (AD K 1.11's headroom), read against the storey's height, or 3000 mm when the plan authors none, a default that can only quiet the rule. A block stair rises over its flights alone, its landings level, each flight read on its own, and a landing has no side to enter by. A doorway past either end of the flight is the landing rules' question, not this one's.

Fix. Move the doorway along its wall past the foot or head of the flight, or move the stair so at least the quoted width stands between them. There is no machine-applicable fix.

arch
wall id=w partition thickness 100 { (4000,0) (4000,3000) }
door id=d at (4000,1450) width 800 wall w
stair id=s at (4200,300) size 1100x2400 dir up   # lint: the doorway is 150 mm from the flight

W_STAIR_TOO_STEEP ​

warning — A stair is too short to climb its storey.

Cause. A stair going up climbs its storey's floor-to-floor height, and its run (a straight flight's long side, or the sum of a block stair's flights) is shorter than the least run that climb needs: the fewest risers no higher than stairMaxRiseMm, and one going fewer, each at least stairMinGoingMm (and, under a pitch cap, the riser over stairMaxPitchRatio). A block stair owes one going fewer again per landing, because a flight ends on its landing as the top flight ends on the floor above, and its flights must hold those goings whole: a flight's remainder is no use to the next, so 1210 + 1210 mm sums to the 2420 mm that 11 goings of 220 mm need and holds 5 + 5. Under a pitch cap each riser count is tried while the going still shrinks. The default, 220 mm risers and 220 mm goings with no pitch cap, is the most generous of the figures read (Approved Document K (2013) Table 1.1, private stair): a flight that fails it fails every code cited. uk-residential-advisory adds AD K's 42° pitch, us-residential-advisory IRC R311.7.5's 7¾ in riser and 10 in tread, cn-residential-advisory GB 50096-2011 5.7.4's 0.20 m riser and 0.22 m tread. Judged only where the plan authors a height (describe().heights); otherwise the coverage report says the stair checks skipped it. Judged on the storey the flight climbs from.

Fix. Lengthen the flight (its size along the run, on every storey the shaft is drawn) to the quoted run, correct the storey height if it is wrong, or draw one block stair, stair dir up width 1000 { flight … landing … flight … }, where a landing replaces one going. A winder landing counts only the whole goings of stairMinGoingMm that fit on the quarter arc of radius width / 2 round its inner corner, never more than it has winders, so adding winders past that does not clear the warning. Splitting the climb into separate stairs does not clear the warning: each is still judged against the whole storey. There is no machine-applicable fix: a longer flight moves the rooms around it.

arch
height 2800
stair id=s at (200,200) size 1000x2000 dir up   # lint: 13 risers and 12 goings of 220 mm need a 2640 mm run

W_STAIR_UNMATCHED ​

warning — A run of vertical circulation appears on only one storey.

Cause. In a multi-storey plan the ONLY thing that joins two floors is identity: a stair/elevator/escalator with the same id in two level blocks is one shaft. This id appears on exactly one storey, so it connects nothing — usually a typo in the id, or the matching run was never drawn on the floor above or below. Known limitation: a top-floor stair that genuinely goes only to a roof hatch, and a lift that stops short of a storey it passes, both trip this rule; it is advisory, so leave it.

Fix. Draw the same run with the SAME id on the neighbouring storey (each storey declares its own dir — up on the lower floor, down on the upper one), or fix the id.

arch
level 1 "G" { stair id=s at (0,0) size 900x2600 dir up }
level 2 "1" { }   # warning: "s" is on level 1 only

W_SWING_OBSTRUCTED ​

warning — Door swing is obstructed.

Cause. The quarter-circle a door leaf sweeps overlaps a piece of furniture/fixture or another door's swing, so the door cannot open fully. Two swings that meet in a single point are clear: a double door's leaves, meeting only at their shared closed jamb, do not obstruct each other. The warning states the clear radius the swing needs, what it actually has, and the shortfall.

Fix. Hang the leaf on the other jamb (hinge left|right) — a machine-applicable fix when the flipped swing is proved clear; or open it the other way (swing in|out), move the door along its wall, move the obstruction (archlang repair), narrow the leaf to the width the warning quotes (never below the minimum passable width — that relocates the problem into W_DOOR_CLEARANCE), hang no swinging leaf at all (a sliding, pocket or barn door sweeps nothing, so this rule cannot apply to it), or make it a leafless opening.

arch
door at (4000,1500) width 900 swing in   # lint: leaf sweeps onto the bed

W_SWING_OVER_STAIR ​

warning — A door's swing sweeps a stair or the landing at its end.

Cause. A hinged door's quarter-disc (the one the drawing shows) overlaps a stair's footprint, or the landing a flight is stepped off onto at its head, or, at its foot, the 400 mm Approved Document K (2013) 1.24 and Diagram 1.8 ask a dwelling's door to leave clear across the flight's width (in a building other than a dwelling, 1.23b, the whole foot landing). A person stepping off the flight walks into the leaf, or the leaf strikes someone on the treads. The landing is the square beyond the end as wide as the flight and as deep as it is wide (AD K 1.20; at least 1200 mm long outside a dwelling, 1.23a). On a storey where the flight goes up its foot is here; where it comes down, its head; a storey a flight from below arrives on and continues up from owes both. On a storey the flight rises from, only the part of the footprint lower than the door's head counts (the treads climb the storey height over the run, so a leaf swings under the high end); that height is the storey's height, or 3000 mm when the plan authors none, a default that can only quiet the rule. A block stair rises over its flights alone, its landings level, and its pieces are read one by one, so the floor it wraps round is floor. A touch is not an overlap.

Fix. Open the door to the other side of its wall (flip its swing) or hang it on the other jamb (flip its hinge); the hint says when either clears the stair. Otherwise move the door or the stair, or use a sliding or pocket door, which sweeps nothing. There is no machine-applicable fix: which way a door opens is a design decision.

arch
wall id=w partition thickness 100 { (0,2600) (8000,2600) }
room id=land at (0,2600) size 8000x1900 label "Landing"
door id=d at (4900,2600) width 700 wall w hinge near start swing into land   # lint: its leaf sweeps the top of the flight
stair id=s at (4900,2700) size 2200x1000 dir down

W_SWING_ROOM_NOT_ADJACENT ​

warning — swing into <room> names a room the door does not border.

Cause. A door's swing into <room> points the leaf toward a room, but that room does not share the door's host wall (its box does not touch the wall within tolerance), so which side it means is undefined. A door whose placement was refused is not told this as well: the refusal is the report.

Fix. Point swing into at a room the door actually opens onto, or use explicit swing in|out. The door falls back to its default swing.

arch
wall id=w1 partition thickness 100 { (0,0) (4000,0) }
door on w1 at 50% width 800 swing into faraway   # warning: not on this wall

W_TITLE_OVERFLOW ​

warning — A title-block value, or a sheet text caption with its value, is wider than its row.

Cause. The title block is drawn at a fixed fraction of the drawing's size, each row its caption at the left and its value right-aligned at the right, and it neither wraps nor shrinks a value. This value's estimated width at the size it is drawn (characters × size × 0.62, the one width model the drawing uses) is more than the row holds between its two side pads, so it starts left of its own caption and prints over it, and past the block's frame when it is longer still. Both widths scale with the drawing, so the limit is a character count (about 25) on every sheet and at every scale. Only the authored title { … } rows are judged; on a multi-storey plan it is reported once. A caption the plan writes in sheet text is judged with its value, on every row, as it is drawn, and the warning sits on the block.

Fix. Shorten the value to the number of characters the warning quotes and move the rest to a notes "…" line. When the warning names the caption sheet text writes, shorten that caption or the value until the two fit their row. There is no machine-applicable fix: what to cut is the author's wording.

arch
title {
  project "742 Evergreen Terrace, Springfield - Ground Floor General Arrangement"   # lint: 69 characters, the row holds about 25
}

W_UNKNOWN_FURNITURE ​

warning — A furniture word is not a catalogued kind but is close to one.

Cause. An unknown furniture word is legal and draws a blank rectangle, so a misspelt kind (grand_pianno, WC) passed silently. Reported for an unlabelled piece whose word is a catalogued kind in another case or, past four letters, one with a letter added or dropped (two, past six; a changed letter counts as two); a label marks a piece of your own.

Fix. Write the kind the message names, or add a label.

arch
furniture grand_pianno at (0,0) size 1500x1500   # warning: did you mean "grand_piano"?

W_UNKNOWN_MATERIAL ​

warning — Unknown wall material or room floor; the wall takes the default hatch, the room none.

Cause. A wall material name, or a room floor word, is not one of the known hatches.

Fix. Use a known word (for a wall e.g. brick, concrete, insulation, tile; for a floor tile, paving, deck, concrete) or omit it.

arch
wall exterior thickness 200 material marble { (0,0) (1,0) }   # warning

W_UNKNOWN_STYLE_KEY ​

warning — Unknown style key.

Cause. A style <kind> { … } block uses a key not valid for that element kind.

Fix. Use a valid key (e.g. fill / stroke / label, depending on the kind).

arch
style room { nope: "#000" }   # warning

W_UNKNOWN_THEME ​

warning — Unknown theme name; the plan is drawn in the default theme.

Cause. theme <name> names no built-in theme and none the compile registers, so it selects nothing; names match exactly (theme Rendered is not rendered). Raised by compile() and the CLI's validate and lint, not by the library's describe()/lint().

Fix. Write a known theme name, or register the theme in the compile options.

arch
theme Rendered   # warning: did you mean "rendered"?

W_UNKNOWN_THEME_KEY ​

warning — Unknown theme key.

Cause. A theme { … } block uses a key that is not a theme property or alias.

Fix. Use a known theme key (see the language reference / hover).

arch
theme { nope: "#000" }   # warning

W_WALL_END_SHORT ​

warning — A wall stops a few millimetres short of the wall it runs toward.

Cause. A wall's free end, as drawn (the renderer caps it square, half the wall's thickness past its last point), is not inside any other wall's drawn outline, but carrying the wall straight on for at most wallGapMm (100 mm by default, at most 500 whatever the figure) would land inside one: the two were meant to meet and leave a slit. Walls are named by kind and place; a free end further off than the figure is a stub or a doorway's jamb and is never judged. A closed wall has no free end, and a curved end segment is not judged. Two walls ending toward each other on one line are reported once. Set wallGapMm to null to turn the rule off.

Fix. Extend the wall to the face of the wall it runs toward, or into it, so they join. If the slit is meant as an opening, draw a door or an opening there instead. There is no machine-applicable fix: which wall moves is a design decision.

arch
grid 10
wall id=a exterior thickness 200 { (0,0) (8000,0) (8000,5000) (0,5000) close }
wall id=p partition thickness 100 { (4000,230) (4000,5000) }   # lint: drawn end at y 180, 80 mm from the top wall's inner face

W_WC_SIDE_CLEARANCE ​

warning — A WC's centreline is too close to a wall or fixture at its side.

Cause. A wc (or toilet) has its centreline nearer than the ruleset's wcSideClearanceMm to a side obstacle: the face of a straight wall, or a fixture or piece of furniture beside the pan (a mirror or wall cabinet above it, a rug under it and a door's swing do not count, and a doorway or cased opening in the wall beside it is a gap, measured to its jamb). Its sides are the two edges beside its back (its rotate), measured square to the centreline over the pan's depth, from the drawn footprint to the drawn shape beside it, never from bounding boxes. A WC beside a curved wall is not judged (a curved-wc-wall coverage skip). The figure is 400 mm by default (the low end of the 400–500 mm of Approved Document M4(2) Diagram 2.5), 381 mm under us-residential-advisory (IRC P2705.1, 15 in), 400 under uk-residential-advisory and 450 under accessibility-advisory (Approved Document M Vol 1's 450–500 mm for a wheelchair user's WC), as advice, never compliance (ADR 0005). Set wcSideClearanceMm: null to turn it off.

Fix. Slide the pan along its back wall away from the obstacle by the shortfall (the hint says whether its other side then still keeps the figure), move the obstacle, or move the pan to a run wide enough for twice the figure. There is no machine fix: the edit depends on how the pan was placed.

arch
furniture wc at (0,0) size 400x700
furniture basin at (500,0) size 600x450   # lint: centreline 300 mm from the basin

W_WET_ROOM_DOOR ​

warning — A bathroom or WC has no door, opens onto a kitchen, or is a passage.

Cause. Three cases, each with its own message. (1) The wet room's only connector is a leaf-less opening onto a habitable room (living, dining, kitchen, bedroom, office), so it cannot be closed. (2) A connector joins it straight to a kitchen or dining room with no lobby between (GB 50096-2011 5.4.3, cited as advice, not compliance; ResPlan: about 0.3 % of bath doors open off a kitchen); a kitchen that is also the living room counts only where the door opens onto its kitchen, a sink, hob, oven, fridge, worktop, island or dishwasher on its floor nearer the doorway's face than wetDoorKitchenProximityMm (default 1500 mm, compared in whole mm; a microwave is portable and does not locate the kitchen), and one with no such fixture is declared to the lint coverage report (no-kitchen-fixtures) instead; a kitchen that is also the dining room counts like a kitchen alone; a living room or a living/dining room with no kitchen use does not count. (3) Two or more connectors join it to two different rooms outside a private suite (not a bedroom, bath, WC or storage room), so the way between them runs through it; when one of them is reached only through the wet room, W_ROOM_VIA_PRIVATE reports that instead. A room with no classified use is skipped. Cases (1), (3) and (2)'s dining room describe a home: on a plan that reads as non-residential (a café, restaurant or clinic label; or, with no bedroom or living room, a room whose use is office or a shop, lobby, reception, waiting or meeting label) they are not judged, and the lint coverage report says so (non-dwelling); a door onto a kitchen is judged on every plan, since a WC opening onto a room where food is handled is a fault in a café too. The residential-basic profile judges every plan as a dwelling.

Fix. (1) Hang a leaf in it: write door in place of opening, at least 700 mm wide, or move its way in onto a hall. (2) Re-host the door onto a hall or corridor the wet room shares a door-wide edge with (the hints name each one, measured on centrelines), or put a lobby at least 900 mm clear between them; in an open-plan kitchen/living room, keep the kitchen's fixtures at least wetDoorKitchenProximityMm from the doorway. (3) Where one of the two rooms already has its own door to a room reached without the wet room, remove the wet room's door to it; where the two share a door-wide straight edge, re-host the wet room's second door onto it; otherwise run a corridor at least 900 mm clear between them. There is no machine fix: a door is a geometric decision (ADR 0005).

arch
plan "Bath off the kitchen" {
  units mm
  wall exterior thickness 200 { (0,0) (6000,0) (6000,3000) (0,3000) close }
  wall partition thickness 100 { (4000,0) (4000,3000) }
  room at (0,0) size 4000x3000 label "Kitchen"
  room at (4000,0) size 2000x3000 label "Bathroom"
  door at (2000,3000) width 900 wall exterior
  door at (4000,1500) width 700 wall partition   # lint: the bath opens straight into the kitchen
}

W_WHILE_DEPRECATED ​

warning — while is deprecated and will be removed in a future major version.

Cause. while plus a reassignment to make it terminate is the one construct in ArchLang's expand-time language that breaks referential transparency: a let binding reassigned later is no longer a value that can be substituted, which every equational tool (LSP rename, archlang fix's rewrite-in-your-form, the planned re-roll refactor) relies on. for x in a..b covers every counted loop while is used for in practice.

Fix. Rewrite the loop as for I in A..B { … }. compile() never offers this fix — only archlang fix proves it, against THIS file's own expansion: a shape that merely LOOKS canonical, but whose body calls a component that reads or writes I, that never actually ran (a library compiled standalone, a dead if branch), or that already caps out at while's 10,000-iteration limit, is left as a warning with no fix. A proven fix at plan level is machine-applicable; one inside a component is maybe-incorrect (needs archlang fix --unsafe) — the proof only covers how THIS file instantiates it, and an importer may call it differently. Anything the fix declines needs a hand rewrite.

arch
let i = 0
while i < 5 {
  room at (0, i * 3000) size 3000x3000
  i = i + 1
}   # warning: deprecated; rewrites to `for i in 0..5 { … }`

W_WINDOW_OFF_WALL ​

warning — Window does not lie on any wall.

Cause. A window's position is not within tolerance of any wall segment, so it has no host.

Fix. Move the window onto a wall, or name its host with wall <id|category>. The diagnostic points at the nearest wall.

arch
window at (9999,9999) width 1200   # warning: not on a wall