Project

General

Profile

Bug #756

Error messages report ALL errors at column 1.

Added by Brian Flanagan 30 days ago. Updated 26 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
05/21/2021
Due date:
% Done:

0%

Estimated time:
4.00 h
Affected version:

Description

In version 1.0.0 (B8), the error messages are working better. Although the error line is reported properly, the column number in the line is always returning 1. For example, the following code should produce an error at column 66:

E$=" the Heavens and the earth!"
Print "This is a test."; : Print "In the beginning","god created"E$ ' This should return an error at column 66
' It's at that point we see that a comma or semicolon is missing.^
'                                                                66
End

...since it's at that point we know that a semicolon or comma has been omitted. Instead, the error is reported at byte 1.
(In fact, ALL errors are reported at byte 1.):

Compiling /Users/USERNAME/Documents/My AOZ Applications/Error Message Test/main.aoz
Generating code...
Error: syntax error at line 2, column 1, in file main.aoz

Task failed, no code generated...
#1

Updated by Brian Flanagan 26 days ago

re-tested in 1.0.0 (B8) 24 March version.
Still a problem.

Also available in: Atom PDF