errors and warnings / manifest / E4402
E4402 error
test.profile or a test file's config({ profile }) names no world profile of the package
- area
- manifest (x4xxx)
- fails the build
- yes
test.profile in the manifest, or a test file's config({ profile = … }),
names a world profile the package does not have. Profiles are the files in
tests/profiles/, named without .json.
Add tests/profiles/<name>.json, or fix the name; the help lists the profiles
that exist.
Example
{ "package": { "name": "playground", "version": "0.1.0", "wowlua": "^0.13" }, "flavors": { "camelot": {} }, "test": { "profile": "rich" }}{ "package": { "name": "playground", "version": "0.1.0", "wowlua": "^0.13" }, "flavors": { "camelot": {} }, "test": { "profile": "rich" }}{ "money": 123456 }The compiler reports it like this:
error[E4402]: no world profile `rich` (`tests/profiles/rich.json`) ┌─ wowlua.json:11:20 │ 11 │ "profile": "rich" │ ^^^^^^ names no profile │ = help: add `tests/profiles/rich.json`
Related codes
| code | message |
|---|---|
| E4400 | World profile is not valid JSON, or not a JSON object |
| E4401 | World profile does not match its schema (unknown part, wrong type, a key that is no ID, a UI scale off the game's slider, a character's level outside the flavors' range, a powers key that is no power token, a faction that is not the race's, a race and class no flavor pairs) |
Offline
$ wowlua explain E4402 E4402 (error): test.profile or a test file's config({ profile }) names no world profile of the package