E507 - Include cycle detected¶
Cause¶
A container_file: include chain loops back on itself — a file
includes itself, directly or through intermediate includes — so
resolution would never terminate.
Example¶
// a.json contains:
[{ container_file: "b.json", position: [0, 0], width: 50, height: 50 }]
// b.json contains:
[{ container_file: "a.json", position: [0, 0], width: 50, height: 50 }]
How to fix¶
Break the loop: restructure the includes so the chain forms a tree. The error message lists the include chain in order — the last entry is the file that re-entered it.