v0.13.7
errors and warnings / stdlib

errors and warnings / stdlib / E8441

E8441 error

Visibility driver value other than show or hide

area
stdlib (x8xxx)
fails the build
yes

A visibility driver (secure.visibility) only has two values, show and hide; every clause of the conditional must end in one of them. Use secure.state for a driver with values of your own.

Example

× failswowlua
import * as secure from "wowlua:secure" local bar = CreateFrame("Frame", nil, UIParent, "SecureHandlerStateTemplate")secure.visibility(bar, "[combat] visible; hidden")
✓ compileswowlua
import * as secure from "wowlua:secure" local bar = CreateFrame("Frame", nil, UIParent, "SecureHandlerStateTemplate")secure.visibility(bar, "[combat] show; hide")

The compiler reports it like this:

error[E8441]: a visibility driver's values are `show` and `hide`, not `visible`
  ┌─ src/main.wowlua:4:24
  │
4 │ secure.visibility(bar, "[combat] visible; hidden")
  │                        ^^^^^^^^^^^^^^^^^^^^^^^^^^ here
codemessage
E8440Invalid macro conditional in a literal state driver (brackets, or an unknown condition)

Offline

terminal
$ wowlua explain E8441
E8441 (error): Visibility driver value other than show or hide

source on GitHub ↗