Home My Page Projects Tom
Summary Activity Tracker Lists Tasks Docs News SCM Files Mediawiki

[#780] errors messages for embedded gom declarations return the %gom line number

Date:
2006-04-21 14:07
Priority:
3
State:
Open
Submitted by:
Paul Brauner (polux)
Assigned to:
Nobody (None)
Category:
Group:
Summary:
errors messages for embedded gom declarations return the %gom line number

Detailed description
for example :

1 class bug1 {
2
3 %include { mutraveler.tom }
4
5 %gom {
6 module bug
7 abstract syntax
8
9 A = a();
10 }
11 }


triggers :

null:5: ParseException occurs: See StackTrace
+++++++++++++++++++++++++
line 5:21: expecting ';', found '\n'
at tom.gom.parser.GomLexer.nextToken(GomLexer.java:200)
...


where we would like to see

null:9: ParseException occurs: See StackTrace
+++++++++++++++++++++++++
line 9:21: expecting ';', found '\n'
at tom.gom.parser.GomLexer.nextToken(GomLexer.java:200)
...
Message  ↓
Date: 2006-04-23 13:53
Sender: Antoine Reilles

It looks like the reported line number is the line number in the %gom construct
Then, we could pass to gom an offset to get correct global line number error reporting

Field Old Value Date By
category_id4422006-04-26 14:26tonio
assigned_totonio2006-04-26 14:26tonio
assigned_tonone2006-04-22 23:23tonio