从 Script Checker 收到警告:“OMEGA13 已使用但从未设置(将评估为其名称)”
我已经设置
start using Omega13
-- some codes here --
stop using Omega13
有人知道为什么会有警告标志吗?
从 Script Checker 收到警告:“OMEGA13 已使用但从未设置(将评估为其名称)”
我已经设置
start using Omega13
-- some codes here --
stop using Omega13
有人知道为什么会有警告标志吗?
What's probably happened is somewhere you've mistyped some variant of omega13
.
Sensetalk treats uninitialized variables as strings. This results in lots of hard to debug errors.
name = "my name"
put naame
This will print naame
which is probably not what you wanted.
It looks like the correct form to invoke is omega13
not Omega13
, or OMEGA13
. I'd check the documentation and make sure that you haven't mistyped it anywhere.
You may also want to look into the strictVariables global which if true will treat using an uninitialized variable as an error.