@dc42 - I'm running in standalone mode. To demo my observation I made two files (fail_file_CRLF.g fail_file_LF.g attached) with a bad command on line 3. One file was saved with windows EOL (CR LF) and the other with Linux EOL (LF only).
I uploaded both to my macro directory and when I run them I get the following error messages:
LF only - calls out a problem on line 3 as expected.
21beb731-73b6-4f30-8a28-455f7c8f3b4f-image.png
CRLF file - calls out problem on line 5. It's counting one line for the CR and one line for the LF on each of lines 1 and 2, so it thinks the error on line 3 is really line 5.
5ef388ff-5639-4e35-9033-0cae1499c5cf-image.png