【发布时间】:2014-01-30 17:13:11
【问题描述】:
宝石文件
gem 'annotate'
gem 'guard'
gem 'guard-annotate'
保护文件
guard 'annotate', :run_at_start => false 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
当我运行“注释”(没有保护)时,它运行良好。当我运行警卫时,我发现警卫注释不起作用。
这是踪迹
$ 捆绑执行保护
09:33:56 - INFO - Guard is using NotifySend to send notifications.
09:33:56 - INFO - Guard is using TerminalTitle to send notifications.
09:33:56 - INFO - Guard is now watching at '/home/user/work/projects/a/alumni-not'
[1] guard(main)>
09:34:56 - INFO - Run all
[2] guard(main)>
09:34:56 - INFO - Run all
[3] guard(main)>
调试跟踪
$ bundle exec guard --plugin annotate -d
16:48:13 - DEBUG - Command execution: emacsclient --eval '1' 2> /dev/null || echo 'N/A'
16:48:13 - INFO - Guard is using Libnotify to send notifications.
16:48:13 - INFO - Guard is using TerminalTitle to send notifications.
16:48:13 - DEBUG - Command execution: hash stty
16:48:13 - DEBUG - Guard starts all plugins
16:48:13 - DEBUG - Hook :start_begin executed for Guard::Annotate
16:48:13 - DEBUG - Hook :start_end executed for Guard::Annotate
16:48:13 - INFO - Guard is now watching at '/home/user/work/projects/a/alumni-not'
16:48:13 - DEBUG - Start interactor
[1] Annotate guard(main)>
16:48:23 - INFO - Run all
16:48:23 - DEBUG - Hook :run_all_begin executed for Guard::Annotate
16:48:23 - DEBUG - Hook :run_all_end executed for Guard::Annotate
我在这里找不到任何结果,但我可以找到一些正在运行的进程。我该如何解决这个问题?我应该在哪里看到带注释的结果?
【问题讨论】:
标签: ruby-on-rails ruby ruby-on-rails-3 guard