-
Notifications
You must be signed in to change notification settings - Fork 20
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
1.0.2 NoMethodError: undefined method `scan' for nil:NilClass #29
Comments
That's interesting and probably specific to caxlsx. Do you have an example xlsx file you can share, by chance? |
Here is a minimal test case: require 'caxlsx'
require 'xsv'
p = Axlsx::Package.new
p.workbook.add_worksheet(name: 'Sheet') do |sheet|
sheet.add_row [1]
end
workbook = Xsv::Workbook.open(p.to_stream)
workbook.sheets.each do |sheet|
sheet.each_row do |row|
p row.inspect
end
end This results in the following:
If I run the same script with Xsv 1.0.1, I get:
FWIW, the same generated document opens LibreOffice and Emacs doc-view-mode. Here is the doc generated by caxlsx: |
I suppose this is the relevant row? <row r="1" ><c r="A1" s="0" t="n"><v>1</v></c></row> |
Thank you for the examples, it seems indeed some Could you test with the master branch and see if that fixes it? |
Yup! All looks good here. Thanks for the very quick response and fix! 🎉 |
You're welcome! Released Xsv 1.0.3 with the fix |
Staring with version 1.0.2 I'm seeing the following error:
I'm guessing this was introduced in c653bb8
It seems the
format
passed toparse_number_format
isn't always a string.The document was generated by caxlsx.
The text was updated successfully, but these errors were encountered: