DreamCode
Errors & fixes
What each compiler message means and how to fix it.
Every problem names its line, and most suggest the fix (“did you mean …?”). The house is only built when the code compiles.
| Message | Fix |
|---|---|
a room needs a name and a size | Write room Kitchen 4x3 — size as widthxdepth. |
no earlier room called "…" | Check the spelling, and make sure the room you refer to is written above this one. |
overlaps "…" | Two rooms on the same floor share space — change a placement or a size. |
unknown window side "…" | Sides are north, south, east, west (n/s/e/w and top/bottom/right/left also work). |
the door on the … side doesn't fit there | The side is too short for the opening, or another opening is there — use at or make the room bigger. |
stairs going … need about 4.1 m | Make the room longer in that direction, or turn the stairs: stairs north. |
has stairs but nothing is upstairs | Add rooms under floor 2 (or the next floor number). |
only one staircase per floor | Remove the extra stairs line on that storey. |
unknown furniture "…" | Use bed, sofa, table, chair, cabinet, wardrobe, toilet or sink. |
don't know "…" | A typo in a statement name — the hint shows the closest keyword. |
Check from the terminal#
The CLI prints the same messages as file:line: message, which VS Code turns into clickable links:
Terminal
node editor/src/dreamcode/cli.js check house.dreamhouse.dream:13: Kitchen: unknown window side "est" — did you mean "east"? (use north, south, east or west)