Thanks!


On 8/18/05, David Sitsky <[EMAIL PROTECTED]> wrote:
Hi Keith,

On Thu, 18 Aug 2005 00:59, Keith Levy wrote:
> Attached is my copy of the config file ...

I can see what the problem is, it has nothing to do with the 1.9.1 as such,
but is a problem in the actual configuation file.  If you go right down to
the bottom, to your $comment_state_metrics definition, it reads:

# Four metrics defined: Status, Level, Mode and Type.
$comment_state_metrics =
    [
      { name=>'Status', values=>['Submitted', 'Invalid', 'Completed'],
                        default_value=>'Submitted' },
      ( name=>'Level', values=>['Major', 'Minor'] },
      { name=>'Mode', values=>['Missing', 'Wrong', 'Unclear',
                                             'Suggestion'] },
      { name=>'Type', values=>['Logic', 'Data Handling', 'Interface',
                               'Error Handling', 'Performance', 'Comments',
                               'Standards'] }
    ];

You can see for the 'Level' metric, you are starting the definition with an
open bracket '(', not a curly brace '{'.  This has effectively caused a
syntax error in the configuration file, which has caused the "$db has not
been set" error.  Its a shame we don't get a more helpful error message,
I'll look into that.

The standard configuration file which ships with codestriker doesn't have
this defect in it, so perhaps you accidently changed this?

Anyway - changing it to a brace should fix the issue, ie:

      { name=>'Level', values=>['Major', 'Minor'] },


--
Cheers,
David


Reply via email to