-
Notifications
You must be signed in to change notification settings - Fork 412
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
Ruby 3 - cannot load rexml/document #1260
Comments
I think there's something wrong with your installation, the gem path shouldn't have Jazzy does work on Ruby 3.0.0: ; ruby --version
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin20]
; jazzy -h | head -5
Usage: jazzy
Options
-o, --output FOLDER Folder to output the HTML docs to
; jazzy --version
jazzy version: 0.13.7
; uname -a
Darwin Johns-MBP 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64 |
😂I tried to install it and then it showed it is successful. |
I mean that your Ruby installation looks confused: study the info you posted above, it is mixing up the system Ruby 3.0.0 in |
I'm not sure it helps your problem, but it looks like there is a change we need to make for For now you could install |
@johnfairh I will try and then ensure the issue, but it's so weird........The same action occured on two machines, but only one has problem. |
The solution as blow: and then all is okay.. |
Keeping open to remind me to update the gemspec to include rexml as part of Ruby 2.6 requirement. |
Fixed by #1264 in master. |
This is to fix the following error when running `bundle exec jazzy` in CI: > `require': cannot load such file -- rexml/document I believe that it was introduced after GitHub’s switch to macOS 12 runners (actions/runner-images#6384), which bumps the default Ruby version from 2.7 to 3.0. The error was fixed in realm/jazzy#1260.
This is to fix the following error when running `bundle exec jazzy` in CI: > `require': cannot load such file -- rexml/document I believe that it was introduced after GitHub’s switch to macOS 12 runners (actions/runner-images#6384), which bumps the default Ruby version from 2.7 to 3.0. The error was fixed in realm/jazzy#1260.
I installed jazzy via homebrew and then it shows successfully.
the error as below: I use Ruby3.0.
<internal:/usr/local/lib/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in
require': cannot load such file -- rexml/document (LoadError)from internal:/usr/local/lib/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb:85:in
require' from /Users/a/.rvm/gems/ruby-2.0.0-p648/gems/jazzy-0.13.7/lib/jazzy/sourcekitten.rb:6:in
<top (required)>'from <internal:/usr/local/lib/ruby/s`
The text was updated successfully, but these errors were encountered: