v0.13.7
errors and warnings / names

errors and warnings / names / E1036

E1036 error

Flavors need incompatible load orders and toc-layout = "single" is forced

area
names (x1xxx)
fails the build
yes
in plain Lua files
reported as W1036

The package's flavors need their files in incompatible orders (different build.flavor-load-order lists, or @if imports that point different ways), and build.toc-layout is "single", which forces one TOC for all flavors. With "auto", the default, wowlua writes per-flavor TOC files in this case. Use "auto", or make the orders agree.

Example

× failswowlua.jsonjson
{    "package": { "name": "playground", "version": "0.1.0", "wowlua": "^0.13" },    "flavors": { "camelot": {}, "standard": {} },    "build": {        "toc-layout": "single",        "flavor-load-order": {            "camelot": ["src/a.lua", "src/b.lua"],            "standard": ["src/b.lua", "src/a.lua"]        }    }}
src/a.lualua
print("a")
src/b.lualua
print("b")
✓ compileswowlua.jsonjson
{    "package": { "name": "playground", "version": "0.1.0", "wowlua": "^0.13" },    "flavors": { "camelot": {}, "standard": {} },    "build": {        "toc-layout": "auto",        "flavor-load-order": {            "camelot": ["src/a.lua", "src/b.lua"],            "standard": ["src/b.lua", "src/a.lua"]        }    }}
src/a.lualua
print("a")
src/b.lualua
print("b")

The compiler reports it like this:

error[E1036]: the flavors need incompatible load orders, but `build.toc-layout` is `single`
 = in wowlua.json
 = help: use `"toc-layout": "auto"` to get per-flavor TOC files
codemessage
E1035build.load-order contradicts a computed load-time dependency

Offline

terminal
$ wowlua explain E1036
E1036 (error): Flavors need incompatible load orders and toc-layout = "single" is forced

source on GitHub ↗