New answers tagged

0

Mathematica will report the line number of syntax errors when reading the code from a file. These errors come directly from the parser, not from the evaluator. Once the code is read and evaluated, any links between any source files and the in-memory definitions are gone. It is inherently impossible to report the location of messages as a line number ...


0

I can reproduce your output, but I don't see how to change it using the -script option. I've always used the -run option (which I learned oh so long ago from Jens), and now I see that it is indeed different from the -script option. I have 2 files, one is code.m that you have above (with the final closing bracket included), and another code2.m, which only ...



Top 50 recent answers are included