Ferenc Engard
11/14/2004 11:58:00 PM
> > I have a large ruby project (>40 files, >10k rows), and whenever I make
> > a syntax error somewhere (e.g. swap an 'end' and a '}' token), I always
> > get the same error, dozens of files away, in an END block, that a given
> > constant is not defined.
> >
> > Isn't it possible to detect such errors by the parser/lexer, and give a
> > helpful error message?
>
> I'm not sure if this fixes specifically your error, but for a patch that
> makes error messages for missing "end"s more informative see
> [ruby-talk:115195] and [ruby-core:03486]
Hmm. So, I should not use SciTE, but an indentation-capable editor...
:-/
I only read only about half of the thread, as it is really loooong, but
there were talk about warning by the parser about blocks where the start
and end is not in the same file? I cannot imagine useful purpose of
finishing a block in a different file where I have started it, and at
least I would know which file I should inspect.
Ferenc