Skip to content

NameError: uninitialized constant Net::IMAP::Config::AttrTypeCoercion::Ractor with release 0.5.7 and Rails 6.1.7.10 #452

Closed
@rammpeter

Description

@rammpeter

The current release 0.5.7 raises an error at startup of 'rails server' if RAILS_ENV is set to 'production'.
With RAILS_ENV=development this error does not occur.
The releases less than 0.5.7 work well in this regard also with RAILS_ENV=production.

Command: RAILS_ENV=production bin/rails server raises an error.
Stack trace is:

NameError: uninitialized constant Net::IMAP::Config::AttrTypeCoercion::Ractor
      load_missing_constant at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/activesupport-6.1.7.10/lib/active_support/dependencies.rb:603
              const_missing at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/activesupport-6.1.7.10/lib/active_support/dependencies.rb:213
                       safe at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/net-imap-0.5.7/lib/net/imap/config/attr_type_coercion.rb:31
  <module:AttrTypeCoercion> at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/net-imap-0.5.7/lib/net/imap/config/attr_type_coercion.rb:35
             <class:Config> at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/net-imap-0.5.7/lib/net/imap/config/attr_type_coercion.rb:13
               <class:IMAP> at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/net-imap-0.5.7/lib/net/imap/config/attr_type_coercion.rb:5
               <module:Net> at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/net-imap-0.5.7/lib/net/imap/config/attr_type_coercion.rb:4
                     <main> at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/net-imap-0.5.7/lib/net/imap/config/attr_type_coercion.rb:3
                    require at org/jruby/RubyKernel.java:1187
           require_relative at org/jruby/RubyKernel.java:1216
                     <main> at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/net-imap-0.5.7/lib/net/imap/config.rb:5
                    require at org/jruby/RubyKernel.java:1187
           require_relative at org/jruby/RubyKernel.java:1216
                     <main> at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/net-imap-0.5.7/lib/net/imap.rb:3821
                    require at org/jruby/RubyKernel.java:1187
                    require at /Users/pramm/.gem/jruby/3.1.4/gems/bundler-2.6.5/lib/bundler/runtime.rb:63
                       each at org/jruby/RubyArray.java:2009
                    require at /Users/pramm/.gem/jruby/3.1.4/gems/bundler-2.6.5/lib/bundler/runtime.rb:58
                       each at org/jruby/RubyArray.java:2009
                    require at /Users/pramm/.gem/jruby/3.1.4/gems/bundler-2.6.5/lib/bundler/runtime.rb:52
                    require at /Users/pramm/.gem/jruby/3.1.4/gems/bundler-2.6.5/lib/bundler.rb:215
                     <main> at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/config/application.rb:9
                    require at org/jruby/RubyKernel.java:1187
                    require at /Users/pramm/.rubies/jruby-9.4.12.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:144
                    require at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/activesupport-6.1.7.10/lib/active_support/dependencies.rb:332
            load_dependency at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/activesupport-6.1.7.10/lib/active_support/dependencies.rb:299
                    require at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/activesupport-6.1.7.10/lib/active_support/dependencies.rb:332
                    perform at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/railties-6.1.7.10/lib/rails/commands/server/server_command.rb:138
                        tap at <internal:uri:classloader:/jruby/kernel/kernel.rb>:19
                    perform at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/railties-6.1.7.10/lib/rails/commands/server/server_command.rb:135
                        run at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/thor-1.3.2/lib/thor/command.rb:28
             invoke_command at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/thor-1.3.2/lib/thor/invocation.rb:127
                   dispatch at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/thor-1.3.2/lib/thor.rb:538
                    perform at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/railties-6.1.7.10/lib/rails/command/base.rb:69
                     invoke at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/railties-6.1.7.10/lib/rails/command.rb:48
                     <main> at /Users/pramm/Documents/Projekte/rammpeter.github/panorama/vendor/bundle/jruby/3.1.0/gems/railties-6.1.7.10/lib/rails/commands.rb:18
                    require at org/jruby/RubyKernel.java:1187
                    require at /Users/pramm/.rubies/jruby-9.4.12.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:37
                     <main> at bin/rails:4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions