Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Uninitialized constant Heckle::Unifier #3

agrimm opened this Issue · 1 comment

2 participants


Given the following gems (I'm 95% sure heckle is based on the trunk version)

$ gem list

*** LOCAL GEMS ***

axiom_of_choice (1.0.0)
bio (1.4.2)
bundler (1.1.4)
heckle (1.4.3)
hoe (3.0.6)
laser (0.7.0.pre2)
object_regex (1.0.1)
ParseTree (2.2.0)
polyglot (0.3.3)
rake (
ripper (1.0.5)
ripper-plus (1.3.0)
ruby2ruby (1.3.1)
ruby_parser (2.3.1)
rubygems-bundler (1.0.2)
RubyInline (3.9.0)
rvm (
sexp_processor (3.2.0)
stream (0.5)
treetop (1.4.10)
trollop (1.16.2)
ZenTest (4.8.1, 4.7.0)

and the following target code

require "test/unit"

class HecklingTarget
  def division(a, b)
    raise "Tonight, we divide by zero!" if
    a / b

class TestHeckling < Test::Unit::TestCase
  def test_happy_path
    assert_equal 2,, 3)

I get the following error

Andrew-Grimms-MacBook-Pro:sample_heckling_target_20120608 agrimm$ heckle HecklingTarget --test sample_heckling_target.rb 
/Users/agrimm/.rvm/gems/ruby-head-zombieruby/gems/RubyInline-3.9.0/lib/inline.rb:375:in `so_name': Use RbConfig instead of obsolete and deprecated Config.
/Users/agrimm/.rvm/gems/ruby-head-zombieruby/gems/heckle-1.4.3/lib/heckle.rb:502:in `current_tree': uninitialized constant Heckle::Unifier (NameError)
    from /Users/agrimm/.rvm/gems/ruby-head-zombieruby/gems/heckle-1.4.3/lib/heckle.rb:498:in `grab_mutatees'
    from /Users/agrimm/.rvm/gems/ruby-head-zombieruby/gems/heckle-1.4.3/lib/heckle.rb:134:in `initialize'
    from /Users/agrimm/.rvm/gems/ruby-head-zombieruby/gems/heckle-1.4.3/lib/test_unit_heckler.rb:102:in `initialize'
    from /Users/agrimm/.rvm/gems/ruby-head-zombieruby/gems/heckle-1.4.3/lib/test_unit_heckler.rb:53:in `new'
    from /Users/agrimm/.rvm/gems/ruby-head-zombieruby/gems/heckle-1.4.3/lib/test_unit_heckler.rb:53:in `validate'
    from /Users/agrimm/.rvm/gems/ruby-head-zombieruby/gems/heckle-1.4.3/bin/heckle:95
    from /Users/agrimm/.rvm/gems/ruby-head-zombieruby/bin/heckle:19:in `load'
    from /Users/agrimm/.rvm/gems/ruby-head-zombieruby/bin/heckle:19
    from /Users/agrimm/.rvm/gems/ruby-head-zombieruby/bin/ruby_noexec_wrapper:14

Unifier was a class provided by one of Heckle's dependencies, sexp_processor, I believe. This could likely be fixed by using an old enough version of that gem, but the 1.x branch of Heckle is unmaintained and another release of it to fix this is unlikely.

@phiggins phiggins closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.