Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Can't handle namespacing #11

Closed
agrimm opened this Issue · 3 comments

2 participants

@agrimm

If you try heckling something with namespacing, such as the baz method of Foo::Bar, you get an error in find_scope_and_method:

$ heckle Foo::Bar baz --test test/test_all.rb 
/var/lib/gems/1.9.1/gems/heckle-2.0.0.b1/lib/heckle.rb:553:in `find_scope_and_method': Couldn't find method. (RuntimeError)
    from /var/lib/gems/1.9.1/gems/heckle-2.0.0.b1/lib/heckle.rb:145:in `initialize'
    from /var/lib/gems/1.9.1/gems/heckle-2.0.0.b1/lib/minitest_heckler.rb:5:in `initialize'
    from /var/lib/gems/1.9.1/gems/heckle-2.0.0.b1/lib/heckle_runner.rb:111:in `new'
    from /var/lib/gems/1.9.1/gems/heckle-2.0.0.b1/lib/heckle_runner.rb:111:in `run'
    from /var/lib/gems/1.9.1/gems/heckle-2.0.0.b1/lib/heckle_runner.rb:11:in `run'
    from /var/lib/gems/1.9.1/gems/heckle-2.0.0.b1/bin/heckle:8:in `<top (required)>'
    from /usr/local/bin/heckle:19:in `load'
    from /usr/local/bin/heckle:19:in `<main>'
@phiggins
Owner

Thanks for filing this @agrimm! As you can tell there hasn't been much progress lately, which is entirely my fault.

@agrimm

Heh. I just wanted to let you know someone still uses heckle! :smile:

@phiggins
Owner

This should be fixed in master or my ruby_parser branch. This sort of thing will likely be an ongoing issue but hopefully we can iron out most of the common cases for 2.0.

@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.