#1390: parameter file parser aborts when findeing first error --------------------+------------------------------------------------------- Reporter: rhaas | Owner: Type: defect | Status: new Priority: major | Milestone: Component: Cactus | Version: development version Keywords: | --------------------+------------------------------------------------------- The attached parfile contains multiple errors (one per line).
However the parameter file parser only reports the first one, then stops. This makes verifying parfiles for correctness hard. It might be good to defer aborting until the end of the file or until a larger number of parsing errors were encountered.
#1390: parameter file parser aborts when findeing first error ---------------------+------------------------------------------------------ Reporter: rhaas | Owner: Type: defect | Status: new Priority: major | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: ---------------------+------------------------------------------------------
Comment (by rhaas):
This still applies even with the piraha based parser. It is particularly annoying on clusters where one cannot run {{{cactus_sim -S fail.par}}} on the login nodes (eg Cray machines).
#1390: parameter file parser aborts when findeing first error ---------------------+------------------------------------------------------ Reporter: rhaas | Owner: Type: defect | Status: new Priority: major | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: ---------------------+------------------------------------------------------
Comment (by sbrandt):
I don't know a generic way to recover from a syntax error. My experience is that when compilers try to do this, usually only the first error message is meaningful. I can make specific syntax errors recoverable, however. I could make piraha recover from the specific errors in this file.
#1390: parameter file parser aborts when findeing first error ---------------------+------------------------------------------------------ Reporter: rhaas | Owner: Type: defect | Status: new Priority: major | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: ---------------------+------------------------------------------------------
Comment (by sbrandt):
Take a look at the multiple_syntax_errors branch of the flesh and see if it does what you want.
#1390: parameter file parser aborts when findeing first error ---------------------+------------------------------------------------------ Reporter: rhaas | Owner: sbrandt Type: defect | Status: accepted Priority: major | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: ---------------------+------------------------------------------------------ Changes (by sbrandt):
* owner: => sbrandt * status: new => accepted
Comment:
Can I put this in review?
#1390: parameter file parser aborts when findeing first error ---------------------+------------------------------------------------------ Reporter: rhaas | Owner: sbrandt Type: defect | Status: accepted Priority: major | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: ---------------------+------------------------------------------------------
Comment (by rhaas):
You can certainly put it up for review. The review report may or may not be "please apply" in the end (by whoever ends up reviewing it which does not have to be me :-)). For review though please either link the pull request here or provide a diff to look at.
#1390: parameter file parser aborts when findeing first error ---------------------+------------------------------------------------------ Reporter: rhaas | Owner: sbrandt Type: defect | Status: review Priority: major | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: ---------------------+------------------------------------------------------ Changes (by sbrandt):
* status: accepted => review
#1390: parameter file parser aborts when findeing first error ---------------------+------------------------------------------------------ Reporter: rhaas | Owner: sbrandt Type: defect | Status: reopened Priority: major | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: ---------------------+------------------------------------------------------ Changes (by rhaas):
* status: review => reopened
Comment:
I added comments on the code to a pull request for the branch that you can find here: https://bitbucket.org/cactuscode/cactus/pull-requests/37 /multiple-syntax-errors-enabled-through-a/diff
Testing functionality I find that it still aborts after the first error, even for the fail.par file attached in this ticket. In fact I have been unable to make it produce more than one syntax error. Would you be able to provide a parameter file where the change in the code makes a difference, please?
#1390: parameter file parser aborts when findeing first error ---------------------+------------------------------------------------------ Reporter: rhaas | Owner: sbrandt Type: defect | Status: review Priority: major | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: ---------------------+------------------------------------------------------ Changes (by sbrandt):
* status: reopened => review
Comment:
Roland, I replied to your comments and issues and pushed a new revision to the branch.
#1390: parameter file parser aborts when findeing first error ---------------------+------------------------------------------------------ Reporter: rhaas | Owner: sbrandt Type: defect | Status: reviewed_ok Priority: major | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: ---------------------+------------------------------------------------------ Changes (by knarf):
* status: review => reviewed_ok
#1390: parameter file parser aborts when findeing first error ---------------------+------------------------------------------------------ Reporter: rhaas | Owner: sbrandt Type: defect | Status: closed Priority: major | Milestone: Component: Cactus | Version: development version Resolution: fixed | Keywords: ---------------------+------------------------------------------------------ Changes (by sbrandt):
* status: reviewed_ok => closed * resolution: => fixed
Comment:
Fixed in 441d62bb72f86519a3e1cc947155671f19803fc0 of https://bitbucket.org/cactuscode/cactus.git
trac@lists.einsteintoolkit.org