Re: Poor error message

Eric Bezault <[email protected]> Mon, 27 Oct 2008 00:43:26 +0100
Newsgroups gmane.comp.lang.eiffel.gobo.devel
Message-ID <[email protected]>
Colin Paul Adams wrote:
> Gec is giving some poor error messages.
> 
> Im am still seing some plain "Syntax error" messages - these could be
> greatly improved.

Hopefully you see the contextual indication of where the
syntax error is, don't you?

It has been two years now since I had plan to write a better parser.
But it's a big task and I never found time yet to start such 
development. I hope I can do that soon.

> Then I get this:
> 
> 
> [VMRC-2] class XM_XSLT_STYLE_ELEMENT (50,2): replicated features
> XM_XSLT_STYLE_ELEMENT have not been selected.
> 
> I have no clue as to which the replicated features might be. My only
> remedy is to try compiling with ISE instead.

In fact the information was in the compiler. There was just a typo
in the code that displays the error message. Instead of displaying
the feature names, it was displaying the name of the current class.
This has now been fixed in the version of the compiler in Subversion,
and now you should get:

[VMRC-2] class XM_XSLT_STYLE_ELEMENT (50,2): replicated features 
XM_XPATH_DEBUGGING_ROUTINES.string_equality_tester, 
XM_XPATH_TREE_ELEMENT.uc_string_equality_tester have not been selected.
----
[VMRC-2] class XM_XSLT_INSTRUCTION (37,2): replicated features 
XM_XPATH_DEBUGGING_ROUTINES.string_equality_tester, 
XM_XPATH_COMPUTED_EXPRESSION.uc_string_equality_tester have not been 
selected.

You should probably rename them so that they share the same name
and hence avoid the need for a 'select' clause.

-- 
Eric Bezault
mailto:[email protected]
http://www.gobosoft.com


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/