Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Doesn't work for guard-annotate anymore #160

Closed
jmuheim opened this Issue · 4 comments

2 participants

@jmuheim

I'd like to use guard-annotate to automatically run annotate when a file is changed. Sadly, I'm getting this error:

23:50:36 - INFO - Running annotate
/Users/josh/.rvm/gems/ruby-2.0.0-p353@transition/gems/annotate-2.6.0/bin/annotate:142:in `<top (required)>': invalid argument: --exclude tests,fixtures (OptionParser::InvalidArgument)
    from /Users/josh/.rvm/gems/ruby-2.0.0-p353@transition/bin/annotate:23:in `load'
    from /Users/josh/.rvm/gems/ruby-2.0.0-p353@transition/bin/annotate:23:in `<main>'
    from /Users/josh/.rvm/gems/ruby-2.0.0-p353@transition/bin/ruby_executable_hooks:15:in `eval'
    from /Users/josh/.rvm/gems/ruby-2.0.0-p353@transition/bin/ruby_executable_hooks:15:in `<main>'

I don't know where the problem lies (whether it's guard-annotate or annotate), and there's an issue opened for guard-annotate already here: cpjolicoeur/guard-annotate#12. Maybe you have an idea on how to fix it? The arguments seem valid, although annotate's complaining about them.

Thank you.

@ctran
Owner

Can you try this with 2.6.1 version (the latest version on rubygems.org)?

@jmuheim

This results in the same error:

00:46:42 - INFO - Running annotate
/Users/josh/.rvm/gems/ruby-2.0.0-p353@transition/gems/annotate-2.6.1/bin/annotate:143:in `<top (required)>': invalid argument: --exclude tests,fixtures (OptionParser::InvalidArgument)
    from /Users/josh/.rvm/gems/ruby-2.0.0-p353@transition/bin/annotate:23:in `load'
    from /Users/josh/.rvm/gems/ruby-2.0.0-p353@transition/bin/annotate:23:in `<main>'
    from /Users/josh/.rvm/gems/ruby-2.0.0-p353@transition/bin/ruby_executable_hooks:15:in `eval'
    from /Users/josh/.rvm/gems/ruby-2.0.0-p353@transition/bin/ruby_executable_hooks:15:in `<main>'
@ctran
Owner

Looks like this has been broken for a while. I'll check in a fix soon

@ctran ctran was assigned
@ctran ctran referenced this issue from a commit
Cuong Tran Handle the "--exclude" option correctly, #152 and #160 6e80ed2
@jmuheim

Thanks a lot! :+1:

@ctran ctran referenced this issue from a commit
Cuong Tran Merge branch 'release/2.6.2'
* release/2.6.2:
  v2.6.2
  Add known changes for 2.6.2.
  Retain existing position unless :force is passed
  Temporarily ignore integration tests
  Revert "Replacing old block with new one."
  Change email address
  Add .travis.yml
  switch deprecated "mock" for "double" in annotate specs
  use general file resolution for test files as well
  Replacing old block with new one.
  Fixed gemspec files attribute
  migrate.rake should live in lib/tasks
  Always load models, since they may not be autoloaded by Rails
  Handle the "--exclude" option correctly, #152 and #160
  FIX #157
  Pump version to 2.6.1 which fixes #22
ed327d5
@ctran ctran 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.