[Catalyst] Test server problem

Andy Grundman andy at hybridized.org
Tue Nov 22 14:23:42 CET 2005


Will Hawes wrote:
> If I run the test server with -r, it fails to restart whenever I modify 
> a CDBI class. This is irrespective of whether the modification itself 
> breaks the class - it can be something as benign as adding a comment.
> 
> When I modify files elsewhere in the app, the restart does happen.
> 
> The message displayed in the debug output is a rather cryptic:
> 
> File "C:\Documents and Settings\Will\My 
> Documents\pondwood\trunk\lib\PondwoodDB\
> Entity.pm" modified, not restarting
> 
> **********************************************************************
> 
> Can't use an undefined value as a HASH reference at 
> C:/Perl/site/lib/Class/DBI/R
> elationship/HasMany.pm line 51.
> Compilation failed in require at (eval 133) line 1.
> **********************************************************************

I've seen this too.  The restarter tests the changed file(s) for errors 
before it restarts and I think CDBI classes with has_many definitions 
don't like being tested in an eval "require" container.  DBIC classes 
work just fine by the way. :)

-Andy



More information about the Catalyst mailing list