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
I've just added the govspeak gem to a Rails 7.0.2.3 app in a Ruby 3.1.0 environment. On starting the app (via rails s) I got the error cannot load such file -- rexml/parsers/baseparser (LoadError) (backtrace below).
I was able to fix the problem by adding gem "rexml" to my Gemfile.
As it appears that rexml is a requirement for govspeak, should it be added to the gemspec dependencies?
/home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:15:in `require': cannot load such file -- rexml/parsers/baseparser (LoadError)
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:15:in `require'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/kramdown-1.10.0/lib/kramdown/parser/html.rb:10:in `<main>'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/kramdown-1.10.0/lib/kramdown/parser/kramdown/html.rb:10:in `<main>'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/kramdown-1.10.0/lib/kramdown/parser/kramdown/paragraph.rb:14:in `<main>'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/kramdown-1.10.0/lib/kramdown/parser/kramdown.rb:336:in `<class:Kramdown>'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/kramdown-1.10.0/lib/kramdown/parser/kramdown.rb:60:in `<module:Parser>'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/kramdown-1.10.0/lib/kramdown/parser/kramdown.rb:19:in `<module:Kramdown>'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/kramdown-1.10.0/lib/kramdown/parser/kramdown.rb:17:in `<main>'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/govspeak-3.6.2/lib/kramdown/parser/kramdown_with_automatic_external_links.rb:23:in `<module:Parser>'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/govspeak-3.6.2/lib/kramdown/parser/kramdown_with_automatic_external_links.rb:22:in `<module:Kramdown>'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/govspeak-3.6.2/lib/kramdown/parser/kramdown_with_automatic_external_links.rb:4:in `<main>'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/govspeak-3.6.2/lib/govspeak.rb:7:in `<main>'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/rob/.rvm/rubies/ruby-3.1.0/lib/ruby/3.1.0/bundler/runtime.rb:60:in `block (2 levels) in require'
from /home/rob/.rvm/rubies/ruby-3.1.0/lib/ruby/3.1.0/bundler/runtime.rb:55:in `each'
from /home/rob/.rvm/rubies/ruby-3.1.0/lib/ruby/3.1.0/bundler/runtime.rb:55:in `block in require'
from /home/rob/.rvm/rubies/ruby-3.1.0/lib/ruby/3.1.0/bundler/runtime.rb:44:in `each'
from /home/rob/.rvm/rubies/ruby-3.1.0/lib/ruby/3.1.0/bundler/runtime.rb:44:in `require'
from /home/rob/.rvm/rubies/ruby-3.1.0/lib/ruby/3.1.0/bundler.rb:176:in `require'
from /home/rob/web/dfe/early-years-foundation-recovery/config/application.rb:19:in `<main>'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/railties-7.0.2.3/lib/rails/commands/server/server_command.rb:137:in `block in perform'
from <internal:kernel>:90:in `tap'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/railties-7.0.2.3/lib/rails/commands/server/server_command.rb:134:in `perform'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/railties-7.0.2.3/lib/rails/command/base.rb:87:in `perform'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/railties-7.0.2.3/lib/rails/command.rb:48:in `invoke'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/railties-7.0.2.3/lib/rails/commands.rb:18:in `<main>'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/rob/.rvm/gems/ruby-3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from bin/rails:4:in `<main>'
The text was updated successfully, but these errors were encountered:
I've just added the govspeak gem to a Rails 7.0.2.3 app in a Ruby 3.1.0 environment. On starting the app (via
rails s
) I got the errorcannot load such file -- rexml/parsers/baseparser (LoadError)
(backtrace below).I was able to fix the problem by adding
gem "rexml"
to my Gemfile.As it appears that rexml is a requirement for govspeak, should it be added to the gemspec dependencies?
The text was updated successfully, but these errors were encountered: