include() syntax errors give file name
include() syntax errors give file name
Status:
Acknowledged
Submitted by
vince_faller
on
02-05-2020
03:28 PM
If I am including a script
include("child.jsl")
and the child has an error in it
x = aaa;
I get a nice error output
Name Unresolved: aaa in access or evaluation of 'aaa' , aaa/*###*/
at line 6 in some\path\child.jsl
But if the error is a syntax error
x = {"f", "d", }; // has an extra comma
then I don't get the information of where the error is located
Unexpected "}".
Trying to parse operand for "List" operator.
Line 5 Column 16: x = {"f", "d", ►};
I think it would be great if it told the file that is causing the error like a code error does.
This becomes even more apparently a problem if the include is
x = {
"f",
"d",
};
Because then I get a very vague error message
Unexpected "}".
Trying to parse operand for "List" operator.
Line 8 Column 1: ►};
1 Comment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.