-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
DRAFT: Handle and return more errors #1268
base: master
Are you sure you want to change the base?
Conversation
plus * OpenReader() now also sets: ContentTypes, WorkBook * in NewSheet(), don't call DeleteSheet() -> not needed, because if sheet exists, it is returned
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR. This PR contains a lot of code and I need some time to review. The failure unit test case should be fixed.
Signed-off-by: Benjamin Lösch <[email protected]>
Signed-off-by: Benjamin Lösch <[email protected]>
Hi, Would appreciate help with errors
|
a cell merge of once cell makes no sense action taken: delete cell A6 Signed-off-by: Benjamin Lösch <[email protected]>
reason: overlapRange is only used by mergeOverlapCells() and putting extra error info here is more helpful for for error logging Signed-off-by: Benjamin Lösch <[email protected]>
ok, it seems Book1.xlsx had cell A6 flagged as "merged cell". A cell merge of one cell makes no sense or was that intentional? Guessing because of this line
If it was intentional, it would make sense to delete incorrect merges via code, then save corrected result. |
reason: tests for "Microsoft Macintosh Excel", but app name could be anything. On linux, it could be e.g. "LibreOffice" Signed-off-by: Benjamin Lösch <[email protected]>
…error Signed-off-by: Benjamin Lösch <[email protected]>
…LPath() Signed-off-by: Benjamin Lösch <[email protected]>
@xuri: I'm basically finished, except if any action has to be taken because of situation stated in previous comment. If no action is required, I'd cleanup my commits
I'm thinking of doing 5 commits
the commit message contents will be based off the current ones |
Signed-off-by: Benjamin Lösch <[email protected]>
Signed-off-by: Benjamin Lösch <[email protected]>
Signed-off-by: Benjamin Lösch <[email protected]>
79958aa
to
0c3dfb1
Compare
PR Details
Description
Changes regarding error handling
New*()
funcs to handle initialization; full list:NewCalcChainReader()
NewContentTypesReader()
NewStylesReader()
NewThemeReader()
NewWorkbookReader()
New*()
is to prevent more funcs that return errors where it's not necessary. Especially as those funcs are used pretty heavilyfirstError
). And if an error occurred, handle it usingcontinue
or whatever approach fits best the respective contextnew internals
getSheetNameBySheetXMLPath()
: get worksheet name// by checking the sheet map against the given XML file path
ErrIncompleteFileSetup
ErrRangeLength
newRangeLengthError
(for further detail on error above)changed excels
Minor changes picked up on:
Related Issue
closes #1267
Motivation and Context
How Has This Been Tested
Types of changes
Checklist
firstError
returnedMisc
Open to feedback