-
Notifications
You must be signed in to change notification settings - Fork 503
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
Regression: ArgumentError in extract_coordinate in 2.8.1 #489
Comments
Having looked at this further, the issue appears to be with the definition of a hyperlink. Excel writes the hyperlink once and then references the same link across a range:
This raises an exception in The previous implementation in 2.7.1 ( I'm probably not intimate enough with the internals of XLSX documents to propose a fix but the previous implementation certainly seemed to work for our purposes although it seems it would have missed the hyperlink being associated with all but the first cell in the range. I tested the attached patch which solved the issue for me but seems like a fairly ugly hack. |
@andykelk Thank you for reporting this issue in a detailed manner. |
Steps to reproduce
Attached test case and sample file
test.xlsx
test-case.rb.txt
Issue
When opening an XLSX spreadsheet with hyperlinks, receive an
ArgumentError
inlib/roo/utils.rb:20
I've tried cutting back the file to find the offending row but it starts working after a while and seems to be somewhat inconsistent in reproduction with the same visible data in Excel.
File was written by Excel for Mac v16.21
System configuration
Roo version: 2.8.1. The issue appeared when updating to 2.8.0
Ruby version: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
The text was updated successfully, but these errors were encountered: