Skip to content

NoMethodError: undefined method 'enable_cache' for nil #260

Closed
@pboling

Description

@pboling

I have started testing libraries against various released versions of their dependencies, as well as the git HEAD version of the dependencies so I will have advance notice when things break.

This gem works fine with ruby-openid / ruby-openid2 in all released versions I've tested, but on git HEAD I am seeing the following error:

NoMethodError: undefined method 'enable_cache' for nil
    /var/home/pboling/.local/share/mise/installs/ruby/3.4.4/lib/ruby/gems/3.4.0/bundler/gems/rexml-3dc9eca877f8/lib/rexml/xpath_parser.rb:87:in 'REXML::XPathParser#parse'
    /var/home/pboling/.local/share/mise/installs/ruby/3.4.4/lib/ruby/gems/3.4.0/bundler/gems/rexml-3dc9eca877f8/lib/rexml/xpath.rb:66:in 'REXML::XPath.each'
    /var/home/pboling/.local/share/mise/installs/ruby/3.4.4/lib/ruby/gems/3.4.0/bundler/gems/rexml-3dc9eca877f8/lib/rexml/element.rb:1965:in 'REXML::Elements#each'

It is occuring in CI here:
https://github.com/ruby-openid/ruby-openid2/actions/runs/16096185925/job/45419317075#step:6:49

To reproduce, after checking out the repo:

git clone https://github.com/ruby-openid/ruby-openid2.git
cd ruby-openid2
git checkout next
BUNDLE_GEMFILE=gemfiles/dep_heads.gemfile bundle install
TEST=test/test_filters.rb BUNDLE_GEMFILE=gemfiles/dep_heads.gemfile bundle exec rake test

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