guard-annotate
guard-annotate copied to clipboard
problem with running annotate
Hi, i'm expecting something strange in guard logs:
14:11:32 - INFO - Running annotate
/Users/alec/.rvm/gems/ruby-2.0.0-p247@m_social/gems/annotate-2.6.1/bin/annotate:143:in `<top (required)>': invalid argument: --exclude tests,fixtures (OptionParser::InvalidArgument)
from /Users/alec/.rvm/gems/ruby-2.0.0-p247@ m_social/bin/annotate:23:in `load'
from /Users/alec/.rvm/gems/ruby-2.0.0-p247@ m_social/bin/annotate:23:in `<main>'
from /Users/alec/.rvm/gems/ruby-2.0.0-p247@ m_social/bin/ruby_executable_hooks:15:in `eval'
from /Users/alec/.rvm/gems/ruby-2.0.0-p247@ m_social/bin/ruby_executable_hooks:15:in `<main>'
but my guard file config is default:
guard 'annotate' do
watch( 'db/schema.rb' )
# Uncomment the following line if you also want to run annotate anytime
# a model file changes
#watch( 'app/models/**/*.rb' )
# Uncomment the following line if you are running routes annotation
# with the ":routes => true" option
#watch( 'config/routes.rb' )
end
how to fix it?
Maybe the annotate gem changed its available arguments. guard-annotate
was last tested with the 2.4.x branch of annotate, and it looks like you are on 2.6.1. Could you checkout the annotate changelog and submit a PR with updates?
I'm having the same problems. And according to the README, the options still exist:
To annotate just your models:
annotate --exclude tests,fixtures,factories
.
Any new info on this?
I updated guard-rails
and now it seems to work. Thanks! :+1: