Closed noraj closed 2 years ago
It seems doing gem install rexml
fixes the problem. The reason is that before, rexml was a "default gem" and from ruby 3 or higher is a "bundled gem". Is explained here: https://stackoverflow.com/questions/65479863/rails-6-1-ruby-3-0-0-tests-error-as-they-cannot-load-rexml
Probably we should add it to evil-winrm Gemfile and Gemfile.lock.
We did a commit to fix this on future version: https://github.com/Hackplayers/evil-winrm/commit/83bc6ec050aaa97500ef6ff1ccd535d180ddb598
It seems doing
gem install rexml
fixes the problem. The reason is that before, rexml was a "default gem" and from ruby 3 or higher is a "bundled gem". Is explained here: https://stackoverflow.com/questions/65479863/rails-6-1-ruby-3-0-0-tests-error-as-they-cannot-load-rexml
Yes but since it's loaded at runtime it should be added as add_runtime_dependency
rather than add_development_dependency
in the gemspec.
Please, enable private messages on twitter or contact me on IRC or Discord (OscarAkaElvis#3764) to keep talking about this further.
I'll try to PM you on discord else https://docs.github.com/en/discussions
To add it as a runtime dependency is something that WinRM staff should do. From our side (evil-winrm team) already did a commit to fix it. Let's see what WinRM staff do.
Also just ran into this. I think winrm should add rexml as a dependency since it's using it, Users and package managers will increasingly switch to Ruby 3.x and adding rexml as a dependency means you will get newer versions of the library.
actually for me gem install winrm
and gem install winrm-fs
solved the issue
oh yes fixed in #334
evil-winrm requires winrm.
Is is due because rexml should be a runtime dependency and not a dev one?
https://github.com/WinRb/WinRM/blob/ebbed119340c665d8220298c0103f0f106b3bc6b/lib/winrm/http/response_handler.rb#L15
or because an incompatibility was brought by the last version of rexml because the version is not locked in the gemspec?