v0.13.7
errors and warnings / manifest

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

× failssrc/main.xmlxml
<Ui xmlns="http://www.blizzard.com/wow/ui/">    <Script file="Core.lua"/></Ui>
src/core.lualua
print("core")
✓ compilessrc/main.xmlxml
<Ui xmlns="http://www.blizzard.com/wow/ui/">    <Script file="core.lua"/></Ui>
src/core.lualua
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
codemessage
E4308Output paths differ only in case

Offline

terminal
$ wowlua explain W4310
W4310 (warning): XML reference differs in case from the referenced file (the client resolves it case-insensitively)

source on GitHub ↗