Re: Poor error message

Colin Paul Adams <[email protected]> Mon, 27 Oct 2008 08:19:28 +0000
Newsgroups gmane.comp.lang.eiffel.gobo.devel
Message-ID <[email protected]>
>>>>> "Eric" == Eric Bezault <[email protected]> writes:

    Eric> 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.

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

Sometimes the real error can be a long way back. I can easily lose an
hour a day (I did yesterday) looking for such problems.

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

Good.

    >> 
    >> 
    >> [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.

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

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

Thanks. That's much better.
-- 
Colin Adams
Preston Lancashire

-------------------------------------------------------------------------
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=/