Skip to content
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

Should rexml be added as a dependancy #236

Open
reggieb opened this issue Mar 15, 2022 · 0 comments
Open

Should rexml be added as a dependancy #236

reggieb opened this issue Mar 15, 2022 · 0 comments

Comments

@reggieb
Copy link

reggieb commented Mar 15, 2022

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>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant