Skip to content

uninitialized constant JSON::PRETTY_STATE_PROTOTYPE (NameError) #458

@thiagotrentin

Description

@thiagotrentin

I'm getting this error when try to run my Cucumber tests that uses Json as dependency after upgrating to version 2.5.

uninitialized constant JSON::PRETTY_STATE_PROTOTYPE (NameError)
/usr/local/bundle/gems/multi_json-1.15.0/lib/multi_json/adapters/json_common.rb:18:in `dump'
/usr/local/bundle/gems/multi_json-1.15.0/lib/multi_json/adapter.rb:25:in `dump'
/usr/local/bundle/gems/multi_json-1.15.0/lib/multi_json.rb:139:in `dump'
/usr/local/bundle/gems/cucumber-3.2.0/lib/cucumber/formatter/json.rb:77:in `on_test_run_finished'
/usr/local/bundle/gems/cucumber-core-3.2.1/lib/cucumber/core/event_bus.rb:34:in `block in broadcast'
/usr/local/bundle/gems/cucumber-core-3.2.1/lib/cucumber/core/event_bus.rb:34:in `each'
/usr/local/bundle/gems/cucumber-core-3.2.1/lib/cucumber/core/event_bus.rb:34:in `broadcast'
/usr/local/bundle/gems/cucumber-core-3.2.1/lib/cucumber/core/event_bus.rb:40:in `method_missing'
/usr/local/bundle/gems/cucumber-3.2.0/lib/cucumber/configuration.rb:33:in `notify'
/usr/local/bundle/gems/cucumber-3.2.0/lib/cucumber/runtime.rb:76:in `run!'
/usr/local/bundle/gems/cucumber-3.2.0/lib/cucumber/cli/main.rb:34:in `execute!'
/usr/local/bundle/gems/cucumber-3.2.0/bin/cucumber:9:in `<top (required)>'
/usr/local/bundle/bin/cucumber:23:in `load'
/usr/local/bundle/bin/cucumber:23:in `<main>'

Could you help me with this issue?

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