'Names Default To Here(0)' causes Name Unresolved error
I have 2 scripts. One defined some globle variables, another one included the first script and printed something. They worked well in JMP JSL Editor. However, when I ran in VSCode extension, I got 'Name Unresolved' error in JMP Log. Here is my scripts:
Script 1 (1.jsl):
Names Default To Here(0);
globle_var = "this is globle var";
Script 2 (2.jsl):
include("1.jsl");
print(globle_var); // error when running with VSCode extension
It seems that the root cuase is 'Names Default To Here'. If I remove this function from 1.jsl, the 2nd script works well.
Alternatively, I have to add 'Names Default To Here(0)' to the 2nd script, but here is another problem: when I run 2.jsl, I must select 'Run Current File'. If run the script line by line (Ctrl+D, Ctrl+D), the issue still appears.