-
-
Notifications
You must be signed in to change notification settings - Fork 89
Closed
Description
When upgrading an app to Commonmarker 2.1.0 on Ruby 3.3.6 (on arm64-darwin), getting the following exception:
LoadError: cannot load such file -- commonmarker/commonmarker (LoadError)
Did you mean? commonmarker/3.4/commonmarker
Commonmarker 2.0.4 works properly.
Upon inspection of files on disk, I found that CM 2.1.0 is missing the 3.3/ directory, but has 3.2/ and 3.4/. In contrast, CM 2.0.4 has all 3.
$ cd .rvm/gems/ruby-3.3.6/gems/commonmarker-2.0.4-arm64-darwin/lib/commonmarker
$ ls -ld 3*
drwxr-xr-x 3 me staff 96 Mar 5 12:06 3.2
drwxr-xr-x 3 me staff 96 Mar 5 12:06 3.3
drwxr-xr-x 3 me staff 96 Mar 5 12:06 3.4
$ cd .rvm/gems/ruby-3.3.6/gems/commonmarker-2.1.0-arm64-darwin/lib/commonmarker
$ ls -ld 3*
drwxr-xr-x 3 me staff 96 Mar 5 12:09 3.2
drwxr-xr-x 3 me staff 96 Mar 5 12:09 3.4
It seems perhaps the prebuilt extension is missing for Ruby 3.3/arm64-darwin?
Full exception:
bin/rails aborted!
LoadError: cannot load such file -- commonmarker/commonmarker (LoadError)
Did you mean? commonmarker/3.4/commonmarker
~/.rvm/gems/ruby-3.3.6/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
~/.rvm/gems/ruby-3.3.6/gems/zeitwerk-2.7.2/lib/zeitwerk/core_ext/kernel.rb:34:in `require'
~/.rvm/gems/ruby-3.3.6/gems/commonmarker-2.1.0-arm64-darwin/lib/commonmarker/extension.rb:13:in `rescue in <main>'
~/.rvm/gems/ruby-3.3.6/gems/commonmarker-2.1.0-arm64-darwin/lib/commonmarker/extension.rb:3:in `<main>'
~/.rvm/gems/ruby-3.3.6/gems/commonmarker-2.1.0-arm64-darwin/lib/commonmarker.rb:3:in `require_relative'
~/.rvm/gems/ruby-3.3.6/gems/commonmarker-2.1.0-arm64-darwin/lib/commonmarker.rb:3:in `<main>'
~/.rvm/gems/ruby-3.3.6/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
~/.rvm/gems/ruby-3.3.6/gems/zeitwerk-2.7.2/lib/zeitwerk/core_ext/kernel.rb:34:in `require'
~/.rvm/gems/ruby-3.3.6/gems/markdown_views-3.1.0/lib/markdown_views.rb:2:in `<main>'
<internal:~/.rvm/rubies/ruby-3.3.6/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:~/.rvm/rubies/ruby-3.3.6/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
~/.rvm/gems/ruby-3.3.6/gems/zeitwerk-2.7.2/lib/zeitwerk/core_ext/kernel.rb:34:in `require'
~/Code/app/config/application.rb:19:in `<main>'
~/Code/app/Rakefile:4:in `require_relative'
~/Code/app/Rakefile:4:in `<main>'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/commands/rake/rake_command.rb:43:in `block in with_rake'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/commands/rake/rake_command.rb:41:in `with_rake'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/commands/rake/rake_command.rb:20:in `perform'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/commands/test/test_command.rb:75:in `run_prepare_task'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/commands/test/test_command.rb:32:in `perform'
~/.rvm/gems/ruby-3.3.6/gems/thor-1.3.2/lib/thor/command.rb:28:in `run'
~/.rvm/gems/ruby-3.3.6/gems/thor-1.3.2/lib/thor/invocation.rb:127:in `invoke_command'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/command/base.rb:178:in `invoke_command'
~/.rvm/gems/ruby-3.3.6/gems/thor-1.3.2/lib/thor.rb:538:in `dispatch'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/command/base.rb:73:in `perform'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/command.rb:65:in `block in invoke'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/command.rb:143:in `with_argv'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/command.rb:63:in `invoke'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/commands.rb:18:in `<main>'
~/.rvm/gems/ruby-3.3.6/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
bin/rails:4:in `<main>'
Caused by:
LoadError: cannot load such file -- ~/.rvm/gems/ruby-3.3.6/gems/commonmarker-2.1.0-arm64-darwin/lib/commonmarker/3.3/commonmarker (LoadError)
~/.rvm/gems/ruby-3.3.6/gems/commonmarker-2.1.0-arm64-darwin/lib/commonmarker/extension.rb:7:in `require_relative'
~/.rvm/gems/ruby-3.3.6/gems/commonmarker-2.1.0-arm64-darwin/lib/commonmarker/extension.rb:7:in `<main>'
~/.rvm/gems/ruby-3.3.6/gems/commonmarker-2.1.0-arm64-darwin/lib/commonmarker.rb:3:in `require_relative'
~/.rvm/gems/ruby-3.3.6/gems/commonmarker-2.1.0-arm64-darwin/lib/commonmarker.rb:3:in `<main>'
~/.rvm/gems/ruby-3.3.6/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
~/.rvm/gems/ruby-3.3.6/gems/zeitwerk-2.7.2/lib/zeitwerk/core_ext/kernel.rb:34:in `require'
~/.rvm/gems/ruby-3.3.6/gems/markdown_views-3.1.0/lib/markdown_views.rb:2:in `<main>'
<internal:~/.rvm/rubies/ruby-3.3.6/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:~/.rvm/rubies/ruby-3.3.6/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
~/.rvm/gems/ruby-3.3.6/gems/zeitwerk-2.7.2/lib/zeitwerk/core_ext/kernel.rb:34:in `require'
~/Code/app/config/application.rb:19:in `<main>'
~/Code/app/Rakefile:4:in `require_relative'
~/Code/app/Rakefile:4:in `<main>'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/commands/rake/rake_command.rb:43:in `block in with_rake'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/commands/rake/rake_command.rb:41:in `with_rake'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/commands/rake/rake_command.rb:20:in `perform'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/commands/test/test_command.rb:75:in `run_prepare_task'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/commands/test/test_command.rb:32:in `perform'
~/.rvm/gems/ruby-3.3.6/gems/thor-1.3.2/lib/thor/command.rb:28:in `run'
~/.rvm/gems/ruby-3.3.6/gems/thor-1.3.2/lib/thor/invocation.rb:127:in `invoke_command'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/command/base.rb:178:in `invoke_command'
~/.rvm/gems/ruby-3.3.6/gems/thor-1.3.2/lib/thor.rb:538:in `dispatch'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/command/base.rb:73:in `perform'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/command.rb:65:in `block in invoke'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/command.rb:143:in `with_argv'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/command.rb:63:in `invoke'
~/.rvm/gems/ruby-3.3.6/gems/railties-8.0.1/lib/rails/commands.rb:18:in `<main>'
~/.rvm/gems/ruby-3.3.6/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
bin/rails:4:in `<main>'
Metadata
Metadata
Assignees
Labels
No labels