On Jun 17, 2008, at 4:58 PM, barborak@basikgroup.com via RT wrote:
Show quoted text> I suppose if you wanted to define a
> functional bug rather than a documentation bug it would be that
> searching on an empty index throws a rather cryptic error.
I agree that searching on an index which contains all the necessary
files (indicating that an indexing session was completed) but has no
documents should not produce that error message, so I will leave the
ticket open.
It would be better if the search simply returned no results.
Show quoted text> my citation shows that I'm not the first one to stumble on this issue.
To be honest, I didn't count that citation for much because the fellow
in that thread turned out to be utterly incapable of troubleshooting
on his own. He couldn't/wouldn't even troubleshoot module loading. :P
Show quoted text> Maybe some
> background would convince you to edit your sample or to simply add a
> 'die "incomplete"' so that people won't mistakenly think these
> snippets
> aren't working samples. (This one addition makes them working samples,
> by the way.)
I'm sorry, but I value brevity greatly and I think that adding 'die
"incomplete"' to each sample would add unacceptable irrelevant
clutter. This is a fundamental philosophical difference of opinion
between us, and it is not going to be resolved.
If I am not mistaken, another thing that would have saved you is 'use
strict;', since the %source_documents hash was never declared. I
sympathize with the pain of your debugging session; all of us have
spent such hours. However, if my deduction is correct, then I urge
you to consider using 'strict' in the future, as it is designed to
prevent precisely this kind of problem.
Show quoted text> I doubt that anyone would search through the rejected bugs for
> helpful hints.
After the behavior is changed, I will mark it as "resolved".
Best,
Marvin Humphrey
Rectangular Research
http://www.rectangular.com/