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
/home/local/COMCARD-NT/kanis/.rvm/gems/ruby-3.1.3/gems/nokogiri-1.14.0.rc1-x86_64-linux/lib/nokogiri/xml/node.rb:1368:in`native_write_to': no implicit conversion of nil into String (TypeError) from /home/local/COMCARD-NT/kanis/.rvm/gems/ruby-3.1.3/gems/nokogiri-1.14.0.rc1-x86_64-linux/lib/nokogiri/xml/node.rb:1368:in `write_to' from /home/local/COMCARD-NT/kanis/.rvm/gems/ruby-3.1.3/gems/nokogiri-1.14.0.rc1-x86_64-linux/lib/nokogiri/html5/node.rb:37:in `write_to'from(irb):1:in`block in <top (required)>' from (irb):1:in `open' from (irb):1:in `<main>'from/home/local/COMCARD-NT/kanis/.rvm/rubies/ruby-3.1.3/lib/ruby/gems/3.1.0/gems/irb-1.4.1/exe/irb:11:in`<top (required)>' from /home/local/COMCARD-NT/kanis/.rvm/rubies/ruby-3.1.3/bin/irb:25:in `load' from /home/local/COMCARD-NT/kanis/.rvm/rubies/ruby-3.1.3/bin/irb:25:in `<main>'
Expected behavior
The script should write a file "filename" with content
A file-IO has no external_encoding by default, so that rb_to_encoding() fails with a TypeError.
This regression was introduces in commit 2e260f5.
Fixessparklemotion#2752
A file-IO has no external_encoding by default, so that rb_to_encoding() fails with a TypeError.
This regression was introduces in commit 2e260f5.
Fixessparklemotion#2752
Co-authored-by: Mike Dalessio <[email protected]>
Please describe the bug
XML::Node#write_to
fails withno implicit conversion of nil into String
Happens on nokogiri-1.14.0-rc1 on Linux and Windows with binary gems, but not on nokogiri-1.13.10 or older versions.
Help us reproduce what you're seeing
With nokogiri-1.14.0-rc1:
Expected behavior
The script should write a file "filename" with content
Environment
Additional context
The text was updated successfully, but these errors were encountered: