沉默忽略陷阱的變體在某些情況下,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