You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/Users/david/.rvm/gems/ruby-3.1.2/gems/rubyXL-3.4.25/lib/rubyXL/cell.rb:24:in `validate_worksheet': Cell #<RubyXL::Cell:0x0000000106c01c30> is not in worksheet (RuntimeError)
from /Users/david/.rvm/gems/ruby-3.1.2/gems/rubyXL-3.4.25/lib/rubyXL/convenience_methods/cell.rb:4:in `change_contents'
from /tmp/rubyxl.rb:23:in `<main>'
The text was updated successfully, but these errors were encountered:
If you have multiple rows, LegacyCell#validate_worksheet will still fail even with the above, due to row not getting set, either. Updated workaround:
moduleRubyXLclassCelldefinitialize(params=nil)superifparams.respond_to?(:[])@worksheet ||= params[:worksheet]self.row ||= params[:row]# note: not an instance variableendendendend
From the
RubyXL::WorksheetConvenienceMethods#insert_column
source code, it looks like it should:but AFAICT that
worksheet
param never gets used.Steps to reproduce
change_contents
on the cellExpected
Actual
RuntimeError: Cell #<RubyXL::Cell:0x000000010561b808> is not in worksheet
Minimal example
Raises:
The text was updated successfully, but these errors were encountered: