errors and warnings / manifest / W4310
W4310 warning
XML reference differs in case from the referenced file (the client resolves it case-insensitively)
- area
- manifest (x4xxx)
- fails the build
- with --deny-warnings
An XML file loads a file by a path that differs in case from the file's name
(Core.lua for core.lua). The game resolves the path regardless of case, so
the AddOn loads, but the mismatch is easy to miss and breaks tools that care
about case.
Write the path exactly as the file is named.
Example
<Ui xmlns="http://www.blizzard.com/wow/ui/"> <Script file="Core.lua"/></Ui>print("core")<Ui xmlns="http://www.blizzard.com/wow/ui/"> <Script file="core.lua"/></Ui>print("core")The compiler reports it like this:
warning[W4310]: XML reference `Core.lua` differs in case from the file `core.lua` ┌─ src/main.xml:2:19 │ 2 │ <Script file="Core.lua"/> │ ^^^^^^^^ case mismatch
Related codes
| code | message |
|---|---|
| E4308 | Output paths differ only in case |
Offline
$ wowlua explain W4310 W4310 (warning): XML reference differs in case from the referenced file (the client resolves it case-insensitively)