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
{ "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"] } }}print("a")print("b"){ "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"] } }}print("a")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
Related codes
| code | message |
|---|---|
| E1035 | build.load-order contradicts a computed load-time dependency |
Offline
$ wowlua explain E1036 E1036 (error): Flavors need incompatible load orders and toc-layout = "single" is forced