Skip to content

LoadError (cannot load such file -- rexml/xpath_parser) #598

@PaulBabka

Description

@PaulBabka

Thanks for this GEM.

Code has been running fine for years, but when I recently upgraded my app to Ruby 3.2.2 and this GEM to 2.0.2, I ran into the above error in some use cases.

I half-assed solved this error by simply adding REXML to my Gemfile, but should not have needed to.

gem 'rexml'

I don't think this is a QUICKBOOKS-RUBY issue per-say, so feel free to close this issue, but it might help someone else.

# Sample code causing the above error
Quickbooks::Service::Vendor.new(company_id: 'SOME COMPANY ID', access_token: 'SOME ACCESS TOKEN').find_by(:display_name, 'SOME VENDOR')

REXML should have been included by default (ROXML GEM requirement), but for some reason, its not available (at least for me).

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions