Enhancement #1840

Report syntax errors before starting the lengthy analysis process

Added by J. Wienke about 10 years ago. Updated almost 10 years ago.

Status:ResolvedStart date:04/16/2014
Priority:NormalDue date:
Assignee:J. Moringen% Done:

100%

Category:User Interface
Target version:0.2

Description

Please report syntax errors in any for the files to load before starting to analyze projects. Otherwise ages are wasted just to find a syntax error after the whole process some where in the log.

Associated revisions

Revision 038b57a0
Added by J. Moringen almost 10 years ago

Allow deferring errors in src/commandline-interface/main.lisp

refs #1840

  • src/commandline-interface/conditions.lisp: new file; contains
    conditions used in the commandline-interface module
  • src/commandline-interface/main.lisp (report-error): removed; moved to
    src/commandline-interface/conditions.lisp
    (call-with-delayed-error-reporting): establish a defer restart;
    provide functions for accessing the list of errors and reporting
    errors
    (with-delayed-error-reporting): adapted accordingly
  • jenkins.project.commandline-interface.asd
    (system jenkins.project.commandline-interface): added file
    src/commandline-interface/conditions.lisp

Revision 5791f9d6
Added by J. Moringen almost 10 years ago

Report errors immediately at ends of phases in src/commandline-interface/main.lisp

refs #1840

  • src/commandline-interface/main.lisp (load-projects): do not analyze
    projects
    (analyze-projects): new function; analyze projects
    (call-with-delayed-error-reporting): bind handlers to defer all errors
    (call-with-phase-error-check): new function; aggregate all errors
    within a phase into a `deferred-phase-error' condition instance
    (with-phase-error-check): new macro; corresponding macro
    (main): use `with-phase-error-check' around all phases

Revision a00a3865
Added by J. Moringen almost 10 years ago

Support error policies in src/commandline-interface/main.lisp

fixes #1840

  • src/commandline-interface/main.lisp (update-synopsis): added on-error
    commandline option
    (call-with-delayed-error-reporting): do not automatically defer errors
    (main): establish requested error policy

History

#1 Updated by J. Wienke almost 10 years ago

In case the generator stops prematurely, add an explicit warning message and a hint on how to ignore errors with the command line switch.

#2 Updated by J. Moringen almost 10 years ago

  • Status changed from New to In Progress

#3 Updated by J. Moringen almost 10 years ago

  • Target version set to 0.2

#4 Updated by J. Moringen almost 10 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF