v0.13.7
errors and warnings / manifest

errors and warnings / manifest / E4400

E4400 error

World profile is not valid JSON, or not a JSON object

area
manifest (x4xxx)
fails the build
yes

A world profile (tests/profiles/<name>.json) is not valid JSON, or is not a JSON object. World profiles describe the character and world that tests and playground runs start in, and like the manifest they are strict JSON: no comments, no trailing commas.

Fix the JSON at the position the message gives.

Example

× failstests/profiles/rich.jsonjson
{ "money": 123456, }
✓ compilestests/profiles/rich.jsonjson
{ "money": 123456 }

The compiler reports it like this:

error[E4400]: invalid JSON: trailing comma
  ┌─ tests/profiles/rich.json:1:20
  │
1 │ { "money": 123456, }
  │                    ^ here
  │
  = note: a world profile is strict JSON: no comments and no trailing commas
codemessage
E4401World 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)
E4402test.profile or a test file's config({ profile }) names no world profile of the package

Offline

terminal
$ wowlua explain E4400
E4400 (error): World profile is not valid JSON, or not a JSON object

source on GitHub ↗