Enhancement #1840
Report syntax errors before starting the lengthy analysis process
Status: | Resolved | Start date: | 04/16/2014 | |
---|---|---|---|---|
Priority: | Normal | Due 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
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
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
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 over 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 over 10 years ago
- Status changed from New to In Progress
#3 Updated by J. Moringen over 10 years ago
- Target version set to 0.2
#4 Updated by J. Moringen over 10 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Applied in changeset a00a386527f6c62bfd97027ea4766aeb7f2232c6.