0

从 Script Checker 收到警告:“OMEGA13 已使用但从未设置(将评估为其名称)”

我已经设置

start using Omega13

-- some codes here --

stop using Omega13

有人知道为什么会有警告标志吗?

Eggplant 文档 - 高级脚本:使用 Omega13 进行错误恢复

4

1 回答 1

0

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.

于 2021-10-07T07:18:15.337 回答