-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strict comment syntax #16
Comments
I think you’re right that error handling is less than perfect. The problem is that the conversion leaves none of the context of where the errors exist in the spreadsheet. Is that correct? I’m a bit hazy on this now as I haven’t used it in a while I’m not entirely sure how using a grammar would fix this? |
I see several problems. Considering all errors that can occur in a concordion/excel specification, these can be categorized as follows:
B. excel to html translation errors
C. html syntax errors
D. Concordion execution errors
I could consider contributing a solution, if you agree in principle that the enhacement makes sense and maybe provide some guidance. |
This is excellent analysis, thanks. Regarding (A), you could go down that route, but it might actually be less effort to just ruggedise the existing code. The coverage isn't wonderful at the moment: (B) we discussed in #15 the exception handing (and debuggability of the html generally) could be improved by included information about where the HTML came from. Would that help with (D) too? |
The current implementation of the parser for excel comments is a handcrafted parser that tolerates (ignores) free-text comments mixed with concordion syntax.
As a consequence, errors in the excel/concordion comments propagate to the intermediate html and are reported as errors at that level, with no traceability to the excel source location.
This makes debugging of syntax issues very tedious.
Examples:
As an enhancement, the following is proposed
The text was updated successfully, but these errors were encountered: