nanogiants / twineCSV

Converts your twine formatted files to csv and vice versa
MIT License
7 stars 2 forks source link

Twine to xlsx failure #7

Closed nilsjr closed 5 years ago

nilsjr commented 5 years ago

Twine to xlsx fails with following stacktrace

see commit 9a52568f236538e2421892d5e9fa33ac20484c70

/Library/Ruby/Gems/2.3.0/gems/commander-4.4.7/lib/commander/user_interaction.rb:359:in `method_missing': undefined method `change_column_width' for #<RubyXL::Worksheet:0x00007fc057172d38> (NoMethodError)
    from /Library/Ruby/Gems/2.3.0/gems/twineCSV-1.1.2/lib/twineCSV.rb:148:in `to_xlsx'
    from /Library/Ruby/Gems/2.3.0/gems/twineCSV-1.1.2/bin/twineCSV:66:in `block (2 levels) in <top (required)>'
    from /Library/Ruby/Gems/2.3.0/gems/commander-4.4.7/lib/commander/command.rb:182:in `call'
    from /Library/Ruby/Gems/2.3.0/gems/commander-4.4.7/lib/commander/command.rb:153:in `run'
    from /Library/Ruby/Gems/2.3.0/gems/commander-4.4.7/lib/commander/runner.rb:446:in `run_active_command'
    from /Library/Ruby/Gems/2.3.0/gems/commander-4.4.7/lib/commander/runner.rb:68:in `run!'
    from /Library/Ruby/Gems/2.3.0/gems/commander-4.4.7/lib/commander/delegates.rb:15:in `run!'
    from /Library/Ruby/Gems/2.3.0/gems/commander-4.4.7/lib/commander/import.rb:5:in `block in <top (required)>'
dasheck0 commented 5 years ago

Resolved in Version 1.1.3. I had to fix rubyXL version to 3.3.29, since later version cause this error. Somehow the api was changed without bumping the major number. I will deal with this dependency later, when I have more time for this tool.