沉默忽略陷阱的变体在某些情况下,JMP 会使用户(或 AI)很难调试代码。
来源: https
/community.jmp.com/t5/Discussions/AI-scripting-misleading-log/mp/929994/highlight/true#M108698
@Craige_Hales写道:
对象会忽略它们无法理解的消息。
自动化和脚本编写回复:关于“静默忽略陷阱”的各种变体原文: AI脚本——误导性日志……
dt = Open("$SAMPLE_DATA/Big Class.jmp");
kd = dt << KDTable("hello");
result = kd << K Nearest Rows(1, 3);print("finished");
JMP对第3行报错:
Object 'Data Table' does not recognize the message 'K Nearest Rows'
第 2 行的实际错误被默默忽略了。
回复:关于“静默忽略陷阱”的各种变体移动表格脚本:第一个参数不能是变量
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
script_name = "test";
dt << New Script( script_name, "1" ); //no issue with the variable<BR />
myGroupName = dt << group scripts( today_str, script_name );<BR />// No issue with the variable - even without a list<BR />
dt << Move Selected scripts( script_name, after( "Distribution" ) );<BR />//doesn't understand the variable -> silent ignore