errors and warnings / stdlib / E8050
E8050 error
Addon message prefix too long
- area
- stdlib (x8xxx)
- fails the build
- yes
comm.open registers an addon message prefix with the game, which takes 1 to
16 characters. A literal prefix that is empty or longer than that is reported
at compile time; the client would refuse to register it.
Use a shorter prefix, such as your addon's name or an abbreviation of it.
Example
import * as comm from "wowlua:comm"local channel = comm.open("MyVeryLongAddonPrefix")print(channel)import * as comm from "wowlua:comm"local channel = comm.open("MyAddon")print(channel)The compiler reports it like this:
error[E8050]: the addon message prefix `MyVeryLongAddonPrefix` has 21 characters; the client takes 1 to 16 ┌─ src/main.wowlua:2:27 │ 2 │ local channel = comm.open("MyVeryLongAddonPrefix") │ ^^^^^^^^^^^^^^^^^^^^^^^ this prefix
Offline
$ wowlua explain E8050 E8050 (error): Addon message prefix too long