Skip to content

Bug: Psych::DisallowedClass: Tried to load unspecified class: Symbol #123

Description

@dblandin

Hi there!

Thanks so much for this gem! Very excited to start using it. During setup, I ran into this error after creating the execution map and configuring crystalball to run on Circle CI. I see the error running in a local Docker container as well. Happy to provide any supplemental information you might find useful.

  • ruby: 2.6.3
  • os: alpine 3.10.1
  • gem version: 0.7.0
Stack trace

+ CRYSTALBALL_CONFIG=./config/crystalball_data.yml
+ bundle exec crystalball
Psych::DisallowedClass: Tried to load unspecified class: Symbol
  /usr/local/lib/ruby/2.6.0/psych/class_loader.rb:97:in `find'
  /usr/local/lib/ruby/2.6.0/psych/class_loader.rb:28:in `load'
  /usr/local/lib/ruby/2.6.0/psych/class_loader.rb:39:in `block (2 levels) in <class:ClassLoader>'
  /usr/local/lib/ruby/2.6.0/psych/class_loader.rb:32:in `symbolize'
  /usr/local/lib/ruby/2.6.0/psych/class_loader.rb:82:in `symbolize'
  /usr/local/lib/ruby/2.6.0/psych/scalar_scanner.rb:83:in `tokenize'
  /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60:in `deserialize'
  /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123:in `visit_Psych_Nodes_Scalar'
  /usr/local/lib/ruby/2.6.0/psych/visitors/visitor.rb:16:in `visit'
  /usr/local/lib/ruby/2.6.0/psych/visitors/visitor.rb:6:in `accept'
  /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32:in `accept'
  /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:337:in `block in revive_hash'
  /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:336:in `each'
  /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:336:in `each_slice'
  /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:336:in `revive_hash'
  /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:162:in `visit_Psych_Nodes_Mapping'
  /usr/local/lib/ruby/2.6.0/psych/visitors/visitor.rb:16:in `visit'
  /usr/local/lib/ruby/2.6.0/psych/visitors/visitor.rb:6:in `accept'
  /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32:in `accept'
  /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:311:in `visit_Psych_Nodes_Document'
  /usr/local/lib/ruby/2.6.0/psych/visitors/visitor.rb:16:in `visit'
  /usr/local/lib/ruby/2.6.0/psych/visitors/visitor.rb:6:in `accept'
  /usr/local/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32:in `accept'
  /usr/local/lib/ruby/2.6.0/psych.rb:360:in `safe_load'
  /usr/local/bundle/gems/crystalball-0.7.0/lib/crystalball/rspec/runner.rb:44:in `config'
  /usr/local/bundle/gems/crystalball-0.7.0/lib/crystalball/rspec/runner.rb:16:in `run'
  /usr/local/bundle/gems/rspec-core-3.8.2/lib/rspec/core/runner.rb:45:in `invoke'
  /usr/local/bundle/gems/crystalball-0.7.0/bin/crystalball:5:in `<top (required)>'
  /usr/local/bundle/bin/crystalball:23:in `load'
  /usr/local/bundle/bin/crystalball:23:in `<top (required)>'
bundler: failed to load command: crystalball (/usr/local/bundle/bin/crystalball)

cc/ @erikdstock

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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