Skip to content

The unreleased Ruby 3.5.0 raises NoMethodError: undefined method 'parse' for class CGI #69

@piotrmurach

Description

@piotrmurach

I'm running my test suite against ruby-head, jruby-head and truffleruby-head. I experience this failure only on CRuby.

The rouge gem(one of my dependencies) relies on cgi.

My test suite was fully green on the ruby-head until a week ago, when it started and continues to fail consistently with the following error:

      NoMethodError:
        undefined method 'parse' for class CGI
      # ./vendor/bundle/ruby/3.5.0+1/gems/rouge-4.5.2/lib/rouge/lexer.rb:55:in 'Rouge::Lexer.lookup_fancy'

Here is the full job.

I looked at the recent commits to see whether the cgi gem API has changed. The parse method indeed exists on the CGI class on the master branch. However, this may be something to do with how the cgi is bundled with the Ruby release?

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