Duolith docs

Errors while checking a page

E0176 Behaviour files in a cycle

Message Behaviour files import each other in a cycle: files

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

The build reads what each behaviour returns before it rewrites the files that call it, so behaviour files are analysed in the order they import each other (decision 0152). When they import each other in a cycle, none can be read first.

How to fix it

Move what both need into a third behaviour file that imports neither.

In a terminal

duolith explain E0176

Mentioned in