Menu

#4 CompileAll stops at first error

open
nobody
2
2004-02-03
2003-12-11
Jeff Moore
No

The compile all command stops compiling templates when it
hits the first error. Instead, it should go on to compile the
rest of the templates in the directory.

(Also, the way it it is structured now, it can re-compile the
same template several times.)

Discussion

  • Harry Fuecks

    Harry Fuecks - 2004-02-03
    • labels: --> Template Components
     
  • Harry Fuecks

    Harry Fuecks - 2004-02-03

    Logged In: YES
    user_id=569780

    Added a quick fix using a constant WACT_ERROR_CONTINUE which
    is defined in framework/template/compiler/compileall.inc.php
    and if found by framework/util/debugerrorhandler.inc.php,
    disables the exit()s.

    Templates with errors do get compiled more than once so this
    is not a complete fix.

     
  • Harry Fuecks

    Harry Fuecks - 2004-02-06

    Logged In: YES
    user_id=569780

    OK implemented a better hack by reorganising
    debugerrorhandler a little. CompileAll now only generates
    one error message per error but continues to compile all
    templates.

    The main issue in debugerrorhandler seems to be the
    relationship between the BareBonesErrorHandler (which is
    what is actually getting called when an error happens in a
    single template - that probably needs fixing) and a call to
    ImportVarFile() which results in further parsing (notes in
    source of debugerrorhandler).

    Current state is probably acceptable for new release.

     

Log in to post a comment.

MongoDB Logo MongoDB