Skip to content

LoadError: no such file to load -- racc/info #6131

@pirj

Description

@pirj

There are two different errors. What made me think that those two have a common cause is that rspec-rails JRuby builds were green not long ago (before #6125), but failed again when Rails 6.0.2.2 and 5.2.4.2 were out.

Please let me know if you want to track those two separately.

  1. triggered by nokogiri:
require 'racc/parser.rb'
An error occurred while loading spec_helper.
Failure/Error: require 'rails/all'

NameError:
  uninitialized constant ActionDispatch::Routing::RouteSet
# /home/travis/build/rspec/bundle/jruby/2.5.0/gems/railties-6.0.2.2/lib/rails/engine.rb:537:in `routes'

https://travis-ci.org/github/rspec/rspec-rails/jobs/665433957

  • Application/framework version (e.g. Rails, Sinatra)
    Rails 5.2.4.2
  1. Fails to autoload ActionDispatch::Routing::RouteSet:
    def routes(&block)
      @routes ||= ActionDispatch::Routing::RouteSet.new_with_config(config)
An error occurred while loading spec_helper.
Failure/Error: require 'rails/all'

NameError:
  uninitialized constant ActionDispatch::Routing::RouteSet

https://travis-ci.org/github/rspec/rspec-rails/jobs/665433954#L1060

  • Application/framework version (e.g. Rails, Sinatra)
    Rails 6.0.2.2

Environment Information

export JRUBY_OPT=--dev
export JAVA_OPTS="--add-opens java.base/sun.nio.ch=org.jruby.dist --add-opens java.base/java.io=org.jruby.dist --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.security.cert=ALL-UNNAMED --add-opens=java.base/java.util.zip=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util.regex=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/javax.crypto=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED"
  • Operating system and platform (e.g. uname -a)
    Ubuntu 14.04, x86_64

Expected Behavior

There's no error, the build passes just like the rest of builds for a variety of MRI versions https://travis-ci.org/github/rspec/rspec-rails/builds/665433953

Actual Behavior

Errors, see above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions